-
Notifications
You must be signed in to change notification settings - Fork 184
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
Cannot edit or download file with comma on Web #8361
Comments
@saw-jan are there API and/or webUI acceptance tests that cover common "interesting characters" in file and folder names? If the API tests pass but web tests fail, then that will narrow done where the problem might be. |
We do have API test for file upload/download having comma in its name ocis/tests/acceptance/features/coreApiWebdavUpload/uploadFile.feature Lines 80 to 99 in 4d5490a
And we also have webUI test but that doesn't check the file content in the editor. |
Those acceptance tests are passing, so we can upload and download file names that have a comma in them - good. @saw-jan can someone be assigned to make a test scenario that demonstrates this issue. |
@streaminganger Which docker-compose file did you use? I couldn't reproduce it with these versions:
|
@JammingBen @kulmann FYI |
I can't reproduce the download and viewing issue with the current version of ocis. But I can observe, that we have issues with the filename, while downloading a file with the name @micbar from my understanding we can't fix this in web, ocis needs to provide the Content-Disposition Header with the file name, which is currently missing https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition It could be possible that you need to wrap the filename in double quotes in order to work with chrome: https://stackoverflow.com/questions/49003459/file-download-error-only-in-file-name-with-comma |
Oh you are right, the issue only happens on chromium based browsers. |
The |
Which resulted in chrome or chromium disposed the the header sometimes, kind of a weird behavior 🤷♀️ With the bugfix @dragonchaser provided, the issue won't be present in any browser anymore. Closing when merged. Thanks for the report @streaminganger 💪 |
Describe the bug
I have a file
New file,.txt
with a comma in the file name. Using the web client I'm unable to edit or download.Steps to reproduce
Expected behavior
Edit and download to work
Actual behavior
Edit comma file:
Download comma file:
Setup
Docker compose using mostly default settings from examples in ocis repo.
5.0.0-rc.3
Additional context
Edit and download of same comma file works on desktop client and android client
Update: #8361 (comment) - this issue is Chromium specific as found by Jan
The text was updated successfully, but these errors were encountered: