Commit graph

1668 commits

Author SHA1 Message Date
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
Shaun McDonald
0b94234a6b adding the maximum number of elements in a changeset to the capabilities call, including test update 2009-04-22 11:03:22 +00:00
Richard Fairhurst
cafce5f4e3 bit more debug 2009-04-22 08:37:55 +00:00
Richard Fairhurst
05035fe6c2 add temporary relations debug code 2009-04-22 08:25:33 +00:00
Richard Fairhurst
0969e731f0 remove Bavaria 2009-04-22 07:41:21 +00:00
Shaun McDonald
38e94c6baa fixing some of the relation tests. Some adjustments to the fixtures. 2009-04-22 00:42:23 +00:00
Richard Fairhurst
1721aa1c0d ibid 2009-04-21 23:59:27 +00:00
Frederik Ramm
5c783cd0ee there is not HTML attribute named "padding". either use "cellpadding" (this patch), or use the CSS attribute (i.e. style="padding: 0px"). 2009-04-21 23:55:02 +00:00
Matt Amos
1654b3d407 Quick and dirty fix for relation tags issue. 2009-04-21 23:40:27 +00:00
Frederik Ramm
3a10fee9eb modified "user" link in "recent changes" list to point directly to user's list of changes which is what you expect in this context, rather than going to that user's user page and having to click "edits" there. 2009-04-21 23:38:43 +00:00
Richard Fairhurst
a80b42652b fix id/relid inconsistency 2009-04-21 23:36:53 +00:00
Tom Hughes
9e337e1ab8 Fixed search controller to have some chance of working. 2009-04-21 23:35:19 +00:00
Tom Hughes
ab7ac69e68 Force selection to fail when no traces match the tag. 2009-04-21 21:54:44 +00:00
Tom Hughes
2201a7ff32 Don't generate an IN condition with an empty list. 2009-04-21 21:51:02 +00:00
Tom Hughes
e192c77986 Use correct names for member types. 2009-04-21 21:37:27 +00:00
Thomas Wood
fddf6fb529 Fix bbox display again, how do we keep mixing our lons and lats? 2009-04-21 21:30:37 +00:00
Matt Amos
0b76693672 Adding more tests for updating relation tags. 2009-04-21 20:33:16 +00:00
Matt Amos
d5d9b1a374 Extra test for updating relation tags. 2009-04-21 19:53:14 +00:00
Matt Amos
6488ebe12f More test fixes after fixture changes. 2009-04-21 19:51:43 +00:00
Matt Amos
0f111e7e2a Fixed formatting and stuff in fixtures. 2009-04-21 18:37:24 +00:00