Question: Exception When Using Remote_User.
gravatar for MORITA Hideyuki
9.8 years ago by
MORITA Hideyuki30 wrote:
Hi, The following error will occur under certain condition when using remote_user. AttributeError: 'NoneType' object has no attribute 'user' This error is thrown when: 1. using remote_user 2. browser has a valid session (cookie) 3. after logged in with an email address other than previously used This is caused by None value in prev_galaxy_session variable at L.231 in lib/galaxy/web/framework/ I understand that galaxy_session instead of prev_galaxy_session should be referenced here. I created a patch to fix this problem by replacing prev_galaxy_session with galaxy_session. ====================================================================== ============= diff -r a4214de3752e lib/galaxy/web/framework/ +++ b/lib/galaxy/web/framework/ Mon Feb 16 13:31:02 2009 +0900 @@ -228,7 +228,7 @@ class UniverseWebTransaction( base.Defau invalidate_existing_session = True user_for_new_session = self.__get_or_create_remote_user( remote_user_email ) log.warning( "User logged in as '%s' externally, but has a cookie as '%s' invalidating session", - remote_user_email, ) + remote_user_email, ) else: # No session exists, get/create user for new session user_for_new_session = self.__get_or_create_remote_user( remote_user_email ) ====================================================================== ============= Thanks. MORITA Hideyuki
galaxy • 880 views
ADD COMMENTlink modified 9.5 years ago by Nate Coraor3.2k • written 9.8 years ago by MORITA Hideyuki30
gravatar for James Casbon
9.8 years ago by
James Casbon370
James Casbon370 wrote:
Hi, I was bitten by this as well. Quick workaround: delete any cookies. 2009/2/24 MORITA Hideyuki <>:
ADD COMMENTlink written 9.8 years ago by James Casbon370
gravatar for Nate Coraor
9.5 years ago by
Nate Coraor3.2k
United States
Nate Coraor3.2k wrote:
Morita, I apologize for the delay in responding. Thanks for reporting and fixing this error. It has been committed to the source repository. Thanks, --nate
ADD COMMENTlink written 9.5 years ago by Nate Coraor3.2k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 179 users visited in the last hour