blink icon indicating copy to clipboard operation
blink copied to clipboard

Creating/modifying files via Files.app fails with "SFTP server: Permission denied" despite correct permissions

Open dblsaiko opened this issue 11 months ago • 0 comments

Checklist

Configuration

Blink v18.1.1.979 (TestFlight), iOS 18.3.2

Describe the bug

Trying to create a new file or modify an existing file in the Blink file provider fails. The log shows "SFTP server: Permission denied". Modifying or creating the file over SSH in the Blink app works as expected, and creating new folders or deleting files via Files.app also works as expected. Uploading a file via the macOS sftp client works as well.

Edit: In fact, trying to edit an existing file deletes (!!!!!) the file on the remote server. Good thing I have backups.

Expected behavior

Modifying files in the remote storage via the File Provider works.

Screenshots

image

 [2025-03-17T03:10:09Z] : [INFO] : createItem Test.txt : Requested with NSFileProviderItemFields: [.contents, .filename, .parentItemIdentifier, .typeAndCreator, .creationDate, .contentModificationDate, .lastUsedDate] and NSFileProviderCreateItemOptions: []
[2025-03-17T03:10:09Z] : [INFO] : createItem Test.txt : Is a File
[2025-03-17T03:10:09Z] : [INFO] : createItem Test.txt : Creating file saiko/Test.txt...
[2025-03-17T03:10:09Z] : [DEBUG] : createItem Test.txt : Ensure can create file at saiko with Test.txt
[2025-03-17T03:10:09Z] : [DEBUG] : createItem Test.txt : No file. Can create.
[2025-03-17T03:10:09Z] : [DEBUG] : createItem Test.txt : Copy file .blink.tmp.67318699...
[2025-03-17T03:10:09Z] : [ERROR] : createItem Test.txt : Creating file error: Fail(msg: "SFTP server: Permission denied")
[2025-03-17T03:10:10Z] : [INFO] : WorkingSet : Timer triggered
[2025-03-17T03:10:10Z] : [INFO] : WorkingSet : Preparing changes. 0 items in commit.
[2025-03-17T03:10:10Z] : [INFO] : WorkingSet : No changes.
[2025-03-17T03:10:14Z] : [DEBUG] : WorkingSet : Deinit 

dblsaiko avatar Mar 17 '25 03:03 dblsaiko