After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 686527 - Pickup ownCloud accounts from GOA
Pickup ownCloud accounts from GOA
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
Depends on: 660573 706074 706158
Blocks:
 
 
Reported: 2012-10-20 15:19 UTC by Debarshi Ray
Modified: 2013-08-20 14:25 UTC
See Also:
GNOME target: 3.10
GNOME version: ---


Attachments
lib: support loading non-file:// GVfs URIs (5.31 KB, patch)
2013-08-19 12:02 UTC, Debarshi Ray
reviewed Details | Review
documents: implement OwncloudDocument (2.30 KB, patch)
2013-08-19 12:03 UTC, Debarshi Ray
committed Details | Review
miners: Add a JS stub for org.gnome.OnlineMiners.OwncloudMiner (887 bytes, patch)
2013-08-19 12:03 UTC, Debarshi Ray
committed Details | Review
miners: refresh the SkyDrive cache on startup (1.27 KB, patch)
2013-08-19 12:04 UTC, Debarshi Ray
none Details | Review
documents: check the nao:identifier and instantiate a OwncloudDocument (1.31 KB, patch)
2013-08-19 12:04 UTC, Debarshi Ray
committed Details | Review
properties: show an appropriate source for OwncloudDocuments (1.72 KB, patch)
2013-08-19 12:05 UTC, Debarshi Ray
committed Details | Review
miners: refresh the ownCloud cache on startup (1.27 KB, patch)
2013-08-20 07:27 UTC, Debarshi Ray
committed Details | Review
lib: support loading non-native GVfs URIs (5.73 KB, patch)
2013-08-20 13:27 UTC, Debarshi Ray
none Details | Review
lib: support loading non-native GVfs URIs (5.73 KB, patch)
2013-08-20 13:36 UTC, Debarshi Ray
accepted-commit_now Details | Review
lib: support loading non-native GVfs URIs (5.37 KB, patch)
2013-08-20 14:19 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2012-10-20 15:19:22 UTC
ownCloud accounts offer WebDAV endpoints whose URI is available as the Uri property on the account's org.gnome.OnlineAccounts.Files DBus interface. It would be good if Documents picked up ownCloud accounts.
Comment 1 Debarshi Ray 2013-03-13 21:27:55 UTC
Lets push this back to 3.10.
Comment 2 Debarshi Ray 2013-08-19 12:02:34 UTC
Created attachment 252207 [details] [review]
lib: support loading non-file:// GVfs URIs
Comment 3 Debarshi Ray 2013-08-19 12:03:04 UTC
Created attachment 252208 [details] [review]
documents: implement OwncloudDocument
Comment 4 Debarshi Ray 2013-08-19 12:03:39 UTC
Created attachment 252209 [details] [review]
miners: Add a JS stub for org.gnome.OnlineMiners.OwncloudMiner
Comment 5 Debarshi Ray 2013-08-19 12:04:13 UTC
Created attachment 252210 [details] [review]
miners: refresh the SkyDrive cache on startup
Comment 6 Debarshi Ray 2013-08-19 12:04:52 UTC
Created attachment 252211 [details] [review]
documents: check the nao:identifier and instantiate a OwncloudDocument
Comment 7 Debarshi Ray 2013-08-19 12:05:26 UTC
Created attachment 252212 [details] [review]
properties: show an appropriate source for OwncloudDocuments
Comment 8 Debarshi Ray 2013-08-20 07:27:43 UTC
Created attachment 252334 [details] [review]
miners: refresh the ownCloud cache on startup

Fix commit message: it is ownCloud not SkyDrive.
Comment 9 Cosimo Cecchi 2013-08-20 12:41:10 UTC
Review of attachment 252207 [details] [review]:

I'd really rather have this work nicely in evince and fix any bugs there rather than in GdPdfLoader. We can accept this as a short-term solution though.

::: src/lib/gd-pdf-loader.c
@@ +1124,3 @@
+  content_type = g_file_info_get_content_type (info);
+  if (!content_type_is_native (content_type))
+    g_error_free (error);

Brace style should be consistent with the rest of the file.

@@ +1180,3 @@
   else if (job->zpj_entry != NULL)
     pdf_load_job_from_skydrive (job);
+  else if (!g_str_has_prefix (job->uri, "file://"))

I think this should use g_file_is_native() instead.
Comment 10 Cosimo Cecchi 2013-08-20 12:42:10 UTC
Review of attachment 252208 [details] [review]:

Looks good
Comment 11 Cosimo Cecchi 2013-08-20 12:42:44 UTC
Review of attachment 252209 [details] [review]:

OK
Comment 12 Cosimo Cecchi 2013-08-20 12:43:04 UTC
Review of attachment 252334 [details] [review]:

OK
Comment 13 Cosimo Cecchi 2013-08-20 12:43:23 UTC
Review of attachment 252211 [details] [review]:

OK
Comment 14 Cosimo Cecchi 2013-08-20 12:44:04 UTC
Review of attachment 252212 [details] [review]:

Looks good
Comment 15 Debarshi Ray 2013-08-20 13:27:32 UTC
Created attachment 252419 [details] [review]
lib: support loading non-native GVfs URIs
Comment 16 Debarshi Ray 2013-08-20 13:36:16 UTC
Created attachment 252421 [details] [review]
lib: support loading non-native GVfs URIs
Comment 17 Debarshi Ray 2013-08-20 13:37:04 UTC
(In reply to comment #9)
> Review of attachment 252207 [details] [review]:
> 
> I'd really rather have this work nicely in evince and fix any bugs there rather
> than in GdPdfLoader. We can accept this as a short-term solution though.

Yeah.

> ::: src/lib/gd-pdf-loader.c
> @@ +1124,3 @@
> +  content_type = g_file_info_get_content_type (info);
> +  if (!content_type_is_native (content_type))
> +    g_error_free (error);
> 
> Brace style should be consistent with the rest of the file.

Is it ok now?

> @@ +1180,3 @@
>    else if (job->zpj_entry != NULL)
>      pdf_load_job_from_skydrive (job);
> +  else if (!g_str_has_prefix (job->uri, "file://"))
> 
> I think this should use g_file_is_native() instead.

Done.
Comment 18 Cosimo Cecchi 2013-08-20 13:53:37 UTC
Review of attachment 252421 [details] [review]:

Looks good, other than these two cosmetic issues below.

::: src/lib/gd-pdf-loader.c
@@ +959,2 @@
     pdf_load_job_from_openoffice (job);
+  }

This change isn't needed.

@@ +1125,3 @@
+  content_type = g_file_info_get_content_type (info);
+  if (!content_type_is_native (content_type))
+    g_error_free (error);

I was referring to these braces here, should be in the same line of the if above.
Comment 19 Debarshi Ray 2013-08-20 14:17:54 UTC
(In reply to comment #18)
> Review of attachment 252421 [details] [review]:
> 
> Looks good, other than these two cosmetic issues below.

Oops. Sorry for the mix up. Fixed.

> @@ +1125,3 @@
> +  content_type = g_file_info_get_content_type (info);
> +  if (!content_type_is_native (content_type))
> +    g_error_free (error);

I wonder why Splinter keeps showing the 'g_error_free'. It is not present in that snippet. :-/
Comment 20 Debarshi Ray 2013-08-20 14:19:14 UTC
Created attachment 252431 [details] [review]
lib: support loading non-native GVfs URIs
Comment 21 Cosimo Cecchi 2013-08-20 14:21:51 UTC
Review of attachment 252431 [details] [review]:

Looks good!
Comment 22 Debarshi Ray 2013-08-20 14:25:59 UTC
Thank you very much for all the reviews.