Skip to content

org.eclipse.jetty.ee9.nested.Request method returning null #14094

@ChristianGruen

Description

@ChristianGruen

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:

  1. What is the reason for the variant behavior?
  2. I cannot find hints to the current design choices in the Java sources. Is the Jetty-specific behavior documented somewhere?
  3. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions