You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Renaming a resource to banned name is allowed #1295
Renaming a file or folder to the banned name for eg; \name is not forbidden
Steps to reproduce:
upload a file curl -X PUT -uadmin:admin -k https://localhost:9200/remote.php/webdav/file1.txt -d"123"
a file with the name <d:href>/remote.php/webdav/%5cfile1.txt</d:href> is listed
It'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"
I think the thought is that filenames with a \ will get us into trouble on windows systems
I've updated the original post to make it easier to reproduce.
also web happily uploads a file with a \ in its name, but it cannot download such a file again
If a \ is a legal character in a files name then the issue needs to be moved to web, if not creating such files need to be prevented
Activity
individual-it commentedon Jun 18, 2020
on EOS storage the renaming does not work, but the return code is
500and not400as it should berefs commentedon Jan 18, 2021
confirm it still occurs with the latest master.
pascalwengerter commentedon Jun 10, 2021
Where is a
bannedname configured?individual-it commentedon Jun 11, 2021
I think the thought is that filenames with a
\will get us into trouble on windows systemsI've updated the original post to make it easier to reproduce.
also web happily uploads a file with a
\in its name, but it cannot download such a file againIf a
\is a legal character in a files name then the issue needs to be moved to web, if not creating such files need to be preventedphil-davis commentedon Jul 30, 2021
Fixed by cs3org/reva#1900
And by the reva update to OCIS: #2334