[QGIS-trac] [Quantum GIS] #3283: Relative path support bug for delimited text provider

Quantum GIS qgis at qgis.org
Wed Dec 1 21:03:03 EST 2010


#3283: Relative path support bug for delimited text provider
---------------------------------------------------------+------------------
   Reporter:  ccrook                                     |              Owner:  nobody       
       Type:  patch                                      |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.7.0
  Component:  Project Loading / Saving                   |            Version:  Trunk        
   Keywords:  relative path delimited text provider      |   Platform_version:  XP           
   Platform:  Windows                                    |           Must_fix:  No           
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 Saving and loading projects can corrupt the datasourceUri for delimited
 text providers when the project is configured to use relative paths.

 The problem is that the QgsProject readPath and writePath functions assume
 that the entire Uri is a file path, and change all "\" to "/".  For the
 delimited text provider the Uri is encoded as filename?parameters.  The
 parameters can include regular expression defintion, which includes valid
 backslash characters.  These get converted to slash characters, rendering
 the regular expression incorrect.

 This is fixed by the attached patch

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3283>
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