Re: [jetty-users] BadMessageException

2023-05-22 Thread John English
On 22/05/2023 18:55, Joakim Erdfelt wrote: Don't blindly call request.getParameter() without fully (and I do mean FULLY) understanding the side effects. Now you tell me... :) :) A call to request.getParameter() can read the request body content as well. (per Servlet spec). A call to

Re: [jetty-users] BadMessageException

2023-05-22 Thread Joakim Erdfelt
Don't blindly call request.getParameter() without fully (and I do mean FULLY) understanding the side effects. A call to request.getParameter() can read the request body content as well. (per Servlet spec). A call to request.getParameter() can fail for bad input, bad encoding, bad expectations, IO

[jetty-users] BadMessageException

2023-05-22 Thread John English
I have a catch-all exception handler which sends me an email for unhandled exceptions in case it's due to a bug in the code. Recently I had a flurry of emails because of a URL where someone had entered "/foo?bar=%" ("%" being a typo for "5" in this case):

[jetty-users] BadMessageException: 400: Host does not match SNI

2019-04-03 Thread Ike Ikonne
Hi all,   I am getting the following stacktrace when a client tries to connect to a restful API service managed by embedded Jetty server. I would like to know how to disable or mitigate this issue. Anyway idea would be greatly appreciated.   2019-03-28 12:38:00,704 [qtp917213436-32] WARN