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

set the parent folder read/write always when downloading a new file #7808

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mgallien
Copy link
Collaborator

that would also cover code paths for virtual files

that would also cover code paths for virtual files

Signed-off-by: Matthieu Gallien <[email protected]>
@mgallien mgallien added this to the 3.16.0 milestone Jan 30, 2025
@mgallien mgallien requested a review from camilasan January 30, 2025 13:57
Copy link

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

SHA256 checksum: a5b43e684c0a75ec10edf002ff9beba2e2064be3f8988da2e26a61a3cafc251a

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.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
16 New Code Smells (required ≤ 0)
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

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

@camilasan
Copy link
Member

With the CFAPI it seems that we don't have to change permissions before creating a placeholder file because of FsMetadata: https://learn.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants

We always use FILE_ATTRIBUTE_NORMAL which I believe allows us to create the placeholder even in a read only folder:
cloudEntry.FsMetadata.BasicInfo.FileAttributes = FILE_ATTRIBUTE_NORMAL;

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.

2 participants