Bug report #2296

PostGIS new connection SSLmode options in wrong order

Added by Steven Mizuno almost 10 years ago. Updated almost 10 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:Data Provider
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:12356

Description

The allow and require options are reversed. Allow actually is require and require is allow when sent to the PG database.

In qgsnewconnection.cpp in the constructor (about line 37) where the combobox is populated, the items must be inserted in the desired order (perhaps addItem() would be better), as the index only controls where in the list an item is inserted, not its absolute position.

The desired order as listed in the enum for SSLmode is: prefer, disable, allow, require.

Associated revisions

Revision bfcfa8e8
Added by Jürgen Fischer almost 10 years ago

fix #2296

git-svn-id: http://svn.osgeo.org/qgis/trunk/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision ddb319b8
Added by Jürgen Fischer almost 10 years ago

fix #2296

git-svn-id: http://svn.osgeo.org/qgis/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

History

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

  • Resolution set to fixed
  • Status changed from Open to Closed

fixed in ddb319b8 (SVN r12521)

Also available in: Atom PDF