[openstreetmap/openstreetmap-website] PUT on gpx_file in API does not remove old tags (#1600)

Harel M notifications at github.com
Mon Jul 31 21:53:19 UTC 2017

I wanted to use the API in order to update a gpx_file details.
The following is my PUT command body:
<osm version='0.6' generator='OpenStreetMap server' copyright='OpenStreetMap and contributors' attribution='http://www.openstreetmap.org/copyright' license='http://opendatacommons.org/licenses/odbl/1-0/'>
      <gpx_file id='2466659' name='2014_02_15_1001_______________20140215_1001.gpx' lat='31.7165' lon='35.4505' visibility='private'>
          <description>2014-02-15 1001 עדינות צוקים__20140215_1001.gpx</description>

When using the above on a gpx file that does not have tags everything works as expected but when the using it on a gpx file that already has a tag the previous tag is not removed.

The same effect can be achieved when running this command twice - `tag0` will be added twice.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170731/1bf5f48b/attachment.html>

More information about the rails-dev mailing list