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

[stable-3.9] always propagate locked status to read-only or read/write for real file #5883

Merged
merged 4 commits into from Jul 12, 2023

Conversation

backportbot-nextcloud[bot]
Copy link

Backport of #5841

make sure that a file locked that would not be modifiable by the
current client is read-only on storage

also make sure we make a file read/write when modification can happen
again

Close #5537

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
should help investigate failure for automated tests

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
we try to preserve complex existing permissions unless the client is
required to change them significantly

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
will fix behavior on windows by properly setting the new temp file just
downloaded have the proper state (read only or read/write) and not the
already existing file that will be replaced by the newly odwnloaded one

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
@backportbot-nextcloud backportbot-nextcloud bot added this to the 3.9.1 milestone Jul 12, 2023
@mgallien mgallien enabled auto-merge July 12, 2023 12:40
@sonarcloud
Copy link

sonarcloud bot commented Jul 12, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

Merging #5883 (55d6443) into stable-3.9 (d6bf368) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Additional details and impacted files
@@              Coverage Diff               @@
##           stable-3.9    #5883      +/-   ##
==============================================
+ Coverage       60.41%   60.48%   +0.06%     
==============================================
  Files             145      145              
  Lines           18605    18612       +7     
==============================================
+ Hits            11241    11258      +17     
+ Misses           7364     7354      -10     
Impacted Files Coverage Δ
src/libsync/propagatedownload.cpp 66.85% <100.00%> (+0.32%) ⬆️

... and 5 files with indirect coverage changes

@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-5883-55d64432cda336b87c2a4e0ef8640f2576613cf2-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien merged commit 1438bb4 into stable-3.9 Jul 12, 2023
13 checks passed
@mgallien mgallien deleted the backport/5841/stable-3.9 branch July 12, 2023 13:09
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