[openstreetmap/openstreetmap-website] PUT /api/0.6/gpx/:id causes internal server error (#1982)
mmd
notifications at github.com
Wed Oct 10 15:27:19 UTC 2018
Easiest would be to raise some error message, if the tag content is empty:
trace.rb/update_from_xml_node
```ruby
self.tags = pt.find("tag").collect do |tag|
raise OSM::APIBadXMLError.new("trace", pt, "Tag value may not be empty") if tag.content.empty?
Tracetag.new(:tag => tag.content)
end
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1982#issuecomment-428617458
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20181010/6c080f9a/attachment.html>
More information about the rails-dev
mailing list