Issue Type: Bug Bug
Assignee: Justin Deoliveira
Components: Monitoring
Created: 08/Nov/13 9:18 AM
Description:

Quoting Christian's observation about how we get the user:

Different authentication mechanisms produce different kind of authentication objects. It is not guaranteed that auth.getPrincipal() is a user object. The Spring Security Authentication interface declares

Object getPrincipal();

Maybe the the following change would help to improve the situation

if (auth.getPrincipal() != null ) {
if (auth.getPrincipal() instanceof User) )

Unknown macro: { data.setRemoteUser(((User)auth.getPrincipal()).getUsername()); }

else

Unknown macro: { data.setRemoteUser(auth.getPrincipal().toString); }

}

Project: GeoServer
Priority: Major Major
Reporter: Andrea Aime
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to