[Potlatch-dev] [OpenStreetMap] #3910: Potlatch2 and long value handling
OpenStreetMap
trac at openstreetmap.org
Sun Jul 17 12:33:25 BST 2011
#3910: Potlatch2 and long value handling
-------------------------+--------------------------------------------------
Reporter: SomeoneElse | Owner: potlatch-dev@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: potlatch2 | Version:
Keywords: |
-------------------------+--------------------------------------------------
If an attempt is made to save a node with a value that's too long, this
message is displayed:
An unexpected error occurred, probably due to a bug in Potlatch 2. Do you
want to retry? (The server said: NodeTag 1364231671: v: is too long
(maximum is 255 characters) ("<extensions
xmlns=\"http://www.topografix.com/GPX/1/1\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n
<gpxx:WaypointExtension
xmlns:gpxx=\"http://www.garmin.com/xmlschemas/GpxExtensions/v3\">\n
<gpxx:DisplayMode>SymbolAndName</gpxx:DisplayMode>\n
</gpxx:WaypointExtension>\n</extensions>"))
There's a yes/no box below - yes seems to mean "try again" and no means
"don't". After clicking "no" you do get a "view data" option showing the
osmchange xml but that's probably not a lot of use for newbies.
To see the problem try this:
http://www.openstreetmap.org/edit?editor=potlatch2&gpx=1056198
Zoom in and convert the orange dot north of the road to a node and try and
save it.
In this case the extra-long value is created by a Garmin GPS. There are
other long value trac bugs related to merged Tiger data (3846 open and
3587 closed) but this is a different aspect of the problem.
Edits can be lost due to this problem if you've done a lot of edits prior
to a save and don't know where the offending waypoint that's causing the
problem actually is.
Among the possible solutions are:
1) Filter "extensions" from the list of tags moved from the waypoint to
the node (Potlatch 1 does this) - that would solve the issue I'm seeing
with Garmin data but wouldn't affect the problem if someone found another
way to cause it.
2) Position the user in the editor to the first offending item and allow
them to edit it manually (harder, and might be time consuming if lots of
items have the problem).
--
Ticket URL: <https://trac.openstreetmap.org/ticket/3910>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the Potlatch-dev
mailing list