Opened 9 years ago

Last modified 9 years ago

#3555 assigned enhancement

bad characters in tags make GPX-upload invalid

Reported by: malenki Owned by: rails-dev@…
Priority: trivial Milestone: Wishlist
Component: website Version:
Keywords: gpx api_errors Cc:


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

Could not save track: an error
Please check following fields
*tags not valid

(translated from german)
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?
Or why can the tags not be corrected without having to upload anew?

Change History (3)

comment:1 Changed 9 years ago by Tom Hughes

Milestone: Wishlist
Owner: changed from Tom Hughes to phantom.coder@…
Priority: minortrivial
Status: newassigned
Type: defectenhancement

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.

comment:2 Changed 9 years ago by Tom Hughes

Owner: changed from phantom.coder@… to rails-dev@…

comment:3 Changed 9 years ago by stevens

Keywords: gpx api_errors added
Note: See TracTickets for help on using tickets.