Bug report #16624
Postgis connections with a slash in the name are hidden/misnamed
|Affected QGIS version:||2.18.8||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||24524|
1. Click on "Add PostGIS Layer"
2. Click on "New Connection"
3. Call the new connection "test/1"
Expected behavior: on creating the connection, there's a new "test/1" connection shown in the connection selection widget.
Obtained behavior: the connection selection widget has just a "test" connection
4. Click on 'Add PostGIS Layer"
5. Click on "New Connection"
6. Call the new connectoin "test/2"
Expected behavior: there are now 2 connections
Obtained behavior: there's still a single connection, still only named "test"
7: Create a new connection, calling it "test/1"
Expected behavior: as there's a single connection, called "test", I'd now expect "test/1" to be created
Obtained behavior: the GUI complains that "test/1" already exists (but isn't shown)
So basically I'm left with a single "test" connection shown in the connections list but QGIS really knows about "test/1" and "test/2" enough that I cannot use those as names for new connections.
This behavior was detected with cea93faa252db67ec007849bad9a7a070dd27b2b (release-2_18 branch targetted at 2.18.9)
avoid slashes in connection names (followup 30900e9b8; fixes #16624)
(cherry picked from commit 8c873b14b8a572aa7d65d31381357844c3d73aeb)
#4 Updated by Sandro Santilli over 3 years ago
- Status changed from Closed to Reopened