[josm-dev] josm produces too long tags
Alan Mintz
Alan_Mintz+OSM at Earthlink.Net
Thu Apr 1 23:01:00 BST 2010
Yes! I've been meaning to add that request to trac. It's really annoying
when, halfway through a long upload, it barfs with this error, when the
long tag shouldn't have been created in the first place.
I'd like to see it checked in the validator, but also trapped for when
editing a value anywhere (Preset and Change Value? dialogs, tag editor,
relation editor come to mind).
Also, for me, the problem generally happens when combining TIGER ways, when
it combines the tiger:tlid tags. It should warn the user of this as it is
happening, and truncate the result appropriately (or maybe add a
tiger:tlid_cont tag if people feel this info is still necessary).
At 2010-03-31 11:49, jamesmikedupont at googlemail.com wrote:
>Josm does not check taglengths that are too long,
>we need to add that check to the validatorplugin.
>mike
>
>PUT http://api.openstreetmap.org/api/0.6/changeset/4288211... OK
>POST http://api.openstreetmap.org/api/0.6/changeset/4288211/upload...
>Bad Request
>Error header: NodeTag 667618701: v: is too long (maximum is 255
>characters)
>("http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_00400.osm;http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_17900.osm;http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_20000.osm")
>org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error
>Header=<NodeTag 667618701: v: is too long (maximum is 255 characters)
>("http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_00400.osm;http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_17900.osm;http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_20000.osm")>
> at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:593)
> at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:476)
> at org.openstreetmap.josm.io.OsmApi.uploadDiff(OsmApi.java:426)
> at
> org.openstreetmap.josm.io.OsmServerWriter.uploadChangesInChunks(OsmServerWriter.java:163)
> at
> org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:205)
> at
> org.openstreetmap.josm.gui.io.UploadPrimitivesTask.realRun(UploadPrimitivesTask.java:237)
> at
> org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:83)
> at
> org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:129)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:636)
>
>_______________________________________________
>josm-dev mailing list
>josm-dev at openstreetmap.org
>http://lists.openstreetmap.org/listinfo/josm-dev
--
Alan Mintz <Alan_Mintz+OSM at Earthlink.net>
More information about the josm-dev
mailing list