Skip to content

[Bug]: Unable to set file permissions on files using VFS #7141

Open
@mbentley

Description

@mbentley

⚠️ Before submitting, please verify the following: ⚠️

Bug description

When using VFS mode in the client, any permissions that are set on files are removed. For example, setting the executable bit on a file will immediately be reverted. I am honestly not sure if this is an intended behavior or if this is some sort of bug but I'm calling it a bug just because the behavior differs from what I experience using standard file sync.

Steps to reproduce

  1. On a file in a VFS share, do a chmod o+x <filename>
  2. See that the permissions have quickly reverted

Expected behavior

When using standard file sync, I can modify permissions on files to meet my needs.

Which files are affected by this bug

Any file that permissions are modified.

Operating system

macOS

Which version of the operating system you are running.

Sonoma 14.6.1

Package

Official macOS 12+ universal pkg

Nextcloud Server version

30.0.0

Nextcloud Desktop Client version

3.14.0

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

# the only log which repeated about 600 times is this one which is another bug; no other logs since trying VFS
{"reqId":"Mc06sIApgcCZAU5fV2kc","level":3,"time":"2024-09-17T01:12:15+00:00","remoteAddr":"192.168.0.1","user":"mbentley","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud.mbentley.net","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0","version":"30.0.0.14","exception":{"Exception":"RuntimeException","Message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud.mbentley.net","Code":0,"Trace":[{"file":"/var/www/nextcloud.mbentley.net/apps/firstrunwizard/lib/Notification/Notifier.php","line":205,"function":"imagePath","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud.mbentley.net/apps/firstrunwizard/lib/Notification/Notifier.php","line":105,"function":"setAppHintDetails","class":"OCA\\FirstRunWizard\\Notification\\Notifier","type":"->"},{"file":"/var/www/nextcloud.mbentley.net/lib/private/Notification/Manager.php","line":337,"function":"prepare","class":"OCA\\FirstRunWizard\\Notification\\Notifier","type":"->"},{"file":"/var/www/nextcloud.mbentley.net/apps/notifications/lib/Controller/EndpointController.php","line":103,"function":"prepare","class":"OC\\Notification\\Manager","type":"->"},{"file":"/var/www/nextcloud.mbentley.net/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"listNotifications","class":"OCA\\Notifications\\Controller\\EndpointController","type":"->"},{"file":"/var/www/nextcloud.mbentley.net/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud.mbentley.net/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud.mbentley.net/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud.mbentley.net/ocs/v1.php","line":43,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud.mbentley.net/ocs/v2.php","line":7,"args":["/var/www/nextcloud.mbentley.net/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud.mbentley.net/lib/private/URLGenerator.php","Line":242,"message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud.mbentley.net","exception":{},"CustomMessage":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud.mbentley.net"}}

Additional info

Here are my client debug logs:
debug.zip

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions