[GRASS-dev] [GRASS GIS] #3928: parser: --json bug with white space in parameter values

GRASS GIS trac at osgeo.org
Mon Oct 28 09:45:49 PDT 2019


#3928: parser: --json bug with white space in parameter values
-------------------------+---------------------------------
 Reporter:  neteler      |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  7.8.1
Component:  LibGIS       |    Version:  git-releasebranch78
 Keywords:  parser       |        CPU:  Unspecified
 Platform:  Unspecified  |
-------------------------+---------------------------------
 At time the JSON support stumbles over white space:

 Consider:

 {{{
 GRASS 7.8.1dev (nc_spm_08):~ > v.db.update map=antenna_position
 column='z_antenna' qcolumn='z + 2.00' --json
 {
   "module": "v.db.update",
   "id": "v.db.update_1804289383",
   "inputs":[
      {"param": "map", "value": "antenna_position"},
      {"param": "layer", "value": "1"},
      {"param": "column", "value": "z_antenna"},
      {"param": "query_column", "value": "z"}
    ]}
 }}}

 The part ` + 2.00` does not survive...

 The issue is somewhere in
 https://github.com/OSGeo/grass/blob/master/lib/gis/parser_json.c

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3928>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list