[openstreetmap/openstreetmap-website] add bulk_upload (#1995)

Xuyang Jia notifications at github.com
Sun Oct 14 04:50:52 UTC 2018


> I have found another bug:
> 
> ```
> <?xml version="1.0" encoding="UTF-8"?>
> <osmChange version="0.6" generator="iD">
>   <create>
>     <node id="-1" lat="1" lon="2" changeset="1248"/>
>     </create>
>    <create>
>     <node id="-1" lat="1" lon="2" changeset="1248"/>
>     </create>
> </osmChange>
> ```
> Expected Result:
> 
> HTTP 400: Placeholder IDs must be unique for created elements.
> 
> Actual Result:
> 
> HTTP 200 OK
> 
> ```
> <?xml version="1.0" encoding="UTF-8"?>
> <diffResult version="0.6" generator="OpenStreetMap server" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
>     <node old_id="-1" new_id="5003081839" new_version="1"/>
>     <node old_id="-1" new_id="5003081840" new_version="1"/>
> </diffResult>
> ```

This bug was bring in duo to the support for multiple action blocks. I have added unit test for this case. Thx.

-- 
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/pull/1995#issuecomment-429596518
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20181013/c70d904d/attachment.html>


More information about the rails-dev mailing list