https://issues.qgis.org/https://issues.qgis.org/favicon.ico2006-04-09T23:57:21ZQGIS Issue TrackingQGIS Application - Bug report #3912: WMS Proxy username and password not workinghttps://issues.qgis.org/issues/3912?journal_id=125152006-04-09T23:57:21ZGavin Macaulay -gavin@macaulay.co.nz
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>Fixed in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/69c0c360e2fa265f884c7a35a8dd2b9833f273e6" title="Save and read the wms proxy password and user from the config file. Should resolve ticket #8 gi...">69c0c360</a> (SVN r5244)</p> QGIS Application - Bug report #3912: WMS Proxy username and password not workinghttps://issues.qgis.org/issues/3912?journal_id=125162006-08-15T00:23:56ZBrendan Morley -morb@beagle.com.au
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Feedback</i></li><li><strong>Resolution</strong> deleted (<del><i>fixed</i></del>)</li></ul><p>Tested the HEAD version, WMS proxy is not working at all, and gives a sparse error message.</p> QGIS Application - Bug report #3912: WMS Proxy username and password not workinghttps://issues.qgis.org/issues/3912?journal_id=125172006-08-15T01:52:21ZBrendan Morley -morb@beagle.com.au
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li></ul><p>Speculative fix in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/07a42c171af827b2690c9a96a2bb20d07882bd74" title="A further speculative fix for trac ticket #8. QgsHttpTransaction needed to wait for the done() s...">07a42c17</a> (SVN r5698).</p>
<p>Can somebody please test with a proxy for me and report back, or build a Windows version for me so that I can test?</p> QGIS Application - Bug report #3912: WMS Proxy username and password not workinghttps://issues.qgis.org/issues/3912?journal_id=125182006-08-15T13:39:54ZGavin Macaulay -gavin@macaulay.co.nz
<ul></ul><p>With SVN <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/07a42c171af827b2690c9a96a2bb20d07882bd74" title="A further speculative fix for trac ticket #8. QgsHttpTransaction needed to wait for the done() s...">07a42c17</a> (SVN r5698), access to a wms server through a proxy now works for me. I get a list of available layers, but never get an image. The Metadata tab in the resulting layer properties dialog has no text in the value column. It works fine without a proxy in place.</p> QGIS Application - Bug report #3912: WMS Proxy username and password not workinghttps://issues.qgis.org/issues/3912?journal_id=125192006-08-18T20:33:52ZGavin Macaulay -gavin@macaulay.co.nz
<ul></ul><p>Brendan,</p>
<p>The problem here is that the wms provider does not have the proxy information set. The temporary wms provider instance created in the qgsserversourceselect class has the proxy stuff set correctly, but the second instance of the wms provider that is created in the <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/QgsRasterLayer">QgsRasterLayer</a> class doesn't (and is the one that retrieves the actual map data). The layer data that is passed to the <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/QgsRasterLayer">QgsRasterLayer</a> constructor doesn't include the wms proxy information, so the provider uses it's defaults.</p>
<p>This patch shows what needs to be set, but it's just a hack to confirm that it solves the problem (which it does):</p>
<pre>
Index: qgsrasterlayer.cpp
===================================================================
--- qgsrasterlayer.cpp (revision 5709)
+++ qgsrasterlayer.cpp (working copy)
@@ -5036,6 +5036,9 @@
{
valid = true;
+ [[QgsWmsProvider]]* pp = (QgsWmsProvider*)(dataProvider);
+ pp->setProxy("www-proxy",80,"","");
+
dataProvider->addLayers(layers, styles);
dataProvider->setImageEncoding(format);
dataProvider->setImageCrs(crs);
</pre>
<p>This patch just hard-wires the proxy information for all raster layers to the required settings for the proxy that I have acccess to. Obviously, it should really get the information from one of the parameters that is passed to the <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/QgsRasterLayer">QgsRasterLayer</a> constructor.</p>
<p>Gavin</p> QGIS Application - Bug report #3912: WMS Proxy username and password not workinghttps://issues.qgis.org/issues/3912?journal_id=125202006-08-21T00:51:38ZBrendan Morley -morb@beagle.com.au
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>In Progress</i></li></ul><p>Potential fix in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/d04ea690444e1c9c1155a681dcb0c5c58818214f" title="Fix for ticket #208. configure now accepts an optional --with-projlibdir option to explicitly set...">d04ea690</a> (SVN r5716) based on Gavin's comment of 08/19/06 06:33:52. Please have a test of it if possible and report back.</p> QGIS Application - Bug report #3912: WMS Proxy username and password not workinghttps://issues.qgis.org/issues/3912?journal_id=125212006-08-21T00:52:26ZBrendan Morley -morb@beagle.com.au
<ul></ul><p>Correction: <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/18d2744935692239830d26226733ec57eb0ed703" title="Potential fix for trac-ticket #8. * Propagate proxy information from the Server Selection dialog...">18d27449</a> (SVN r5717) not 5715.</p> QGIS Application - Bug report #3912: WMS Proxy username and password not workinghttps://issues.qgis.org/issues/3912?journal_id=125222006-08-21T16:01:17ZGavin Macaulay -gavin@macaulay.co.nz
<ul></ul><p>More changes in SVN <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/c14a0207005d38206eaf5459072b690167350d25" title="Further changes to fix ticket #8 (wms not working through a web proxy). Should work now, but need...">c14a0207</a> (SVN r5724) that should fix the problem. Needs a bit of testing though...</p> QGIS Application - Bug report #3912: WMS Proxy username and password not workinghttps://issues.qgis.org/issues/3912?journal_id=125232006-08-22T01:03:53ZGavin Macaulay -gavin@macaulay.co.nz
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>Seems to work fine now. Tested both with and without a proxy.</p> QGIS Application - Bug report #3912: WMS Proxy username and password not workinghttps://issues.qgis.org/issues/3912?journal_id=125242006-08-30T00:17:11Zneteler-itc-it -neteler+itc@osgeo.org
<ul></ul><p>Hi,</p>
<p>proxy works now, great & thanks.<br />But strangely you have to add 'http://' into<br />the WMS URL (while not needed elsewhere).</p>
<p>It would be great if it worked without 'http://'<br />in the WMS URL as well (for consistency).</p>
<p>Great job,<br />Markus</p> QGIS Application - Bug report #3912: WMS Proxy username and password not workinghttps://issues.qgis.org/issues/3912?journal_id=125252009-08-21T22:46:00ZAnonymous
<ul></ul><p>Milestone Version 0.8 deleted</p>