Re: OneDrive backend



Ondrej Holy píše v Út 22. 05. 2018 v 14:09 +0200:
Hi,

in that case, the new backend is a definitely good way. I don't know much about OneDrive, but hope that the handling will be a little bit easier than in google case... Rishi, don't you have any comments apart from the one on that bug report?

See what problems are with path handling in google backend:
https://debarshiray.wordpress.com/2015/09/13/google-drive-and-gnome-what-is-a-volatile-path/
https://bugzilla.gnome.org/show_bug.cgi?id=755701

I looked into that and if I understand it correctly the whole problem is the possibility of having two files with the same name in one folder. On OneDrive, though this wouldn't be a problem, since OneDrive doesn't allow this, so the backend wouldn't need to expose path composed from ID, but it could be the actual path in the storage.


Be aware of the following issue with google backend. Caching the whole drive metadata wasn't really the best idea:
https://bugzilla.gnome.org/show_bug.cgi?id=771390

Don't know what's the best solution, but I thought about downloading the metadata for each folder on demand and later probably modify the libzapojit to support the webhook interface if it's possible to track the changes in real time.

Also, other links on the following page may be useful for you:
https://wiki.gnome.org/Projects/gvfs

Regards

Ondrej



2018-05-22 13:27 GMT+02:00 Adam Tauno Williams <awilliam whitemice org>:
> Thaks for pointing me to that feature request. I looked into the
> WebDAV redirection metioned there but it only works with
> username/password authentication it doesn't work with with the
> already available Oauth2 token stored in gnome-online-accounts. So
> users would have to log in separately and still there's virtualy no
> support for two phase authentication.

I have encountered some limitations with their WebDAV implementation -
so while good as a fallback it probably isn't a great solution.

> I wrote a program to test the also mentioned libzapojit library and
> as I can tell it works, I could authenticate through the
> ZpjGoaAuthorizer to get a list of files from my OneDrive. In my
> opinion it would be the best option to implement new gvfs backend
> same way Google Drive is. If this solution is alright I can start
> working on it.

Sounds awesome!

I will happily be a tester.  I poked around in the GVFS code way back
in the day.

--
Adam Tauno Williams <mailto:awilliam whitemice org> GPG D95ED383
OpenGroupware Developer <http://www.opengroupware.us/>




-- 
Vilém Hořínek <vilem horinek hotmail com>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]