Jetty version(s) Jetty 12.1.4
Jetty Environment ee9
Description
Various functions of the org.eclipse.jetty.ee9.nested class, for example getRequestURI(), are allowed to return null. This contrasts with the interface description of the method (https://jakarta.ee/specifications/servlet/5.0/apidocs/jakarta/servlet/http/httpservletrequest#getRequestURI()), and it makes debugging a very erratic process.
My questions:
- What is the reason for the variant behavior?
- I cannot find hints to the current design choices in the Java sources. Is the Jetty-specific behavior documented somewhere?
- Unchecked exceptions would not be ideal either, but they could at least give some more hints on what is going on. Have you thought about that?