Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#1350 closed bug (fixed)

WMS connection don't work through proxy

Reported by: neumann Owned by: nobody
Priority: major: does not work as expected Milestone:
Component: WMS Version: Trunk
Keywords: Cc: cavallini@…
Must Fix for Release: Yes Platform: Debian
Platform Version: Awaiting user input: no

Description

With the current trunk, WMS connections don't work through the Proxy. This was confirmed by at least two other persons. See discussion starting at http://lists.osgeo.org/pipermail/qgis-user/2008-October/003514.html

This bug may be related to the following bug: https://trac.osgeo.org/qgis/ticket/1072

Here is one of the Proxy error messages from Paulo:


Warning: UNEXPECTED RESPONSE: [HTTP/1.0 403 Forbidden Server: squid/2.6.STABLE12 Date: Tue, 14 Oct 2008 14:47:56 GMT Content-Type: text/html Content-Length: 1032 Expires: Tue, 14 Oct 2008 14:47:56 GMT X-Squid-Error: ERR_ACCESS_DENIED 0 X-Cache: MISS from proxy.arpa.piemonte.it Via: 1.0 proxy.arpa.piemonte.it:3128 (squid/2.6.STABLE12) Proxy-Connection: close


Here is the proxy error message from Carson:


Warning: UNEXPECTED RESPONSE: [HTTP/1.0 403 Forbidden server: squid/2.5.STABLE14 mime-version: 1.0 date: Tue, 14 Oct 2008 15:35:22 GMT content-type: text/html content-length: 1045 expires: Tue, 14 Oct 2008 15:35:22 GMT x-squid-error: ERR_ACCESS_DENIED 0 x-cache: MISS from whitethorn.nuim.ie proxy-connection: close


Thank you for having a look at this bug.

Change History (10)

comment:1 by pcav, 16 years ago

I think this is reated to a bug in Qt, as also other Qt apps on the same system do not work through the same proxy. It is not limited to WMS: any request that should be proxyed (eg going to QGIS web page) does not work. This is not debian-specific, as it shows up also on Fedora core 9.

comment:2 by monty, 15 years ago

Qgis use the HTTP CONNECT method to connect to the wms server. Disable the Connect Restriction in your squid.conf:

# Deny CONNECT to other than SSL ports
# http_access deny CONNECT !SSL_ports

comment:3 by neumann, 15 years ago

thanks for the hint - unfortunately I don't have access to the proxy configuration - this is a state-wide setting out of my control. However, I can ask the administrators of the proxy to look into the issue. I will report back if you suggestion solves my issue. It looks like this restriction in the proxy setting could be the cause.

Thanks for your help, Andreas

comment:4 by marchesinivan, 15 years ago

I'm using debian testing I have just installed qgis 1.0.1

We have a proxy of this type: 192.168.10.13 - port: 80

I have tried to use settings -> optins -> Proxy to define the proxy server but the answer, when I try to connect to a wms server is:

"Could not understand the response. The wms provider said:"

the console says:

Warning: UNEXPECTED RESPONSE: [HTTP/1.1 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. ) Via: 1.1 ISAREGUMB Connection: close Proxy-Connection: close Pragma: no-cache Cache-Control: no-cache Content-Type: text/html Content-Length: 781

] Warning: UNEXPECTED RESPONSE: [HTTP/1.1 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. ) Via: 1.1 ISAREGUMB Connection: close Proxy-Connection: close Pragma: no-cache Cache-Control: no-cache Content-Type: text/html Content-Length: 781

] _

It seems a problem of SSL??

That's all... I think this problem is a major problem and can create difficulties to the introduction of Qgis into the Public Administrations

Thanks to all

Ivan

in reply to:  4 ; comment:5 by jef, 15 years ago

Replying to marchesinivan:

Warning: UNEXPECTED RESPONSE: [HTTP/1.1 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )

[...]

It seems a problem of SSL??

No, as monty pointed out QGIS uses HTTP CONNECT to access the WMS server thought the proxy. But the proxy you use is configured to restrict HTTP CONNECT to port 443 (usually used HTTPS).

Perhaps it helps when you switch from HttpProxy to HttpCachingProxy (but I think that's currently available in 1.1 only).

in reply to:  5 ; comment:6 by jef, 15 years ago

Replying to jef:

Perhaps it helps when you switch from HttpProxy to HttpCachingProxy (but I think that's currently available in 1.1 only).

Yes, that helps. Leaving this ticket open - as we should probably backport this to 1.0.

in reply to:  6 comment:7 by marchesinivan, 15 years ago

Replying to jef:

Replying to jef:

Perhaps it helps when you switch from HttpProxy to HttpCachingProxy (but I think that's currently available in 1.1 only).

Yes, that helps. Leaving this ticket open - as we should probably backport this to 1.0.

I have just installed osgeo qgis trunk and setting HttpProxy I can use WMS!!!

good!!! as soon as possible I will test it on debian

comment:8 by neumann, 15 years ago

I think this bug should be closed now. It works fine for me.

Andreas

comment:9 by pcav, 15 years ago

Resolution: fixed
Status: newclosed

comment:10 by (none), 15 years ago

Milestone: Version 1.0.2

Milestone Version 1.0.2 deleted

Note: See TracTickets for help on using tickets.