weather applet won't use automatic-proxy-configuration

Bug #153301 reported by Neilen Marais
42
This bug affects 6 people
Affects Status Importance Assigned to Milestone
GNOME Applets
Fix Released
High
gnome-applets (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-applets

In gnome-network-preferences the proxy can be confgured as "Direct internet connection" (i.e. None), "Manual proxy configuration" where the host/port of the proxy server is specified and "Automatic proxy configuration" where an URL pointing to a .pac proxy configuration is specified.

If "Automatic proxy configuration" is specified gweather-applet-2 ignores that setting and uses the information provided in "Manual proxy configuration", even if it is disabled. To see this,

1) Change the manual proxy setting to point to an invalid proxy server and restart gweather-applet-2.

Now the weather won't update

2) Activate a valid proxy configuration in "Automatic proxy configuration" and restart gweather-applet-2.

The weather still won't update

3) Change the Manual configuration to point to a valid proxy server but do not activate it. Keep using the Automatic configuration and restart gweather-applet-2.

Now the weather will update using the deactivated Manual proxy configuration rather than the activated automatic proxy.

Note the restart of gweather-applet-2 at each step is required because of https://bugs.launchpad.net/ubuntu/+source/gnome-applets/+bug/49736

This is running up to date Feisty/AMD64

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: http://bugzilla.gnome.org/show_bug.cgi?id=487221

Changed in gnome-applets:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Triaged
Changed in gnome-applets:
status: Unknown → New
Revision history for this message
Steven McCoy (dsbunny) wrote :

> 3) Change the Manual configuration to point to a valid proxy server but do not activate it. Keep using the Automatic
> configuration and restart gweather-applet-2.

This seems to be a generic Gnome feature, if an application doesn't understand automatic proxy it will use the manual http proxy settings instead. The Gconf configuration backs this up: the preferred proxy settings are in ~/.gconf/system/proxy and the manual http setting is in ~/.gconf/system/http_proxy.

Revision history for this message
Neilen Marais (neilenmarais) wrote :

Perhaps it would make sense then for the gnome libs to provide an http access function that does understand the automatic settings? Or does it exist already, meaning that gweather-applet-2 needs to changed to make use of it?

Revision history for this message
Steven McCoy (dsbunny) wrote :

Autoproxy cannot resolve the proxy without a JavaScript engine, that would be way too bulky to bundle into a library so it needs to be a service. One service was created but no effort seems to have pushed it beyond initial release:

http://lwn.net/Articles/206724/

If you want to do the chasing I suggest logging bugs around the APIs, presumably something like libsoup. The main bug report is bug 123900 at Gnome about gnome-vfs not actually any library or API.

http://bugzilla.gnome.org/buglist.cgi?query=automatic+proxy

This is hindered as libcurl & neon are more popular HTTP client libraries which grab proxy information from the environment, i.e. http_proxy, ftp_proxy, and all_proxy, and does not support autoproxy configuration.

Changed in gnome-applets:
status: Unknown → New
Revision history for this message
Andrea Caminiti (nrayever) wrote :

i have the same problem here! at work we have some firewalls and the weather applet doesn't use the main gnome proxy setting. that's not good.

Revision history for this message
William (bthomas-akld) wrote :

I am running Intrepid 8.10 (installed as alpha 4 but has all updates applied as of today). I have manual proxy set in the system preferences network proxy settings. This works for Firefox and the synaptic package manager and system update but the weather applet seems to be a ignoring the manual proxy setting. A minor bug I know but it means I can't get the weather reports at work :-(. I ran a wireshark trace and see it is trying to connect direct and the coy firewall is therefore blocking the connection. Version of the applet installed is 2.23.92. I did find a sort of a workaround as the Firefox web browser has an add-on called Forecfast fox but it would be nice to have the gnome applet working.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

fixed upstream, thanks for reporting.

Changed in gnome-applets:
status: Triaged → Fix Committed
Changed in gnome-applets:
status: New → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the new version is in jaunty now

Changed in gnome-applets:
status: Fix Committed → Fix Released
Revision history for this message
Mike Hicks (hick0088) wrote :

Is this really fixed? Did it fix automatic proxies but break manual ones? I've been unable to get weather info since upgrading to 9.04, and my environment requires a manual proxy configuration.

Revision history for this message
Gavin McCullagh (gmccullagh) wrote :

This bug may be fixed but it's not working for me.

The reason in my case though is that the weather applet (and gnome proxy in general) doesn't seem able to deal with proxy authentication which is required on my site.

1250239082.625 136 172.16.1.3 TCP_DENIED/407 1906 GET http://weather.noaa.gov/cgi-bin/mgetmetar.pl? - NONE/- text/html

Gavin

Changed in gnome-applets:
importance: Unknown → High
Changed in gnome-applets (Ubuntu):
status: Fix Released → New
Revision history for this message
Olivier Godart (olivier-godart-gmail) wrote :

Using Ubuntu 10.04, automatic proxy set in the "Network proxy" gnome preferences, environment variables are also set (by the same "Network proxy" tool) for manual proxy.
The weather applet uses NO proxy and tries to connect directly to "weather.noaa.gov" (I saw this in wireshark).

There is no (or I didn't find) verbose or debug option for that applet. This would be a nice feature to add.

Revision history for this message
Huygens (huygens-25) wrote :

Same thing as with Olivier, the applet is no more using the Automatic proxy settings, or perhaps the Gnome Proxy Settings are broken because most application do not see the proxy configuration when using it in automatic mode. I say most because the only exception that do work are Firefox and Chromium, all other apps are broken :-(

Using Ubuntu 10.04 64bit with latest updates.

Revision history for this message
Klisse (klisse) wrote :

Can´t search locations in indicator-weather (11.04.10+repack-0ubuntu2) behind a proxy with authentication, which is configured as manual proxy systemwide in network settings.

Firefox works using this setting. Synaptic still needs its own proxy setting.

11.04 beta2 i386 with latest updates

Changed in gnome-applets (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.