Mantis - Resin
Viewing Issue Advanced Details
5250 minor always 10-19-12 07:58 10-22-12 16:23
cowan  
ferg  
normal  
closed  
fixed  
none    
none 4.0.33  
0005250: %u fails to populate user principal in access log
From W. Tao

Our access log format settings:

<access-log path="/var/log/resin4/access.log"
                format='"%{host}i" %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T'
                rollover-size="500mb"/>



Log entry from access.log

Oct 19 16:22:52 xxx xxx - - [19/Oct/2012:16:22:50 +1100] "GET /xxx.js HTTP/1.1" 200 415 "https://xxx" [^] "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0


you can see that no username was logged although the servlet request has principle already.
I verified we are setting LOGIN_USER (caucho.user) in the session, but not LOGIN_USER_NAME (caucho.user.name). HttpServetRequestImpl.getRemoteUser(boolean) queries for LOGIN_USER_NAME which is not set.

Notes
(0006065)
ferg   
10-22-12 16:23   
server/02ep