Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix prefix-related issues in WebDAV adapter #1533

Merged
merged 2 commits into from
Sep 9, 2022
Merged

Fix prefix-related issues in WebDAV adapter #1533

merged 2 commits into from
Sep 9, 2022

Conversation

mtorromeo
Copy link
Contributor

Hi,
using the prefix option with the WebDAV adapter currently has multiple issues and works only for simple ascii prefixes in paths that already exist on the destination server.

Basically, all paths are encoded BEFORE adding the prefix. This means that the prefix is never encoded, and a simple space character in the prefix is enough to generate errors for any operation.

The second issue is that the functionality for auto-creating the directories on the server does not add the prefix before iterating over its split components, and so it fails to create the directory tree when the prefix itself does not exist on the server.

Thanks

@frankdejonge frankdejonge merged commit 4d1c3b7 into thephpleague:3.x Sep 9, 2022
@frankdejonge
Copy link
Member

@mtorromeo thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants