-
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
Decomposedfs fix revision download #3473
Conversation
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
This pull request introduces 1 alert when merging 150fe7d into 3dbdcc5 - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
This pull request introduces 1 alert when merging 4dae4b6 into 3dbdcc5 - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
This pull request introduces 1 alert when merging 11fc7c4 into 3dbdcc5 - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
Co-authored-by: Andre Duffeck <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
4ad9016
to
b955128
Compare
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
versions can still not be downloaded, it seemst the resource id is constructed wrong ... 👀 |
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
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.
lgtm, if ci gets green :)
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
…sion permission Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
ocis si is green: https://drone.owncloud.com/owncloud/ocis/16907 |
superseded by #3482 as it contains the necessary test fixes |
We rewrote the finish upload code to use a write lock when creating and updating node metadata. This prevents some corner cases and allows us to calculate the size diff atomically for a subsequent PR where we will propagate that size diff.
We now also check the correct permissions when downloading a revision. Downloading revisions only magically works because we are using a suffix that survives being listed at the ocdav meta versions endpoint, initiating a normal file download via the CS3 api and then the dataprovider being able to directly access that version. The
DownloadRevision
code was never used and was in fact implemented wrong. It would always have returned an empty file.The workaround is that we can detect revision downloads using the
.REV.
delimiter that we put between the nodeid and the revision timestamp. WhenDownload
detects this delimiter it will now delegate to the fixedDownloadRevision
.fixes owncloud/ocis#3868
fixes owncloud/ocis#765
I will postpone the size diff propagation to a subsequent PR, as this already changes quite a bit.