@user not set for map notes and changeset comments

Trey Caldwell me at treycaldwell.com
Mon May 8 14:31:37 UTC 2017


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/a927a229/attachment.html>


More information about the rails-dev mailing list