[QGIS-trac] [Quantum GIS] #2296: PostGIS new connection SSLmode options in wrong order

Quantum GIS qgis at qgis.org
Fri Dec 18 22:27:38 EST 2009


#2296: PostGIS new connection SSLmode options in wrong order
------------------------------------------------+---------------------------
   Reporter:  smizuno                           |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.4.0
  Component:  Data Provider                     |            Version:  HEAD         
   Keywords:                                    |   Platform_version:               
   Platform:  All                               |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 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.

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2296>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list