Skip to content

[stable-4.0] Set folders writable if remote perms require it, recurse into subdirs if etag and remoteperms differ #9642

Merged
nilsding merged 4 commits intostable-4.0from
backport/9637/stable-4.0
Mar 18, 2026
Merged

[stable-4.0] Set folders writable if remote perms require it, recurse into subdirs if etag and remoteperms differ #9642
nilsding merged 4 commits intostable-4.0from
backport/9637/stable-4.0

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Mar 18, 2026

Backport of PR #9637

…ssions

Some of these should not mark the folder as read-only.

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
…odifiable permissions present

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
subfolders should also be updated

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
I'm still not sure if `serverEntry.remotePerm != dbEntry._remotePerm`
was intentional, or if it's even necessary to check for that as well.

The etag should change if permissions were changed, but this is not
always the case (e.g. due to a fixed bug in a storage app).

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
@backportbot backportbot bot requested a review from mgallien March 18, 2026 10:55
@backportbot backportbot bot added this to the 4.0.8 milestone Mar 18, 2026
@github-actions
Copy link

Artifact containing the AppImage: nextcloud-appimage-pr-9642.zip

Digest: sha256:f363b56857f739df71db0ab275bc483636e10d9edf9b8dc54678371ba5046762

To test this change/fix you can download the above artifact file, unzip it, and run it.

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

@nilsding nilsding enabled auto-merge March 18, 2026 11:33
@nilsding nilsding merged commit 4a6bdfb into stable-4.0 Mar 18, 2026
19 checks passed
@nilsding nilsding deleted the backport/9637/stable-4.0 branch March 18, 2026 11:49
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant