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 600405 - Getting CD info doesn't work over proxy
Getting CD info doesn't work over proxy
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: general
0.12.x
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-02 11:58 UTC by Henrique Rocha
Modified: 2018-05-24 14:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Henrique Rocha 2009-11-02 11:58:24 UTC
Rhythmbox is not using the Gnome network proxy settings.
Because of this, it is not able to get track names for CDs which is really annoying if you want to rip it.
Comment 1 Bastien Nocera 2009-11-02 16:25:05 UTC
There is code to handle proxies in sj-metadata-musicbrainz3.c, I just think it's broken.
Comment 2 Henrique Rocha 2009-11-02 16:42:53 UTC
I'll try to fix it if it is not too difficult.
Comment 3 Tim M 2010-07-28 12:02:09 UTC
I found the problem and I'll post a workaround but it would probably be best for someone with a bit more programming experience to write a patch.


In sj-metadata-musicbrainz.c (Not musicbrainz3.c), in the sj_metadata_musicbrainz_init() function, the proxy settings for musicbrainz get set properly.

After the above function is called, the sj_metadata_musicbrainz_set_property() function gets called.  There is a SWITCH statement which in the function which sets the proxy settings (a second and third time) by calling the mb_SetProxy function to configure musicbrainz's proxy settings.  However, this resets the proxy settings because the data passed to the sj_metadata_musicbrainz_set_property() function is NULL or 0, and as far as I can tell, the priv->http_proxy and priv->http_proxy_port values never get set properly anywhere in the code.

sj_metadata_musicbrainz_init() gets called before sj_metadata_musicbrainz_set_property(), so when this second function is called it eliminates the proxy settings set by the first.

As a workaround, I compiled from source with the mb_SetProxy() calls in the sj_metadata_musicbrainz_set_property() function commented out.

If someone with proper coding knowledge can take a look and figure out a real solution, I would appreciate it!  This is a very annoying bug.  I should note that I compiled from the rhythmbox-0.12.8 source package.


static void
sj_metadata_musicbrainz_set_property (GObject *object, guint property_id,
                                      const GValue *value, GParamSpec *pspec)
{
...
  case PROP_PROXY_HOST:
...
    //mb_SetProxy (priv->mb, priv->http_proxy, priv->http_proxy_port);
    break;
  case PROP_PROXY_PORT:
    priv->http_proxy_port = g_value_get_int (value);
    //mb_SetProxy (priv->mb, priv->http_proxy, priv->http_proxy_port);
    break;
...
}
Comment 4 GNOME Infrastructure Team 2018-05-24 14:48:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/825.