elkman commented on pull request #479:
URL: https://github.com/apache/tomcat/pull/479#issuecomment-1050112226


   Hi,
   
   I stumbled across this issue while writing a "RewriteValve" rule that 
redirects everything based on an HTTP header condition.
   
   This is happening in a development environment where no ROOT context is 
configured and no reverse proxy ensures that only valid path prefixes are 
passed to the Tomcat instances. So it is not a real production world problem, 
but the NPE made me skeptical.
   
   I don't know if there is an easy way to access the actual configured default 
values from the context.xml and taking into account the 
STRICT_SERVLET_COMPLIANCE setting. This would be the preferred solution, but 
the case is also relatively unlikely in production setups and my primary goal 
is to avoid the NPE.
   
   Cheers,
   @elkman


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to