Skip to content
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

fix: quotes in content-disposition header #4748

Merged

Conversation

JammingBen
Copy link

@JammingBen JammingBen commented Jul 3, 2024

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.

refs owncloud/web#11031

@JammingBen JammingBen self-assigned this Jul 3, 2024
@JammingBen JammingBen force-pushed the fix/quotes-content-disposition-header branch from f958054 to 6f42cd2 Compare July 3, 2024 09:19
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.
@JammingBen JammingBen force-pushed the fix/quotes-content-disposition-header branch from 6f42cd2 to d9a5e03 Compare July 3, 2024 09:31
@JammingBen JammingBen changed the title fix: quotes placement in content-disposition header fix: quotes in content-disposition header Jul 3, 2024
@JammingBen
Copy link
Author

JammingBen commented Jul 3, 2024

@saw-jan Do you know if the CI is currently flaky? I can't get it green, there always some test(s) failing. They are located in copyFileFolder.feature, it's not always the same test though.

@saw-jan
Copy link
Contributor

saw-jan commented Jul 3, 2024

@saw-jan Do you know if the CI is currently flaky? I can't get it green, there always some test(s) failing. They are located in copyFileFolder.feature, it's not always the same test though.

tests with posix-fs were flaky previously. owncloud/ocis#9340

@JammingBen JammingBen force-pushed the fix/quotes-content-disposition-header branch from c2a533e to d9a5e03 Compare July 3, 2024 12:19
@JammingBen JammingBen marked this pull request as ready for review July 3, 2024 12:35
@JammingBen JammingBen requested review from labkode, a team and glpatcern as code owners July 3, 2024 12:35
@JammingBen JammingBen merged commit 14b4210 into cs3org:edge Jul 4, 2024
15 checks passed
JammingBen added a commit to JammingBen/reva that referenced this pull request Jul 10, 2024
Fixes the encoding of blanks in the dav `Content-Disposition` header.

This is a regression caused by cs3org#4748.
JammingBen added a commit to JammingBen/reva that referenced this pull request Jul 10, 2024
Fixes the encoding of blanks in the dav `Content-Disposition` header.

This is a regression caused by cs3org#4748.
JammingBen added a commit to JammingBen/reva that referenced this pull request Jul 11, 2024
Fixes the encoding of blanks in the dav `Content-Disposition` header.

This is a regression caused by cs3org#4748.
JammingBen added a commit to JammingBen/reva that referenced this pull request Jul 11, 2024
Fixes the encoding of blanks in the dav `Content-Disposition` header.

This is a regression caused by cs3org#4748.
JammingBen added a commit to JammingBen/reva that referenced this pull request Jul 12, 2024
Fixes the encoding of blanks in the dav `Content-Disposition` header.

This is a regression caused by cs3org#4748.
JammingBen added a commit to JammingBen/reva that referenced this pull request Jul 15, 2024
Fixes the encoding of blanks in the dav `Content-Disposition` header.

This is a regression caused by cs3org#4748.
JammingBen added a commit to JammingBen/reva that referenced this pull request Jul 15, 2024
Fixes the encoding of blanks in the dav `Content-Disposition` header.

This is a regression caused by cs3org#4748.
JammingBen added a commit that referenced this pull request Jul 29, 2024
…er-stable

[backport #4748] fix: quotes in content-disposition header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants