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

Improve read only virtual files support on Windows #7477

Merged
merged 10 commits into from
Nov 22, 2024

Conversation

mgallien
Copy link
Collaborator

@mgallien mgallien commented Nov 8, 2024

No description provided.

@mgallien mgallien added this to the 3.14.5 milestone Nov 8, 2024
@mgallien mgallien force-pushed the bugfix/readOnlyVirtualFilesFixes branch from 45284a6 to a77f1b1 Compare November 8, 2024 07:52
@Rello Rello modified the milestones: 3.14.5, 3.15.0 Nov 11, 2024
@mgallien mgallien force-pushed the bugfix/readOnlyVirtualFilesFixes branch 2 times, most recently from 45faa94 to c5d66c9 Compare November 12, 2024 22:15
Mika-6-9

This comment was marked as off-topic.

Copy link
Collaborator

@claucambra claucambra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgallien I think the commit history is messed up, there are some dark mode relate d changes here

ensure that even if move to trash is enabled, we do not erroneously try
to move online only files or folders to trash bin

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
we need to make shortcut files be proper virtual placeholder files

let the sync engine use the proper item type for that

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
we cannot do a single call to convert the plain old file to be a
dehydrated virtual file placeholder

split the conversion into a separate initial API call

fix transition from releases < 3.14 to current releases that have first
class support for windows shortcuts (so called link files)

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
should make the existing log more useful when tracking the
self requested implicit hydration bugs

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
we were using specialized API to set the file permissions on the windows
shortcut and later falling back to the generic code path due to the
mising return

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
will prevent some type of activity being added to the list from
triggering implicit hydration during synchronization

most probably breaks existing open actions on those activities

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
change the way we evaluate a folder permissions to be read-only when no
new file or new folders can be created

if those permissions are lacking, client will make the local folder
read-only

if those permissions are granted, client will make local folder
read-write

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
@mgallien mgallien force-pushed the bugfix/readOnlyVirtualFilesFixes branch from c5d66c9 to 85e71d4 Compare November 22, 2024 08:54
@mgallien mgallien requested a review from claucambra November 22, 2024 08:55
@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-7477-85e71d47bfa64c3293afc2b88eff7e72dbfce3c3-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 f1c6b65 into master Nov 22, 2024
10 of 14 checks passed
@mgallien mgallien deleted the bugfix/readOnlyVirtualFilesFixes branch November 22, 2024 09:06
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
35.7% Coverage on New Code (required ≥ 80%)
D Maintainability Rating on New Code (required ≥ A)
62 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants