-
Notifications
You must be signed in to change notification settings - Fork 113
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
check name for illegal values during uploads and moves #1900
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
90e8c08
to
80e20e5
Compare
@phil-davis, are those supposed to be issue demonstrations?
What should I do with those tests now? Delete them? |
https://drone.cernbox.cern.ch/cs3org/reva/2304/6/6 I guess those tests were returning 500 and now return 400 - an improvement. But it looks like they should be able to really work and return 201. IMO adjust the expectation to Then someone needs to review all those "local" API tests to see what use they are. We have expected-failures files these days, that keep track of what core tests are known to be failing. I raised issue owncloud/ocis#2313 for reviewing that. |
Not quite right. They were returning 201 (ocis storage) or 500 (eos storage) but should have been returning 400 because the scenarios are testing illegal behavior like renaming files/folders to contain invalid characters. So I think those tests can be removed now, right? This is the linked issue: owncloud/ocis#1295 |
True - there are core scenarios in core Remove these "local" API tests. |
@C0rby should we also add these checks for copy? |
That's a good point. Let me check if copy is also affected. |
Yes, I added the check to |
The code was not checking for invalid file names during uploads and moves.