-
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
[backport #4748] fix: quotes in content-disposition header #4761
[backport #4748] fix: quotes in content-disposition header #4761
Conversation
Replaces the quotes by actually encoding the filename in the dav `Content-Disposition` header. The value of the `filename*` parameter must not be surrounded by any quotes, but rather be encoded in the first place. See RFC-6266 for more details. The quotes caused an issue where certain browsers would decode the quotes and falsely prepend them to the filename.
be75df9
to
0e27b01
Compare
@saw-jan Do you know how expected failures work for stable branches? I can't get CI to recognize the correct lines, I guess because the line numbers changed on master. I tried with |
As per the .drone.env, with |
Line number should be according to this file: https://github.com/owncloud/ocis/blob/2e7f0252f2a1b2c8200bf0931274b9e9e83f3c0a/tests/acceptance/features/coreApiWebdavOperations/downloadFile.feature |
0e27b01
to
de8d922
Compare
Based on this, I added Or do I need to add all the failing lines, as in 284-296 and 317-321? |
yeah, to make the ci green, all failing tests must be added to the list and remove the passing lines |
Ahh okay, I though the test scenario line is sufficient. Got it, thanks! |
Fixes the encoding of blanks in the dav `Content-Disposition` header. This is a regression caused by cs3org#4748.
de8d922
to
09ff1be
Compare
@micbar This backport PR is generally ready, however, one build pipeline is failing: https://github.com/cs3org/reva/actions/runs/9939700539/job/27454800157?pr=4761. Doesn't look related to me, any idea what might be happening? |
@JammingBen you need to pick the uncommenting the sed in line 23 should probably be sufficient. |
be44a30
to
c433508
Compare
Applying all the changes to the file worked, thanks! |
Backports #4748 to
stable-2.19
.Needs to wait for #4762.