https://issues.qgis.org/https://issues.qgis.org/favicon.ico2015-01-15T08:16:57ZQGIS Issue TrackingQGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=586522015-01-15T08:16:57ZSandro Santillistrk@kbt.io
<ul></ul><p>This is still an issue in master (pre 2.8.0)</p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=673602016-01-19T00:30:30ZSandro Santillistrk@kbt.io
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>In Progress</i></li><li><strong>Target version</strong> set to <i>Version 2.14</i></li></ul><p>still an issue in current master (2.14-pre)</p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=673612016-01-19T00:34:14ZSandro Santillistrk@kbt.io
<ul></ul><p>It turns out this was broken by <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/62b2c1fcabc88e82b0229790b56a7a9ada0f5771" title="db manager: request credentials directly when connection failed (fixes #11886)">62b2c1fcabc88e82b0229790b56a7a9ada0f5771</a> to fix <a class="issue tracker-1 status-5 priority-5 priority- closed" href="https://issues.qgis.org/issues/11886" title="DBManager always shows password to PostGIS connection in clear text in .qgs file (Closed)">#11886</a></p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=673622016-01-19T00:58:49ZSandro Santillistrk@kbt.io
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Closed</i></li></ul><p>Fixed in changeset <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/da372c8d40b1f81eb2fc307edc77199ba540bf10" title="Ensure "dbname" is always set in the uri Fixes #10600">da372c8d40b1f81eb2fc307edc77199ba540bf10</a>.</p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=673662016-01-19T01:35:23ZJürgen Fischerjef@norbit.de
<ul></ul><p>Is the requirement to have a dbname when loading a raster layer the problem?</p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=673712016-01-19T01:52:17ZSandro Santillistrk@kbt.io
<ul></ul><p>Yes, GDAL complained at least a dbname was needed.</p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=673722016-01-19T01:53:06ZSandro Santillistrk@kbt.io
<ul></ul><p>I guess a ticket could also be filed against GDAL to request allowing that, btw</p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=673732016-01-19T02:02:01ZSandro Santillistrk@kbt.io
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>Upstream filed: <a class="external" href="https://trac.osgeo.org/gdal/ticket/6316">https://trac.osgeo.org/gdal/ticket/6316</a></p>
<p>I'm reopening this to try another approach, less intrusive</p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=673742016-01-19T02:15:32ZSandro Santillistrk@kbt.io
<ul></ul><p>I have another patch that only adds the "dbname" in the URI of raster layers, rather than in all postgresql layers.<br />Is it to be preferred leaving dbname undefined in the project file, when it was in the connection configuration ?</p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=673752016-01-19T02:16:33ZSandro Santillistrk@kbt.io
<ul></ul><p>I shall note that "host" and "port" are still being enforced in the URI (from before my first patch)</p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=673772016-01-19T02:27:50ZSandro Santillistrk@kbt.io
<ul><li><strong>Resolution</strong> set to <i>fixed/implemented</i></li><li><strong>File</strong> <a href="/attachments/download/9485/gdal_only_dbname.patch">gdal_only_dbname.patch</a><a href="/attachments/9485/gdal_only_dbname.patch"><img alt="Magnifier" src="/images/magnifier.png" /></a> added</li><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>Well, I'll leave master as it is. After all that's how it behaved before <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/62b2c1fcabc88e82b0229790b56a7a9ada0f5771" title="db manager: request credentials directly when connection failed (fixes #11886)">62b2c1fcabc88e82b0229790b56a7a9ada0f5771</a> which was meant to fix another issue (username/password in project file).</p>
<p>The patch to restrict the scope of enforcing a "dbname" component is attached to this ticket, in case there are other views and a discussion should follow.</p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=801072017-05-26T11:39:43ZSandro Santillistrk@kbt.io
<ul><li><strong>Description</strong> updated (<a href="/journals/diff/80107?detail_id=68871" title="View differences">diff</a>)</li></ul><p>This regressed (see <a class="issue tracker-1 status-5 priority-5 priority- closed" href="https://issues.qgis.org/issues/16625" title="DBManager fails to load raster from dbname-less connection (Closed)">#16625</a>)</p> QGIS Application - Bug report #10600: db_manager is unable to load rasters from connections with no dbname specifiedhttps://issues.qgis.org/issues/10600?journal_id=801112017-05-26T11:47:16ZSandro Santillistrk@kbt.io
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-5 priority- closed" href="/issues/16625">Bug report #16625</a>: DBManager fails to load raster from dbname-less connection</i> added</li></ul>