-
Notifications
You must be signed in to change notification settings - Fork 156
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
Use oc-etag instead of etag #6952
Use oc-etag instead of etag #6952
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. |
@@ -116,8 +116,7 @@ export default { | |||
.then( | |||
(response) => { | |||
serverContent.value = newContent | |||
// FIXME: above we need response.headers.ETag, here we need response ETag - feels inconsistent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I removed this comment, as it is intended, above we do a get request to a file (where the headers should contain the etag), while updating a resource the etag is emitted in the payload, which is correct
Results for oC10Files1 https://drone.owncloud.com/owncloud/web/25524/17/1 💥 The acceptance tests pipeline failed. The build has been cancelled. |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
"owncloud-sdk@npm:~3.0.0-alpha.8": | ||
version: 3.0.0-alpha.8 | ||
resolution: "owncloud-sdk@npm:3.0.0-alpha.8" | ||
"owncloud-sdk@npm:~3.0.0-alpha.9": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to be picky here but #6952 should be linked in the "sdk-bump" changelog item then 😬 can be done after this has been merged in a changelog-only PR though (which skips all the tests in CI)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See: #6956
Description
Bugfix: Use OC-ETag instead of ETag in text editor app
We've fixed a bug, where the ETag instead of OC-ETag in the text editor app was used,
due to server encoding, the ETag might be manipulated and contain the gzip suffix on large text files.
Saving the respective file, might cause an error, as the sent ETag doesn't match the server's ETag.
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: