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

don't have permission to save *.kdbx via SeafilePro #144

Closed
myllaeri opened this issue Feb 8, 2021 · 3 comments
Closed

don't have permission to save *.kdbx via SeafilePro #144

myllaeri opened this issue Feb 8, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@myllaeri
Copy link

myllaeri commented Feb 8, 2021

Hi,

I store my kdbx file in a Seafile-Server and I use the SeafilePro App to access the kdbx from KeePassium on my iPhone.
opening it and using the kdbx works just fine, but when I change something and KeePassium tries to sync the kdbx it tell's me: "You don't have permission to save the file "KeyData.kdbx" in the folder "https%3a%2a%2a###SEAFILEDOMAIN###_myllaeri@###MYDOMAIN###_af69c3e4-d976-40e2-afc7-d224af12d489%2F""

---- Diagnostic Info -----
2.319 (I) DatabaseManager.swift:224 saveDatabase(:dbRef:) Saving database
2.331 (I) FileKeeper.swift:868 makeBackup(nameTemplate:mode:contents:) Backup copy created OK
2.331 (I) DatabaseSaver.swift:115 save() Encrypting database
2.331 (I) Database2.swift:1016 save() Saving KP2 database
2.331 (D) Database2.swift:1023 save() Format version: v3
2.331 (D) Database2.swift:1026 save() Seeds randomized OK
2.331 (D) Database2.swift:647 deriveMasterKey(compositeKey:cipher:canUseFinalKey:) Start key derivation
3.040 (D) Database2.swift:1032 save() Key derivation OK
3.040 (D) Database2.swift:1302 toXml() Will generate XML
3.181 (D) Database2.swift:1062 save() XML generation OK
3.181 (D) Database2.swift:1206 encryptBlocksV3(to:xmlData:) Encrypting KP2v3 blocks
3.233 (D) Database2.swift:1070 save() Content encryption OK
3.233 (D) Database.swift:250 resolveReferences(allEntries:parentProgress:pendingProgressUnits:) Resolving references
3.233 (D) Database.swift:276 resolveReferences(allEntries:parentProgress:pendingProgressUnits:) References resolved OK
3.234 (I) DatabaseSaver.swift:124 save() Writing database document
3.240 (I) DatabaseManager.swift:215 startSavingDatabase() Async database saving finished
3.252 (E) FileAccessError.swift:118 make(from:fileProvider:) Failed to access the file [fileProvider: com.seafile.seafilePro.SeafFileProvider, systemError: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “KeyData.kdbx” in the folder “https%3A%2F%2F###SEAFILEDOMAIN###_myllaeri@###MYDOMAIN###af69c3e4-d976-40e2-afc7-d224af12d489%2F”." UserInfo={NSFileOriginalItemLocationKey=file:///private/var/mobile/Containers/Shared/AppGroup/4E17096D-797F-4D3B-A5FC-452A9B2F4F03/File%20Provider%20Storage/https%253A%252F%252F###SEAFILEDOMAIN###_myllaeri@###MYDOMAIN###af69c3e4-d976-40e2-afc7-d224af12d489%252F/KeyData.kdbx, NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/4E17096D-797F-4D3B-A5FC-452A9B2F4F03/File%20Provider%20Storage/https%253A%252F%252F###SEAFILEDOMAIN###_myllaeri@###MYDOMAIN###af69c3e4-d976-40e2-afc7-d224af12d489%252F/KeyData.kdbx, NSFileNewItemLocationKey=file:///private/var/mobile/Containers/Data/Application/0F84A135-81BE-4104-9FDC-3CD6CF437D76/tmp/NSIRD_KeePassium_zgvai4/KeyData.kdbx, NSUnderlyingError=0x2808e05a0 {Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “KeyData.kdbx” in the folder “NSIRD_KeePassium_zgvai4”." UserInfo={NSURL=file:///private/var/mobile/Containers/Data/Application/0F84A135-81BE-4104-9FDC-3CD6CF437D76/tmp/NSIRD_KeePassium_zgvai4/KeyData.kdbx, NSFilePath=/private/var/mobile/Containers/Data/Application/0F84A135-81BE-4104-9FDC-3CD6CF437D76/tmp/NSIRD_KeePassium_zgvai4/KeyData.kdbx, NSUnderlyingError=0x2808e0540 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}}}]
3.254 (E) DatabaseSaver.swift:138 save() Database saving error. [message: You don’t have permission to save the file “KeyData.kdbx” in the folder “https%3A%2F%2F###SEAFILEDOMAIN###_myllaeri@###MYDOMAIN###af69c3e4-d976-40e2-afc7-d224af12d489%2F”.]

KeePassium v1.21.81 (iPhone, iOS 14.4)

Is there a workaround?
Does this have to do with issue #126?

@myllaeri myllaeri added the bug Something isn't working label Feb 8, 2021
@keepassium
Copy link
Owner

Hi,

I have encountered this problem a few days ago, testing with the free tier of Nihao Cloud (they are listed as Seafile partners).

The problem is always reproducible, but it affects other apps as well:

  • First, I tried to edit a .doc file — but Word said the file was read-only.
  • Then I opened a .pdf in Files's native preview, and added some markup. After saving, the file got stuck showing the "Waiting..." status in Files.

So it seems to be something on Seafile's side. They have two similar reports:

The workaround is to try to access your server via WebDAV.

@myllaeri
Copy link
Author

myllaeri commented Feb 10, 2021

I worked it around with BoxCryptor.

I don't really understand haiwen/seafile-iOS#251

but i can somehow reproduce haiwen/seafile-iOS#262 with microsoft lens.
I need to try a bit around, and then I think I will get in touch with the seafile developers

Thank you for your investigation.

@keepassium
Copy link
Owner

Ok, I'll close it as SeafilePro's issue, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants