-
Notifications
You must be signed in to change notification settings - Fork 671
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
Windows client: Error updating metadata: WindowsError: ffffffff80070005: Access is denied #10382
Comments
Hi @helgeklein . |
Hi Hannah (@TheOneRing), when you format an NTFS partition, Windows sets the following default permissions:
As you can see, non-admin users never have full control (except for their user profile directory ownCloud shouldn't need BTW, other sync products I've used don't need |
As far as I can remember we need I created a vm, added a test user without admin permissions, I attached a ntfs drive. If I however copy some files from User A to the new drive and then try to upload them as User B, using ownCloud, I get the same error as you. |
Hi Hannah, thanks for taking the time to investigate this issue. It would be nice if you could verify if Independent of that, it might be a good idea to improve the user experience as follows: As a user, when I point an ownCloud space at a directory with data in it, I wouldn't expect the data to be converted to virtual files/folders. I'd simply expect them to stay where they are and be synchronized. If, on the other hand, I point a space at an empty directory, I, as a user, might be happy with instantly having the space in my local filesystem by way of virtual files. What I mean by that is that in case A (existing files), it might be a good idea not to enable virtual files by default. Compare this to the |
@helgeklein I fully agree with your expected user experience.
But that is exactly what I already experience with desktop client 3.0.0.9215- on Windows 11 with default settings. While this enables virtual file support for my non-empty folder SyncMe, it keeps the data locally. It only gives us the option to later choose sync behaviour "Always keep on this device" or "Free up space" (for the entire space, or for folders or files individually) For me, enabling virtual files support, does not replace everything with placeholders. Did that happen to you? |
The files remain on the disk but they are converted to locally available placeholders. |
Aah! 💡 "locally available placeholder" sounds like a self-contradiction to me. Okay, need to adjust my mental model now... |
We will add documentation that file ownership is required. owncloud/docs-client-desktop#347 |
Pre-submission Checks
Describe the bug
The Windows desktop client 3.0.0.9215 with virtual files enabled starts synchronizing, then stops with the error
Error updating metadata: WindowsError: ffffffff80070005: Access is denied
.Analysis
ownCloud client log
For every file to be synced, the log of the ownCloud client contains two lines like the following:
File system permissions
I checked the permissions on the files and folders, of course. They have the default permissions inherited from my D: drive. Since I am not running ownCloud as admin, the resulting permissions are modify (not full control).
Process Monitor trace
I traced the file system operations with Microsoft Sysinternals Process Monitor. This shows that ownCloud tries to open each file with the following desired access:
Root Cause
It seems the issue is caused by ownCloud trying to open the files to be synchronized with Write DAC access, which is the right to change permissions.
Standard (=non-admins) users by default don't have the right to change permissions on files/folders. That would require full control permissions, but standard users only have modify.
Workaround
I disabled virtual file support in the options of the sync connection and the error was gone.
Expected behavior
I expect ownCloud to work correctly with the default file system permissions of non-admin users. Specifically, I expect ownCloud not to try to open files with Write DAC (change permissions) access.
Steps to reproduce the issue
Screenshots
Logs
23-01-01 22:50:16:049 [ debug sync.statustracker ] [ OCC::SyncFileStatusTracker::slotAboutToPropagate ]: Investigating "Some folder/Some image.JPG" OCC::SyncFileItem::NoStatus SyncInstruction(CSYNC_INSTRUCTION_NEW)
23-01-01 22:50:16:049 [ warning sync.vfs.win ]: void __cdecl OCC::VfsWin::fileStatusChanged(const class QString &,class OCC::SyncFileStatus) : could not make handle for "D:/Bilder/Album/Some folder/Some image.JPG" "WindowsError: ffffffff80070005: Access is denied."
Client version number
Windows desktop client 3.0.0.9215
Desktop environment (Linux only)
No response
Client package version and origin (Linux only)
No response
Installation path (Windows only)
c:\Program Files\ownCloud
Server information
Dockerized ownCloud Infinite Scale.
Additional context
No response
The text was updated successfully, but these errors were encountered: