Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

GNOME Documents integration #318

Open
jancborchardt opened this issue Jul 27, 2014 · 7 comments
Open

GNOME Documents integration #318

jancborchardt opened this issue Jul 27, 2014 · 7 comments

Comments

@jancborchardt
Copy link
Contributor

I was talking to @cosimoc about integration with GNOME Documents. For Google Drive for example, they show the document using a WebkitView, to allow for collaboration and such.

That would also be possible for ownCloud Documents. The first part of the path owncloud/index.php/apps/documents could be hardcoded, but the #338 (or the relevant document ID) we need a way to get to.

Is there an API for that already @VicDeo, or an extended WebDAV attribute? cc @DeepDiver1975

@DeepDiver1975
Copy link
Contributor

we already communicate the fileid via webdav - no idea if this is enough @VicDeo

@DeepDiver1975
Copy link
Contributor

Here is an example from cadaver:

dav:/owncloud/master/remote.php/webdav/> propget welcome.txt
Fetching properties for `welcome.txt':
http://owncloud.org/ns id = 00000005oc9dc772cf81
http://owncloud.org/ns permissions = RDNVW
DAV: getetag = "53c697b383d0e"
DAV: getlastmodified = Fri, 11 Jul 2014 13:02:21 GMT
DAV: getcontentlength = 163
DAV: resourcetype = 
DAV: getcontenttype = text/plain
dav:/owncloud/master/remote.php/webdav/> 

@DeepDiver1975
Copy link
Contributor

http://owncloud.org/ns id = 00000005oc9dc772cf81

this is the webdav property holding the file id

@VicDeo
Copy link
Contributor

VicDeo commented Jul 30, 2014

@jancborchardt
in the URL owncloud/index.php/apps/documents#338
338 is fileId because it is

  • unique
  • consistent between different users.

Hash is used internally to identify a document that has collaborators currently.

@jancborchardt
Copy link
Contributor Author

Ahh great! @cosimoc you can build the URL like this:

  • 1st part: the address from GOA, like https://example.com/owncloud/
  • 2nd part: index.php/apps/documents#
  • 3rd part: section from the ID from the WebDAV request before the »oc«: From 00000338oc55432f2bac it would be 338

@DeepDiver1975
Copy link
Contributor

to clearify the file id as we see it in the webdav property:
it is composed of the fileid as it can be seen in the database and the ownCloud instance id

@jancborchardt
Copy link
Contributor Author

Related bug in GNOME Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=734667

@VicDeo VicDeo removed their assignment Dec 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants