Commit graph

14 commits

Author SHA1 Message Date
Matt Amos
9105a7e66d Updated to libxml-ruby 2.0.5 and fixed code accordingly.
I've tested this through the unit tests and by hitting it with
bulk_upload.py and neither fail or cause the server to crash or
go into an infinite loop. Both of these things happened randomly
with 1.1.3/4 due to an apparent early deregistration of the
expanded nodes.
2011-05-21 17:36:58 +01:00
Tom Hughes
2d937f94d5 Add support for conditional deletes in changeset uploads
A delete element in an osmChange upload can now have an if-unused
attribute to indicate that the delete should not be done if the
object is still in use.
2010-12-15 23:59:06 +00:00
Tom Hughes
140455c0f8 Correct some exception names 2010-07-19 12:24:05 +01:00
Matt Amos
d073d9bc75 Added a consistency check that both ids are valid and match. Fixed diff upload code where this wasn't being set. 2009-05-13 19:21:04 +00:00
Matt Amos
3e9b6845d3 Fixed 'raw' raises by converting them to the appropriate OSM::APIError type. Made the error messages for placeholder fixing more informative. Added tests for these. 2009-04-29 10:07:35 +00:00
Tom Hughes
c8ee135104 Merge 12304:14009 from trunk. 2009-03-08 13:02:37 +00:00
Matt Amos
5143fbcd5b Test and fix for #1567, for teh betterer osmChange compliance. 2009-02-08 16:54:28 +00:00
Matt Amos
12b779f0b4 Test and fix for issue #1568. Wasn't testing for end element in the right place. 2009-02-08 16:33:48 +00:00
Matt Amos
c54471ee33 Fix for #1565. Added a couple of tests and fixed another issue with re-used placeholder IDs. 2009-02-08 08:28:01 +00:00
Frederik Ramm
b64fc35140 make diff upload result a "diffResult" rather than "osm" document 2008-11-09 11:30:03 +00:00
Frederik Ramm
79420631ce fix version number return for "modify" sections of diff uploads 2008-11-08 19:43:31 +00:00
Matt Amos
02fbcf5f06 Added first attempt at bounding box support in changesets and tests for the same. 2008-11-04 15:52:22 +00:00
Shaun McDonald
183ffc7864 Adding an extra test to make sure that the correct response is returned when an invalid changeset action is uploaded. 2008-11-03 18:54:19 +00:00
Matt Amos
dc2a959037 Added tests for changeset upload code. Refactored diff reading code and put it into /lib. Changed the route of a changeset upload to explicitly refer to the changeset it applies to (i.e: resource). 2008-10-23 15:14:17 +00:00