On 05/08/2018 04:13, Leonard Afeng wrote:
  Dear all,

I custom the error page in web.xml as below:

<snip/>

And I added some log action in org.apache.catalina.util.ErrorPageSupport
and found out that in some case the 400 error page not working but the
default error page.

<snip/>

20:02:59.674 INFO [http-nio-8080-exec-1]
org.apache.coyote.http11.Http11Processor.service
Error parsing HTTP request header

<snip/>

Is it a known bug

No.

or I can get some patch for it ?

No.

What you are asking for is logically impossible.

The request parsing has failed. Therefore Tomcat can't (reliably) identify the web application the request should be routed to. Therefore you can't have an application error page generate a response.

If you are using 9.0.6 onwards, the ErrorReportValve can be configured to return a custom *static* page for any specific error code and/or Exception.

Mark

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

Reply via email to