Commit graph

1773 commits

Author SHA1 Message Date
Shaun McDonald
d4954bc7b1 Raising an exception in Ruby requires a .new. Add a timeout line to the capabilities call. 2009-05-21 14:05:09 +00:00
Tom Hughes
97769170fd Give the API error handler a generic rescue that returns 500 with
the exception details.
2009-05-21 10:02:26 +00:00
Tom Hughes
e3cbeeae94 Monkey patch rails to ensure OSM::APITimeoutError exceptions are not lost. 2009-05-21 09:57:21 +00:00
Richard Fairhurst
8100be1e8d Potlatch 1.0 2009-05-21 00:30:33 +00:00
Tom Hughes
b38684e59e Add a global timeout that is applied to most API requests. 2009-05-20 22:18:36 +00:00
Matt Amos
3d0ca940d2 Using an around_handler for catching and rendering errors in most of the API controller methods. This simplifies the code and makes errors and error messages a bit more consistent. Also added a utility method for checking the HTTP method. 2009-05-20 17:39:59 +00:00
Tom Hughes
058d942c7c Log arguments to AMF read methods. 2009-05-20 13:24:59 +00:00
Thomas Wood
0f46c39257 Back out the stupid change. 2009-05-16 22:46:42 +00:00
Thomas Wood
c424fa0ee5 Second part of [15085] 2009-05-16 22:42:34 +00:00
Thomas Wood
ccd42522f7 Database config changes to hopefully stop people from accidently commiting database.yml. (As recommended by Shaun)
I'll back this out if it doesn't work nicely with what's on dev.
2009-05-16 22:37:08 +00:00
Tom Hughes
1a172c3ede Revert harry's commit of the database configuration. 2009-05-15 17:59:01 +00:00
Harry Wood
3415aa4689 label changesets as (big) based on their bbox area 2009-05-15 16:24:55 +00:00
Shaun McDonald
d23d2c9d05 Extra little test, setting the language on the diary fixtures. 2009-05-15 15:41:45 +00:00
Tom Hughes
fe13e13d16 Arrays of object IDs are a bad idea. 2009-05-15 09:18:10 +00:00
Tom Hughes
fa13a11a94 Optimise retrieval of full relations. 2009-05-15 09:10:50 +00:00
Matt Amos
66ae650c95 Oops. Fixed another Time/DateTime problem. 2009-05-14 13:13:09 +00:00
Matt Amos
71192daef2 Fixed problem with Time vs. DateTime classes in fixtures. Weirdly only affected mysql backend. 2009-05-14 11:52:15 +00:00
Matt Amos
d7badc8402 Fixed precondition failed message which was trying to dereference nil. 2009-05-14 11:19:28 +00:00
Richard Fairhurst
add2d223a6 Apply #1824. 2009-05-14 08:38:32 +00:00
Shaun McDonald
7331f82bce Remove a rescue, which is stopping a more detailed error message being returned to the user. 2009-05-13 23:42:18 +00:00
Richard Fairhurst
ced42cf101 always set new node id when updating/deleting (to be read in conjunction with zere's patch) 2009-05-13 19:23:59 +00: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
Shaun McDonald
807070f818 Actually mark a trace as being public based on the saved preference, rather than simply ignoring the saved preference. 2009-05-12 15:29:27 +00:00
Matt Amos
ed0a1658df Removed updatetimeout method, as it isn't needed any more. 2009-05-12 14:38:22 +00:00
Matt Amos
1ceb4ab9ba Fixed bug #1816 - the timeout updating logic should have been in a before_save handler, not in save_with_tags. 2009-05-12 13:54:37 +00:00
Tom Hughes
ed68d524de Use a local lookup table for country bounding boxes rather than relying
on geonames.org being able to do it in a reasonable time.
2009-05-11 16:50:09 +00:00
Matt Amos
535bc8f1d8 disabling test case because i don't think there is a fix with the current version of composite_primary_keys. 2009-05-11 16:17:36 +00:00
Shaun McDonald
c7f134943c Use a regular expression for the test, since it can give one of two responses based on the order in the db. 2009-05-11 15:50:03 +00:00
Matt Amos
43988beec3 A better optimisation, as suggested by TomH. 2009-05-11 15:16:36 +00:00
Matt Amos
9481a79e71 Added optimisation for way checking. Same method as for relations. 2009-05-11 14:34:04 +00:00
Tom Hughes
4d62aea5ec Destroy OL objects which use the dataLayer before we destroy the layer
or we will get errors which stop the rest of stopBrowse() executing.
2009-05-11 10:31:34 +00:00
Tom Hughes
3a8a2ebb1a Add an internal geocoder for lat/lon positions. 2009-05-10 11:57:10 +00:00
Matt Amos
b7f306a437 Fixed problem where tag lengths were generating a 422 error with no message. They now generate a 400 error with a meaningful message. 2009-05-10 00:33:55 +00:00
Tom Hughes
69c2400997 Add a warning about whitelisting webmaster@openstreetmap.org in antispam
systems.
2009-05-09 16:46:36 +00:00
Tom Hughes
d6e605414d Set a custom return path so that we can ignore bounces. 2009-05-09 12:17:10 +00:00
Richard Fairhurst
e1005ce62f a few small fixes 2009-05-09 10:00:40 +00:00
Tom Hughes
f7cbff9a5a Move geocoder constants to application configuration to avoid test warnings. 2009-05-08 18:21:39 +00:00
Tom Hughes
d58d7e30ea Add gem specification file to stop rake test complaining. 2009-05-08 18:12:30 +00:00
Shaun McDonald
62f999cd83 Updating for rails 2.2.2 2009-05-08 18:04:08 +00:00
Tom Hughes
3a0f4d30cf Patch composite_primary_keys to work around issue when one component of
a composite key is called "id".
2009-05-08 17:56:12 +00:00
Tom Hughes
a69f380fa5 Add version 2.2.2 of composite_primary_keys. 2009-05-08 17:54:49 +00:00
Shaun McDonald
9156448ad6 fix the user unit test so that it doesn't use a depricated method in rails 2.2.2 2009-05-08 17:26:23 +00:00
Tom Hughes
0e16b72887 Include CC-BY-SA in attribution. 2009-05-08 15:05:57 +00:00
Shaun McDonald
a41f1b297b No need to define a constand for the appconfig var. Removes a warning when running under rails 2.2.2 2009-05-08 14:20:26 +00:00
Shaun McDonald
e84dd63b16 more changeset tests. No need for @ vars in the tests 2009-05-08 13:12:53 +00:00
Tom Hughes
f9fee045ac Add missing requires for the migration helper core. 2009-05-08 08:12:26 +00:00
Tom Hughes
6785911619 Fix bogus casts - lat/lon are signed. 2009-05-08 08:10:28 +00:00
Tom Hughes
55b1ba32e5 Add postgres implementation of tile_for_point function. 2009-05-08 08:01:33 +00:00
Tom Hughes
a0a6dd3619 Add yet more foreign keys. 2009-05-08 00:03:40 +00:00
Thomas Wood
cd4fb9d44c One last commit tonight :P 2009-05-07 23:02:46 +00:00