[openstreetmap/openstreetmap-website] Bad Request (400) - Version may not be negative at line 1 (#2240)

Tobias Zwick notifications at github.com
Wed May 29 17:29:27 UTC 2019


I'm using `POST changeset/$id/upload` with the body being `osmChange`, that's diff upload right?

Was this changed today or in the last few days, the move to cgimap? That would explain why I get those reports now.

If that is the case, I have a hunch why this worked before at all: Maybe the previous rails implementation returned simply a `409 Conflict` if the version given in the diff is not the same as the current server version? Cause that case is covered within the app - the app handles a conflict exception by re-downloading the newest version from the OSM Api and then trying again to upload the element with the changes applied.

-- 
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/2240#issuecomment-497033462
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190529/f7ea9ab2/attachment.html>


More information about the rails-dev mailing list