[Openstreetmap] Problem with tags in server

Tommy Persson tpe at ida.liu.se
Mon Dec 5 16:11:03 GMT 2005


> 
> Hmmm. Well if you have some repeatable behaviour I can look at it.
>  

OK, now I think I have a test case.  The problem was that if a node
was created with empty tags then the following updates seems to fail
sometimes.  I have checked in a test program in the osmpedit directory
in subversion.

phyllis:~/osm/svn/osmpedit> perl test --user username --passwd secret --nodetagupdate
DATA: <osm version='0.2'>
<node lon='15.558601' tags='' lat='58.408306'/>
</osm>
URL:http://www.openstreetmap.org/api/0.2/newnode
UID: 296014
URL:http://www.openstreetmap.org/api/0.2/node/296014
NODE: <osm version='0.2'>
  <node lon='15.558601' tags='' uid='296014' lat='58.408306'/>
</osm>
DATA: <osm version='0.2'>
<node lon='15.558601' tags='name=Tommy1;' uid='296014'  lat='58.408306'/>
v</osm>
URL:http://www.openstreetmap.org/api/0.2/node/296014
URL:http://www.openstreetmap.org/api/0.2/node/296014
UPDATED NODE 1: <osm version='0.2'>
  <node lon='15.558601' tags='' uid='296014' lat='58.408306'/>
</osm>
DATA: <osm version='0.2'>
<node lon='15.558601' tags='name=Tommy2;' uid='296014'  lat='58.408306'/>
v</osm>
URL:http://www.openstreetmap.org/api/0.2/node/296014
URL:http://www.openstreetmap.org/api/0.2/node/296014
UPDATED NODE 2: <osm version='0.2'>
  <node lon='15.558601' tags='name=Tommy2;' uid='296014' lat='58.408306'/>
</osm>
URL:http://www.openstreetmap.org/api/0.2/node/296014
Node 296014 deleted

----

The tags field in "UPDATED NODE 1" is empty but should be
"name=Tommy1;".  The following call setting it to "name=Tommy2;"
works.

If I create the node with non empty tags value it seems to work robustly.

/Tommy




More information about the talk mailing list