Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6698

Ability to configure URI Compliance mode

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • http.jetty12-1.0.4
    • HTTP Service
    • None

    Description

      See https://eclipse.dev/jetty/documentation/jetty-12/programming-guide/index.html#pg-server-compliance-uri

      I'm running into an issue where URL's that worked in Jetty 9.x before, no longer work on Jetty 12.x (with Servlet API 6).

      It turns out that this behavior has changed in Jetty, and is configurable.

      When using LEGACY or UNSAFE, a workaround is needed to let Jetty handle the urls properly, besides setting the URI compliance mode.

      See https://github.com/jetty/jetty.project/issues/11448#issuecomment-1969206031 for more information.

      I will put in a PR to get this configurable in Felix HTTP Jetty12.

      Example URL that no longer works:

      https://domain.net/rest/v2/exampleEndpoint/76ffc12c-7d8b-433f-b95d-8ced9415a598/items/item_0_http%253A%252F%252Fwww.test.com%252F0.html

      Attachments

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              paul_blueconic Paul Rütter (BlueConic)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: