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 753415 - Add OwnCloud Music support
Add OwnCloud Music support
Status: RESOLVED OBSOLETE
Product: gnome-online-accounts
Classification: Core
Component: general
3.17.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Online Accounts maintainer(s)
GNOME Online Accounts maintainer(s)
Depends on:
Blocks: 708937 753416
 
 
Reported: 2015-08-09 15:36 UTC by Bastien Nocera
Modified: 2020-10-09 16:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allow storing Owncloud Ampache Password (20.93 KB, patch)
2016-03-06 11:04 UTC, Gaurav Narula
none Details | Review
Allow storing Owncloud Ampache Password (20.92 KB, patch)
2016-03-07 01:09 UTC, Gaurav Narula
none Details | Review
Allow storing Owncloud Ampache Password (21.11 KB, patch)
2016-03-07 13:04 UTC, Gaurav Narula
none Details | Review
ownCloud: Add music feature (4.62 KB, patch)
2016-05-25 08:25 UTC, Gaurav Narula
reviewed Details | Review
ownCloud: generate ampache password on add_account (11.68 KB, patch)
2016-05-25 08:26 UTC, Gaurav Narula
none Details | Review
ownCloud: generate ampache password on refresh_account (3.21 KB, patch)
2016-05-25 08:26 UTC, Gaurav Narula
none Details | Review
ownCloud: validate ampache credentials on ensure_credentials_sync (9.81 KB, patch)
2016-05-25 08:28 UTC, Gaurav Narula
none Details | Review
ownCloud: add RetryFeature method (7.97 KB, patch)
2016-05-28 12:47 UTC, Gaurav Narula
none Details | Review
Add uri and accept-ssl-errors proerty to Music interface (4.23 KB, patch)
2016-06-14 09:43 UTC, Gaurav Narula
none Details | Review
backtrace (17.43 KB, text/x-log)
2016-07-28 09:51 UTC, Felipe Borges
  Details
ownCloud: generate ampache password on add_account (11.91 KB, patch)
2016-07-30 11:32 UTC, Gaurav Narula
none Details | Review
ownCloud: generate ampache password on refresh_account (3.43 KB, patch)
2016-07-30 11:32 UTC, Gaurav Narula
none Details | Review

Description Bastien Nocera 2015-08-09 15:36:40 UTC
I guess that the resulting API would be: goa_music_get_uri()

This would be used by grilo to access the Ampache instance in the OwnCloud installation.
Comment 1 Gaurav Narula 2016-03-06 11:04:48 UTC
Created attachment 323190 [details] [review]
Allow storing Owncloud Ampache Password

The patch allows appending ampache password to the owncloud keyring entry. There is a caveat which needs to be addressed:

Canceling the password prompt dialog and then toggling the music switch again leads to a segfault because of an assertion (GOA_IS_PROVIDER) failing. I think this is because the provider pointer is freed. This is substantiated by the fact that the segfault does not occur when one manually selects the account from the TreeView on the left after canceling. I tried increasing the ref count in case the response from the dialog is not GTK_RESPONSE_OK but that doesn't seem to have an effect.

Wondering if there is a way to retrieve the provider and object from the callback directly without passing a potentially freed reference.
Comment 2 Gaurav Narula 2016-03-07 01:09:05 UTC
Created attachment 323225 [details] [review]
Allow storing Owncloud Ampache Password

Fixes the caveat mentioned in the previous comment. Realized I had freed the struct pointer even when dialog returned a non OK response.
Comment 3 Gaurav Narula 2016-03-07 13:04:18 UTC
Created attachment 323265 [details] [review]
Allow storing Owncloud Ampache Password
Comment 4 Gaurav Narula 2016-05-25 08:25:39 UTC
Created attachment 328477 [details] [review]
ownCloud: Add music feature
Comment 5 Gaurav Narula 2016-05-25 08:26:03 UTC
Created attachment 328478 [details] [review]
ownCloud: generate ampache password on add_account
Comment 6 Gaurav Narula 2016-05-25 08:26:31 UTC
Created attachment 328479 [details] [review]
ownCloud: generate ampache password on refresh_account
Comment 7 Gaurav Narula 2016-05-25 08:28:01 UTC
Created attachment 328480 [details] [review]
ownCloud: validate ampache credentials on ensure_credentials_sync

The documentation for Ampache Password generation can be found at https://github.com/owncloud/music/tree/use-http-response-codes#authentication
Comment 8 Gaurav Narula 2016-05-28 12:47:20 UTC
Created attachment 328659 [details] [review]
ownCloud: add RetryFeature method

on_handle_retry_feature checks for "AmpacheError" key. Can perhaps be replaced with a property instead.
Comment 9 Gaurav Narula 2016-06-14 09:43:21 UTC
Created attachment 329766 [details] [review]
Add uri and accept-ssl-errors proerty to Music interface
Comment 10 Felipe Borges 2016-07-28 09:27:21 UTC
Review of attachment 328477 [details] [review]:

looks good.
Comment 11 Felipe Borges 2016-07-28 09:36:01 UTC
Review of attachment 328478 [details] [review]:

looks good IMO.

::: src/goabackend/goaowncloudprovider.c
@@ +1186,3 @@
+                         GtkBox                     *vbox,
+                         GtkGrid                    *grid,
+  },

no need for this indentation.
Comment 12 Felipe Borges 2016-07-28 09:50:26 UTC
Review of attachment 328479 [details] [review]:

after this one, I'm getting segfault when cancelling the creation of an owncloud account.
Comment 13 Felipe Borges 2016-07-28 09:51:10 UTC
Created attachment 332267 [details]
backtrace
Comment 14 Gaurav Narula 2016-07-30 11:32:07 UTC
Created attachment 332388 [details] [review]
ownCloud: generate ampache password on add_account
Comment 15 Gaurav Narula 2016-07-30 11:32:57 UTC
Created attachment 332389 [details] [review]
ownCloud: generate ampache password on refresh_account
Comment 16 Andres Gomez 2017-08-24 11:38:17 UTC
Something missing?