Bug report #3844

QGIS doesn't use username and password in options dialog for proxy connections with WMS

Added by luca76 - about 13 years ago. Updated over 10 years ago.

Status:Closed
Priority:Low
Assignee:Jürgen Fischer
Category:Web Services clients/WMS
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:13902

Description

QGIS doesn't use username and password inserted in the options dialog for proxy connections, to use with WMS connections.

This problem affects 1.6.0 and trunk versions, on Linux and Windows.

In the SQUID log, I see this when I try to connect to NASA WMS with Qgis:

1306326384.090      1 192.168.11.118 TCP_DENIED/407 1987 GET http://onearth.jpl.nasa.gov/browse.cgi? - NONE/- text/html

as you see, the username is not sent.

If I use the browser (Firefox 3.6) with the same url:

1306326543.606    446 192.168.11.118 TCP_MISS/200 1385 GET http://onearth.jpl.nasa.gov/browse.cgi? manganelll DIRECT/onearth.jpl.nasa.gov text/html

this is correct (manganelll is my username).

I remember that in previous versions of QGIS this was working.

prob1.png (8.57 KB) luca76 -, 2011-05-26 12:36 AM

prob2.png (6.42 KB) luca76 -, 2011-05-26 12:36 AM

History

#1 Updated by luca76 - about 13 years ago

see attachments: in prob1.png I've configured proxy options, in prob2.png proxy wants repeatly my username and password for wms connection.

#2 Updated by Giovanni Manghi over 12 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#3 Updated by Jürgen Fischer over 12 years ago

  • Status changed from Open to Feedback
  • Crashes QGIS or corrupts data set to No
  • Pull Request or Patch supplied set to No
  • Affected QGIS version set to master

not reproducable in master. Please verify that it isn't fixed.

#4 Updated by luca76 - over 12 years ago

Jürgen Fischer wrote:

not reproducable in master. Please verify that it isn't fixed.

Hi, the problem is still present. Using HTTPProxy with a Squid 2.6 Proxy and authentication. See my previous attachments.

#5 Updated by Jürgen Fischer over 12 years ago

trapanator - wrote:

Hi, the problem is still present. Using HTTPProxy with a Squid 2.6 Proxy and authentication. See my previous attachments.

Are you using packages or own builds? If the latter, which version of Qt are you building with?

#6 Updated by luca76 - over 12 years ago

Jürgen Fischer wrote:

trapanator - wrote:

Hi, the problem is still present. Using HTTPProxy with a Squid 2.6 Proxy and authentication. See my previous attachments.

Are you using packages or own builds? If the latter, which version of Qt are you building with?

I've used the 2012-02-03 OSGEO4W build of qgis-dev.

#7 Updated by Paolo Cavallini about 12 years ago

  • Target version changed from Version 1.7.4 to Version 1.8.0

#8 Updated by Paolo Cavallini almost 12 years ago

  • Target version changed from Version 1.8.0 to Version 2.0.0

#9 Updated by Giovanni Manghi over 11 years ago

  • Operating System deleted (All)
  • Status info deleted (0)

What is the status of this issue with recent qgis versions?

#10 Updated by luca76 - over 11 years ago

Giovanni Manghi wrote:

What is the status of this issue with recent qgis versions?

The problem is still present. When I connect to a WMS server, (squid) proxy always asks for authentication, because QGIS never sends provided username/password.

This bug is discovered by the maker of plugin_installer (see it on python/plugins): see the code of installer_data.py at the row 130:

  1. --- class QPHttp ----------------------------------------------------------------------- #
  2. --- It's a temporary workaround for broken proxy handling in Qt ------------------------- #

#11 Updated by luca76 - over 10 years ago

  • Status changed from Feedback to Closed
  • Resolution set to fixed/implemented

Now it's fixed in 2.0. Thank you!

Also available in: Atom PDF