-
Notifications
You must be signed in to change notification settings - Fork 186
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
Renaming a resource to banned name is allowed #1295
Comments
on EOS storage the renaming does not work, but the return code is |
confirm it still occurs with the latest master. |
Where is a |
I think the thought is that filenames with a If a |
Fixed by cs3org/reva#1900 |
Description
Renaming a file or folder to the banned name for eg;
\name
is not forbiddenSteps to reproduce:
curl -X PUT -uadmin:admin -k https://localhost:9200/remote.php/webdav/file1.txt -d"123"
curl -X MOVE -uadmin:admin -k https://localhost:9200/remote.php/webdav/file1.txt -H "Destination: https://localhost:9200/remote.php/webdav/\file1.txt" -v
curl -X PROPFIND -uadmin:admin -k https://localhost:9200/remote.php/webdav | xmllint --format -
a file with the name
<d:href>/remote.php/webdav/%5cfile1.txt</d:href>
is listedIt's also possible to upload a file with that name:
curl -X PUT -uadmin:admin -k https://localhost:9200/remote.php/webdav/%5cfile2.txt -d"123"
The same behavior is noticed for the folder.
The text was updated successfully, but these errors were encountered: