https://issues.qgis.org/https://issues.qgis.org/favicon.ico2015-07-09T04:08:46ZQGIS Issue TrackingQGIS Application - Bug report #13088: qgis-server mixing layer db-connectionshttps://issues.qgis.org/issues/13088?journal_id=628392015-07-09T04:08:46ZTom Palanthomas@palan.at
<ul><li><strong>File</strong> <a href="/attachments/download/8917/disable_layer_caching.patch">disable_layer_caching.patch</a><a href="/attachments/8917/disable_layer_caching.patch"><img alt="Magnifier" src="/images/magnifier.png" /></a> added</li></ul><p>Update: The problem only occures if the 2 projects have layers with the same name. Apparently somewhere in QgsWMSProjectParser::mapLayerFromStyle (when called with useCache=true) mixes layers from different projects.<br />I was able to "fix" it by disabling caching of layers, see patch. As this is only a temporary fix, could somebody with more knowledge of QGIS chime in?</p> QGIS Application - Bug report #13088: qgis-server mixing layer db-connectionshttps://issues.qgis.org/issues/13088?journal_id=628402015-07-09T05:07:15ZMarco Hugentoblermarco.hugentobler@sourcepole.ch
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>It happened if two layers have the same id and the same layer name. But it should be fixed in master branch already (<a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/127dd64db6d69a21983dff517b1cffaad584e7c1" title="Fix layer cache to work with layers which have the same id (but in different project files)">127dd64</a>)</p>