Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgis connections with a slash in the name are hidden/misnamed #24524

Closed
qgib opened this issue May 26, 2017 · 5 comments
Closed

Postgis connections with a slash in the name are hidden/misnamed #24524

qgib opened this issue May 26, 2017 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience

Comments

@qgib
Copy link
Contributor

qgib commented May 26, 2017

Author Name: Sandro Santilli (@strk)
Original Redmine Issue: 16624
Affected QGIS version: 2.18.8
Redmine category:gui


  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

Further steps:

  1. Click on 'Add PostGIS Layer"
  2. Click on "New Connection"
  3. 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"

Further steps:

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 cea93fa (release-2_18 branch targetted at 2.18.9)


Related issue(s): #17767 (relates)
Redmine related issue(s): 9131


@qgib
Copy link
Contributor Author

qgib commented May 26, 2017

Author Name: Sandro Santilli (@strk)


Further steps: opening DBManager shows a "test" connection, attempts to open it result in an error: 'There is no defined database connection "test".'.

@qgib
Copy link
Contributor Author

qgib commented May 26, 2017

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented May 26, 2017

Author Name: Jürgen Fischer (@jef-n)


Applied in changeset 8c873b1.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Jun 6, 2017

Author Name: Sandro Santilli (@strk)


I just got the same (or very similar) problem.
This time I named my connection: "strk@localhost:5432/strk (pgpass test)"
When I went trying to open it on DBManager it failed with "No connection named 'strk@localhost:5432' exists".
Or something like that...


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Jun 9, 2017

Author Name: Jürgen Fischer (@jef-n)


Applied in changeset 6326947.


  • status_id was changed from Reopened to Closed

@qgib qgib closed this as completed Jun 9, 2017
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

No branches or pull requests

1 participant