rcx icon indicating copy to clipboard operation
rcx copied to clipboard

SAF Provider: support for advanced modes (wt, rw, rwt, wa)

Open x0bisverycool opened this issue 4 years ago • 1 comments

First, i would like to thank you a lot for working on this project, almost thought this was dead, i really really appreciate your contributions. Now, the issue - it is not possible to edit/create a new file through saf. For example, I cant create create/save a database in keepassdx, but only view it, its like read only mode. I am not sure if it was designed that way since its an experimental feature. This happened with OneDrive, and another cloud provider.

x0bisverycool avatar Jun 02 '21 14:06 x0bisverycool

To clarify something: the inital version of the SAF provider supports two modes, r and w.

This means that apps such as Microsoft Word can request a document and display it to you for editing. After you have made your changes, Word then passes the new version back to RCX, and RCX immediately uploads that onto the backing remote.

So, why doesn't KeepassDX work? It is actually one of the apps we're developing the provider against, so we know pretty well why it doesn't work. KeepassDX requires support for more advanced open modes (such as wt, wa, rw and rwt). Note that RCX technically supports wt (used when creating a new Keepass db), but then later fails with missing rw. Basically, KeepassDX is missing a file spooler. Microsoft on the other hand has probably recognized that support for advanced modes is not very widespread, which is why they don't use them.

Initially, I thought this was a problem that could only be solved by hooking into Androids userspace fuse support (and thus being very complicated). A few weeks ago I discovered that there are actually other ways (used in other apps), that are only regularly complicated 😉.

When will KeepassDX work? Maybe v1.14, maybe later.

x0b avatar Jun 02 '21 16:06 x0b