Commit graph

604 commits

Author SHA1 Message Date
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
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
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
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
Richard Fairhurst
0a682b9da6 change relation_member 'type' case, to match change in database 2009-04-22 17:47:06 +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
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
d8aacff595 Slight performance improvement (a reported 2s) by skipping db query if no bbox is passed in on /history
Thanks apmon for the report.
2009-04-21 18:04:43 +00:00
Tom Hughes
ddba8eeff7 Add an expiry header to trace images. 2009-04-21 17:10:35 +00:00
Richard Fairhurst
5e10a7d48b Make error messages more helpful 2009-04-21 11:27:03 +00:00
Richard Fairhurst
f423c13ad4 Split out subscript to see which one is erroring 2009-04-21 10:14:28 +00:00
Richard Fairhurst
a67047e7e6 Fix MySQL dependency 2009-04-21 09:24:07 +00:00
Thomas Wood
023e95f1bc Ensure :not_found status is returned, catching RecordNotFound doesn't work as isnt raised when finding :first. 2009-04-20 20:58:42 +00:00
Thomas Wood
df8cd4a7b2 Expose relation version to api and fix remaining server status typo in old_relation controller. 2009-04-20 19:44:58 +00:00
Shaun McDonald
17223b5177 Apply patch by Lars from osm dev list with the typo 2009-04-20 17:15:28 +00:00
Tom Hughes
fd6f00b069 Merge api06 branch to trunk. 2009-04-20 09:12:03 +00:00
Thomas Wood
e8c7543bdd Add condition for user not found in trace controller.
Closes #1710
2009-04-19 21:22:34 +00:00
Tom Hughes
1c81de0572 Send replies to the right user. Closes #1720. 2009-04-19 10:36:04 +00:00
Tom Hughes
4eafa04ff8 Reject uploads unless the user has made their edits pubic. 2009-04-16 21:50:20 +00:00
Tom Hughes
141a5692eb Fixed to work with merged changes to api availability checks. 2009-04-16 21:38:29 +00:00
Tom Hughes
5449cf4adc Merge 14394:14533 from trunk. 2009-04-16 21:11:12 +00:00
Shaun McDonald
08bd1688ee Railsify the relation member model, type attribute, by putting it into class case, rather than lower case. Requires reload of postgres databases or manual change to the enum. Fixes the databrowser on postgres, however affects the rest of the codebase. 2009-04-15 14:49:21 +00:00
Tom Hughes
80c6c685bc Fix database check in browse controller. 2009-04-15 09:05:29 +00:00
Tom Hughes
45dfd0f05f Fix spelling mistake. 2009-04-15 08:03:26 +00:00
Tom Hughes
09fdee5493 Add a "database readonly" state that allows all writes to the database
to be suppressed.
2009-04-14 14:27:30 +00:00
Shaun McDonald
0f25285ab6 More tests, found a bug in the data browser, no fix yet. Fix db readme. Don't show the signup page to logged in users, by redirecting them to the home page. Remove unnessesary begin blocks in the browse controller. 2009-04-12 23:20:31 +00:00
Thomas Wood
464c490cae Use the right keyword this time... 2009-04-09 23:18:21 +00:00
Thomas Wood
6442208841 Add exceptions for remaing cases where XML::Parser.string is used, to catch for empty strings.
See also r14241
2009-04-09 22:37:43 +00:00
Tom Hughes
1f8a68371a Merge 14059:14394 from trunk. 2009-04-08 13:53:09 +00:00
Matt Amos
18633b7c9e Fixed a problem where rails was setting the ID column to null, which violates the not-null constraint. Also fixed possible typo in AMF controller. 2009-03-29 02:14:40 +00:00
Matt Amos
afcb345014 Moved a bunch of time functions into UTC. Fixes bugs which we only see for 4 hours a year. 2009-03-29 01:31:04 +00:00
Richard Fairhurst
023b9e3662 fix user:pass auth for Potlatch 2009-03-26 09:38:11 +00:00
Matt Amos
568c05c548 Fixing failing potlatch tests. Someone who knows what the potlatch API is actually supposed to be doing should check these... 2009-03-25 17:54:21 +00:00
Harry Wood
0f3e5a28c0 show a 'no bbox specified' message for the moment at least. Due to inconsistent location detecting across tabs, the history tab often gets nil bbox (Need to fix for all tabs) + other history tab tweaks 2009-03-24 11:23:56 +00:00
Thomas Wood
8fb97a3337 Rather than referring how to view a bbox history, just redirect to the global history. 2009-03-23 19:56:01 +00:00
Thomas Wood
7d3a5899c9 More fixes to the changeset viewer, including logged-in-ness on per-user edit lists, fix XSS potential on usernames here, and general tidyups. 2009-03-23 19:40:33 +00:00
Thomas Wood
677f391ec1 Fix various auth bugs with the changeset listing stuff, catch exception (but not yet handled well) for when edits not public. 2009-03-23 18:23:37 +00:00
Harry Wood
afe8dd51ec Add 'history' tab + Move 'recent changes' changeset list to re-use the same _changeset.rhtml partial 2009-03-23 16:39:59 +00:00
Tom Hughes
eff9fa3b00 Refactor the GPX upload to try and avoid the import daemon loading traces
which do not exist yet.
2009-03-20 00:08:53 +00:00
Tom Hughes
c8ee135104 Merge 12304:14009 from trunk. 2009-03-08 13:02:37 +00:00
Tom Hughes
fa3c97d6a6 Fix for libxml 1.0.0 changes. 2009-03-08 12:44:45 +00:00
Tom Hughes
07c1cd6b98 Update to use libxml 1.0.0 gem. 2009-03-08 11:34:46 +00:00
Richard Fairhurst
7bd1cdaa99 fix backspacing through way to delete it 2009-02-26 00:26:23 +00:00
Richard Fairhurst
dfa81462b8 history stuff should be working now (haha) 2009-02-25 22:04:22 +00:00