Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006123 [Resin] minor always 01-02-18 13:20 01-02-18 14:52
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.56 Product Version
  Product Build
Summary 0006123: NPE in access log
Description (rep by Steffen Busch)

now with Resin 4.0.54 we can see the Stack Trace that happens in this siutation:


com.caucho.server.webapp.WebApp java.lang.NullPointerException
                             at com.caucho.server.http.AbstractCauchoRequest.getSessionCookie(AbstractCauchoRequest.java:771)
                             at com.caucho.server.http.HttpServletRequestImpl.getCookies(HttpServletRequestImpl.java:940)
                             at com.caucho.server.http.HttpServletRequestImpl.findCookie(HttpServletRequestImpl.java:988)
                             at com.caucho.server.http.HttpServletRequestImpl.getCookie(HttpServletRequestImpl.java:983)
                             at com.caucho.server.log.AccessLog.log(AccessLog.java:477)
                             at com.caucho.server.log.AccessLog.log(AccessLog.java:416)
                             at com.caucho.server.webapp.WebApp.accessLog(WebApp.java:4519)
                             at com.caucho.server.http.AbstractHttpRequest.sendRequestError(AbstractHttpRequest.java:1748)
                             at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:861)
                             at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:1353)
                             at com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:1309)
                             at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:1293)
                             at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:1201)
                             at com.caucho.network.listen.TcpSocketLink.handleAcceptTaskImpl(TcpSocketLink.java:997)
                             at com.caucho.network.listen.TcpSocketLink.handleAcceptTask(TcpSocketLink.java:949)
                             at com.caucho.network.listen.ConnectionTask.runThread(ConnectionTask.java:114)
                             at com.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:93)
                             at com.caucho.network.listen.SocketLinkThreadLauncher.handleTasks(SocketLinkThreadLauncher.java:169)
                             at com.caucho.network.listen.TcpSocketResumeThread.run(TcpSocketResumeThread.java:62)
                             at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
                             at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)



I think it could be triggered with an access-log configuration inside <host-default> that contains %{mycookie}c in the format= element.

A BadRequest could be done with for example http://example.com/..wp-admin [^]


Would it be possible to fix this - e.g. with returning "" or null rather than the NullPointerException when AccessLog want's to get the Cookies but there is no sessionManager available?


Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0006814)
ferg
01-02-18 14:52

server/02f1
 

- Issue History
Date Modified Username Field Change
01-02-18 13:20 ferg New Issue
01-02-18 14:52 ferg Note Added: 0006814
01-02-18 14:52 ferg Assigned To  => ferg
01-02-18 14:52 ferg Status new => closed
01-02-18 14:52 ferg Resolution open => fixed
01-02-18 14:52 ferg Fixed in Version  => 4.0.56
01-03-18 00:12 stbu Issue Monitored: stbu


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker