Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

bad characters in tags make GPX-upload invalid #3555

Open
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Open

bad characters in tags make GPX-upload invalid #3555

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: malenki
[Submitted to the original trac issue database at 4.18pm, Sunday, 27th February 2011]

Uploading a GPX-log with "bad" characters in the Tag field result in this error message:[[BR]]

Could not save track: an error[[BR]]
Please check following fields[[BR]]
*tags not valid[[BR]]
(translated from german)[[BR]]
After correcting the entry in the tag-field one has to upload the log anew.

Why can't the tags be checked before the upload starts? [[BR]]
Or why can the tags not be corrected without having to upload anew?

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 3.32am, Tuesday, 1st March 2011]

Well we can't "correct" a tag because we don't know what the user meant!

Validating them is equally hard because we don't get to see them until the form has been submitted. In theory you could pre-validate in javascript, but trying to do something that exactly matched the rails validations on the server side might be fiddly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant