Feature request #8164

Can't fix bad datasource info in qgs file through GUI

Added by Aren Cambre almost 11 years ago. Updated almost 7 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:GUI
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:16987

Description

I have a qgs file which has a maplayer with a datasource with a wrong user field defined. Every time I open this qgs in QGIS, I am advised that it cannot log into the server for this layer and asks me to check the credentials. See the attached image.

I can enter new credentials and get the layer to load, but even if I re-save the project, the old, wrong username is still present in the qgs file. I can find no way to change the bad username without editing the qgs file or removing and re-adding the layer.

This happened because I put the wrong username in the into the PostGIS connection in the Add PostGIS Table(s) dialog. That dialog prompted me to enter the correct information when I connected, which I did. I didn't formally edit the connection information until after I had added the layer.

I am on master a4fb5c7.

Enter_Credentials.png (22.8 KB) Aren Cambre, 2013-06-25 07:54 PM


Related issues

Related to QGIS Application - Feature request #8672: Add an option to modify datasource string on a query laye... Closed 2013-09-25
Related to QGIS Application - Bug report #13170: postgis layer.dataProvider().setDataSourceURI(.....) has... Closed 2015-07-29

History

#1 Updated by Jürgen Fischer almost 11 years ago

  • Tracker changed from Bug report to Feature request

#2 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No

Also available in: Atom PDF