Commit graph

1139 commits

Author SHA1 Message Date
Tom Hughes
cb6eb65466 Use binary mode for trace files
We don't want to try and do any enoding conversions (or indeed any
newline conversions) on uploaded trace files.
2012-11-04 14:41:01 +00:00
Tom Hughes
c2c2535b73 Make sure we always read the body of a PUT or POST request
Unfortunately if a PUT or POST request that has a body fails to
read it then Apache will sometimes fail to return the response it
is given to the client properly, instead erroring:

  https://issues.apache.org/bugzilla/show_bug.cgi?id=44782

To work round this we call rewind on the body for every request using
a filter, which forces it to be fetched from Apache into a file.
2012-11-01 12:45:37 +00:00
Tom Hughes
3ef02b86f0 Revert "Add a newline to the end of the body when reporting an error"
This reverts commit 59c97f4866.
2012-11-01 12:42:47 +00:00
Tom Hughes
59c97f4866 Add a newline to the end of the body when reporting an error
There seems to be some sort problem with ruby 1.9 where a response
body that is a single line with no newline causes the response not
to be sent properly.
2012-11-01 09:13:43 +00:00
Tom Hughes
b7b68aee36 Simplify handling of verified emails in OpenID signup
Also make sure that all paths that lead to OpenID based signup
will notice a verified email properly.
2012-10-30 21:43:38 +00:00
Kai Krueger
104727f889 Trust Google and Yahoo to return valid email addresses
Both Google and Yahoo guarantee that the email address they return
during the OpenID authentication are emails that they have already
verified:

  http://stackoverflow.com/q/5639419

Therefore special case these OpenID providers and automatically
activate the new users account without requiring a separate email
verification step.

This therefore reduces the signup procedure by one step and makes
it easier for new users of these OpenID providers, which cover the
majority of users.
2012-10-30 19:14:45 +00:00
Tom Hughes
95fa893163 Make it easier to test alternative locales
Allow a locale=xx parameter in the URL to select the locale.
2012-10-26 21:41:03 +01:00
Paweł Paprota
ad43499205 Implemented Gravatar support 2012-10-18 18:59:38 +01:00
John Firebaugh
e73ab4049f Remove unused assign of @bbox which is no longer used 2012-10-05 15:21:09 +01:00
John Firebaugh
60becd1050 Remove @midnode assign
It does not appear to be necessary and no other edit links
make use of it. SiteController#edit will calculate a precise
center coordinate.
2012-09-30 12:19:15 +01:00
Tom Hughes
3ce4de1295 Add a /api/0.6/user/NNNN call to the API 2012-09-24 18:44:11 +01:00
John Firebaugh
02bdc8f1ad Don't expose lat/lon of private traces 2012-09-21 15:29:02 -07:00
John Firebaugh
20e5f756be Support the same edit params for Potlatch 1 and 2
Trac ticket 4587
2012-09-21 15:16:56 -07:00
Tom Hughes
1a0728ec7b Remove unused namefinder support from the geocoder backend 2012-09-18 11:54:11 +01:00
John Firebaugh
0509fc8d12 Move param-based map configuration to client
This prepares us for hash-based permalinks (#81) and removes
the duplication between index.html.erb and SiteController#edit.
2012-09-18 08:56:45 +01:00
Gnonthgol
fcddf920a3 Remove the "We are changing the license" flash on the login page 2012-09-14 15:24:36 +01:00
John Firebaugh
8ec415b060 Use a param to trigger export rather than a separate action
In site/_resize.html.erb and site/_search.html.erb, a
params[:action] conditional is used to include code that
should only run on the index action -- but it should be run
on the export action too. Cleanest fix is to eliminate that
action entirely.
2012-09-07 09:27:59 +01:00
Tom Hughes
021a17b79a Mark a message as read when a user replies via the web 2012-09-03 08:40:17 +01:00
Tom Hughes
367303f6d8 Move a chunk of non-markup ruby code from a view to the controller 2012-08-28 20:39:18 +01:00
Tom Hughes
3d874a5d61 Use start.html.erb views instead of _sidebar.html.erb partials 2012-08-27 21:28:41 +01:00
John Firebaugh
17b23b0756 Extract browse.js static asset 2012-08-27 20:23:24 +01:00
John Firebaugh
2feff4244f Reduce interpolation in browse/start.js.erb 2012-08-27 18:00:48 +01:00
John Firebaugh
cc4f133e64 Extract export.js static asset 2012-08-27 18:00:13 +01:00
Tom Hughes
573991e5a9 Fixup make_friend and remove_friend properly
Requests using POST are now actioned immediately, while requests
using GET present a confirmation page.
2012-08-15 20:13:14 +01:00
Tom Hughes
fbabed694b Improve blocks on/by links on user pages
All block related links are now only shown if the user has given
or received any blocks, and include a count of active blocks.
2012-08-10 08:27:37 +01:00
Tom Hughes
703c1a83e6 Show the correct reconfirm link for OpenID login attempts 2012-07-27 21:30:06 +01:00
Tom Hughes
d38e476fa6 OpenID attributes returned via AX seem to be arrays now 2012-07-27 21:27:45 +01:00
Tom Hughes
16beaef5cf Don't try and store a user record in the session
A user record that has come from the database can't be stored in
the session as it contains singletons that can't be serialised.
2012-06-30 19:17:04 +01:00
Tom Hughes
652e94485f Use browser detection to decide how many features to show
Modern browsers are quite happy showing far more than 100 features in
the data browser, so increase the limit to 2000 by default, but keep it
restricted to 500 for IE8 and 100 for older IEs.
2012-06-05 12:59:13 +01:00
Tom Hughes
9813d9f1e4 Get all the tests passing under ruby 1.9 2012-05-27 13:51:25 +01:00
Tom Hughes
fc7ac5d086 Don't show deleted comments in a user's diary comment list 2012-05-15 18:58:13 +01:00
Tom Hughes
58559d50da Fixed diary entry and comment hiding for mass assignment protection 2012-05-13 18:44:54 +01:00
Enno Brehm
6a09f49e71 Implement API endpoint to query permissions. 2012-05-05 15:28:45 +01:00
Tom Hughes
6bafc93435 Error in a changeset feed is requested for a non-existent user 2012-05-01 20:40:59 +01:00
Tom Hughes
1a2f6c29c6 Update to use api.geonames.org instead of ws.geonames.org 2012-04-18 18:44:37 +01:00
Matt Amos
0093db5ffb Removed lookup of current element in calls to history 2012-04-05 13:53:53 +01:00
Matt Amos
0330e10943 Set defaults properly on redaction model, and remove unnecessary
guards around update.
2012-04-05 13:53:32 +01:00
Matt Amos
a4ded8bb67 Decided that restricting redacts to the user who created the
redaction is an unnecessary restriction.
2012-04-05 13:52:41 +01:00
Matt Amos
7953a883d0 Refactored common functionality from object history controllers 2012-04-05 13:52:10 +01:00
Matt Amos
1f9301e2e2 Better comments in application controller logic 2012-04-05 13:52:07 +01:00
Matt Amos
eca8f6e849 Used unredacted scope rather than explicit SQL 2012-04-05 13:52:04 +01:00
Matt Amos
7da8a5a1a8 Added redactions controller test and fixed a bug in the controller 2012-04-05 13:52:01 +01:00
Matt Amos
7c42552f16 Fixed fixture after adding link from redaction to user 2012-04-05 13:51:57 +01:00
Matt Amos
851de28303 Added redactions resource 2012-04-05 13:50:15 +01:00
Matt Amos
9519f26241 Fixed AMF controller methods to hide redacted ways 2012-04-05 13:50:13 +01:00
Matt Amos
7c2ca3efb1 Fixed AMF controller methods to hide redacted nodes 2012-04-05 13:50:11 +01:00
Matt Amos
e01a309970 Added test for changeset/download hiding redacted elements 2012-04-05 13:49:53 +01:00
Matt Amos
8bfb5cae8a Added relation redaction logic, same as node and way logic, plus tests 2012-04-05 13:49:46 +01:00
Matt Amos
990f3eba40 Altered old_way stuff to be Railsy like old_node is now 2012-04-05 13:49:43 +01:00
Kai Krueger
72e59b49fa Copy the redaction code from nodes to ways 2012-04-05 13:49:39 +01:00