@user not set for map notes and changeset comments

Trey Caldwell me at treycaldwell.com
Mon May 8 17:21:15 UTC 2017


We forgot to set the `oauth_key` for the website.

Apologies,

Trey

On Mon, May 8, 2017 at 10:31 AM, Trey Caldwell <me at treycaldwell.com> wrote:

> Hello,
>
> I am having an issue where map notes are being posted by "Anonymous" even
> though a user is currently logged in with an active session.  Also,
> attempting to post a changeset comment presents the user with a basic auth
> dialog to enter their credentials even though they are currently logged
> in.  I experience this behavior whether I run rails locally, in vagrant, or
> deploy to apache with phusion passenger.  However, I do not see this
> behavior in OSM production or the dev server for the master branch.  The
> before_action methods being called are `setup_user_auth` for maps notes and
> `authorize` for changesets.  These methods do not appear to check if the
> user has a current session (session[:user]).
>
> Why am I seeing this behavior and how do I remedy it?
>
> Thank you in advance,
>
> Trey
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170508/bd1ff7e6/attachment.html>


More information about the rails-dev mailing list