Commit graph

1687 commits

Author SHA1 Message Date
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
9acc6d3288 Eager load node and way details when processing a map call. 2009-04-28 16:26:06 +00:00
Tom Hughes
6d1c010213 Use the alias for the conditions as well... 2009-04-28 16:25:37 +00:00
Tom Hughes
074e5b0a11 Use an alias for current_relation_members to avoid clashing with
any attempt to eager load it.
2009-04-28 16:15:02 +00:00
Tom Hughes
4de6006567 Eager load nodes and node tags for the way when doing a getway call. 2009-04-28 15:55:54 +00:00
Tom Hughes
bcbbf1944b Don't bother running GC as it doesn't seem to get as much memory back
anyway plus the run_gc! method in the fastcgi dispatcher is a disaster
as it disables GC completely except for when it is forced by making a
call to the run_gc! method.
2009-04-28 14:07:51 +00:00
Tom Hughes
bf31791f65 Add a changeset cache to stop us looking up the same changeset over
and over again when processing a map call.
2009-04-28 13:40:30 +00:00
Tom Hughes
7ee10192eb Cope with sessions which don't exist. 2009-04-28 12:08:47 +00:00
Tom Hughes
c20f55045d Reject any AMF request which is not a POST request. 2009-04-28 11:14:15 +00:00
Tom Hughes
42359afa7e Fix session plugin work with the new ruby pg driver for postgresql. 2009-04-28 10:57:25 +00:00
Tom Hughes
04d0f45845 Remove debugging statement. 2009-04-28 09:00:01 +00:00
Tom Hughes
6f0b3ccbcd Don't log the contents of the changeset. 2009-04-28 08:59:33 +00:00
Thomas Wood
38c8e3e37e Quick fix to reference relation rather than relation_member when linking to the relation, not sure when the bug was introduced. Tests still need to be written for the browse controller.
Closes #1764
2009-04-27 21:26:23 +00:00
Thomas Wood
600d5b3a46 Further clarify descriptive texts regarding public editing. 2009-04-27 18:23:43 +00:00
Shaun McDonald
f47ba4fb23 Fix the node and relation tests from when the users with data public=false were disallowed from editing. Needed extra fixtures. 2009-04-27 11:57:58 +00:00
Shaun McDonald
0b6d9ce877 Improve the node/way/relation already deleted error message, and get rid bug in way model with missing new in exception 2009-04-27 11:49:56 +00:00
Tom Hughes
a7ea614dd0 Finish removing old request counting logic. 2009-04-26 23:27:40 +00:00
Tom Hughes
72b05157ae Remove old code to exit after 10000 requests as the memory limit code
should do a better job of controlling things.
2009-04-26 23:14:20 +00:00
Tom Hughes
85b3f7ffbc Tidy up. 2009-04-26 23:13:06 +00:00
Shaun McDonald
10fdeb2021 Make node update work with the new require data public to edit policy. Added convenience testing method for the require data public. Add 2 new fixtures that are owned by the public user. 2009-04-26 22:46:41 +00:00
Shaun McDonald
788e817e4a Make the report_error function support any http status code for added flexibility. 2009-04-26 21:11:31 +00:00
Shaun McDonald
b7596f7fbc Fix typo of missing .new for some of the errors. Tests are useful. 2009-04-26 20:56:58 +00:00
Richard Fairhurst
36660a3e45 move relations mapping out of way/node objects, so we don't need horrible expensive getrelations any more 2009-04-26 18:26:48 +00:00
Tom Hughes
e3d20bd607 Run GC if we hit the memory limit, and only restart if we are still too big. 2009-04-26 17:01:59 +00:00
Tom Hughes
1bd3710134 Increase the hard memory limit and set a lower soft limit that does a
clean restart between requests.
2009-04-26 16:56:40 +00:00
Tom Hughes
aadb91861a Do a GC run every 10 requests. 2009-04-26 11:28:55 +00:00
Tom Hughes
83aa2655f5 Null descriptions are not allowed. 2009-04-25 22:26:56 +00:00
Matt Amos
eed6fdf7db Fixed bug in exception creation. 2009-04-25 15:20:48 +00:00
Richard Fairhurst
0f1f4c29be ibid 2009-04-24 20:40:48 +00:00
Richard Fairhurst
2acdfd7132 a couple of minor revert fixes 2009-04-24 20:12:43 +00:00
Matt Amos
82a54db3d9 Fixed dumb copy-and-paste mistake. 2009-04-24 18:47:41 +00:00
Richard Fairhurst
9b4271ed8c pass common API error text through to Potlatch so it can be shown to the user 2009-04-24 17:44:52 +00:00
Richard Fairhurst
3cc3ff7ad6 lots of relations changes for speed and version management 2009-04-24 14:46:52 +00:00
Matt Amos
6c66507427 Patching better 412 error messages from mis-commit on old api06 branch. 2009-04-24 10:08:15 +00:00
Tom Hughes
77a34278ca Backout broken attempt at making case insensitive authentication work
on Postgres. As implemented this forces a table scan to authenticate
users which is ridiculous to save people pressing the shift key.
2009-04-23 23:46:45 +00:00
Shaun McDonald
e3ae690a00 The render method needs to be last, otherwise the error header won't get set. Needs tests. 2009-04-23 21:03:59 +00:00
Shaun McDonald
f1a0331081 Hack a way to make the email and display name case insensitive for logging in, based on a suggestion by firefishy to use ILIKE. Changes requested from users on mailing list. Includes some tests to check the case insensitivity of the username, and and e-mail address on login. 2009-04-23 19:20:08 +00:00
Matt Amos
9ff7ea8d71 Added better error messages on 412 precondition failed. 2009-04-23 18:39:36 +00:00
Richard Fairhurst
64d076847b fix another way-node/Way-Node problem in amf_controller; add WinIE JS compatibility via ExternalInterface (we can use this later to alert for a commit message if none is provided) 2009-04-23 17:54:17 +00:00
Harry Wood
1c93d482d2 change updatelinks params so that Potlatch can pass in the view bbox. Also check if it's missing. closes #1738 2009-04-23 14:38:40 +00:00
Richard Fairhurst
749a735472 actually delete nodes on deleteway (might help) 2009-04-23 12:01:42 +00:00
Richard Fairhurst
c65a3d76ae fix nodes bug 2009-04-23 08:32:26 +00:00
Grant Slater
d6f7bbfcd1 lighttpd increase server.max-fds from 1024 (default) to 8192 after lighttpd deadlock. 2009-04-23 02:00:15 +00:00
Richard Fairhurst
778896d755 fix word-wrap in "close changeset" dialogue 2009-04-22 23:57:37 +00:00
Richard Fairhurst
d367169479 remove debug stuff 2009-04-22 19:42:22 +00:00
Richard Fairhurst
0a682b9da6 change relation_member 'type' case, to match change in database 2009-04-22 17:47:06 +00:00
Thomas Wood
d7663e7d14 Fix multiple issues with links to /history from the homepage. Thanks to Ed Avis for bringing this to our attention. 2009-04-22 17:08:04 +00:00
Shaun McDonald
9ca382605c Fixing the create relation test, which now also tests to make sure that private users cannot edit. 2009-04-22 14:38:23 +00:00
Tom Hughes
6ee333cba7 Use postgres interval syntax. 2009-04-22 13:41:17 +00:00
Tom Hughes
9b2248e8fb The active flag is still an integer for some reason, not a boolean.
Closes #1727.
2009-04-22 13:34:12 +00:00