Re: [jetty-users] Custom bad message error page

2023-08-07 Thread Simone Bordet via jetty-users
Hi, On Mon, Aug 7, 2023 at 12:16 PM Silvio Bierman via jetty-users wrote: > > Hi, > > I run embedded Jetty 11.0.13. I have a single servlet instance and call > ServletContextHandler#setErrorHandler(customHandler) during initialization. > But whenever an invalid URL (like one containing empty

Re: [jetty-users] Custom bad message error page

2023-08-07 Thread Silvio Bierman via jetty-users
Hello Simone, Thank you for the reply. We do not want to change the compliance, the error flagging is correct and desired. It is just that some potential user doing a pen-test on our system is objecting to the messages being generated. The SNI message contains "Caused by:

[jetty-users] Custom bad message error page

2023-08-07 Thread Silvio Bierman via jetty-users
Hi, I run embedded Jetty 11.0.13. I have a single servlet instance and call ServletContextHandler#setErrorHandler(customHandler) during initialization. But whenever an invalid URL (like one containing empty segments) the handle method of the custom errorhandler is not called. Instead the

Re: [jetty-users] Custom bad message error page

2023-08-07 Thread Joakim Erdfelt via jetty-users
You can write your own custom ErrorHandler for these kinds of errors, but it has to be associated with the Server, not a ServletContextHandler. Remember, there is no Request object. Using the Server.setErrorHandler(ErrorHandler) is sufficient to set your custom error handler. Note that you will

Re: [jetty-users] Eclipse Jetty 12.0.0 has been released!

2023-08-07 Thread Bill Ross via jetty-users
Thanks! Digging in, The Eclipse download link in the email is broken. Wrong: https://eclipse.dev/jetty/download/ Correct: https://eclipse.dev/jetty/download.php The zip hashes there are labeled mp5, but match md5sum. It seems mp5 may be a gaming thing.

Re: [jetty-users] Custom bad message error page

2023-08-07 Thread Joakim Erdfelt via jetty-users
The BadMessageException that occurs during HTTP parsing (before there is a Request object) is handled by ErrorHandler.badMessageError() See https://github.com/eclipse/jetty.project/blob/jetty-11.0.15/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ErrorHandler.java#L527 That sets the

Re: [jetty-users] Custom bad message error page

2023-08-07 Thread Simone Bordet via jetty-users
Hi, On Mon, Aug 7, 2023 at 4:49 PM Silvio Bierman wrote: > > Hello Simone, > > Thank you for the reply. We do not want to change the compliance, the > error flagging is correct and desired. It is just that some potential > user doing a pen-test on our system is objecting to the messages being >

[jetty-users] Eclipse Jetty 12.0.0 has been released!

2023-08-07 Thread Joakim Erdfelt via jetty-users
Hello! The Jetty team is happy to announce the immediate availability of Eclipse Jetty 12.0.0 This release includes a major change to the structure of Jetty. - *Jetty Core* This Jetty Server / Jetty Client core, and is now 100% free from any specific Jakarta EE technology (such as