HttpServer path prefix matching incorrectly matches paths that are not slash-prefixed

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: 27
    • Component/s: core-libs

      The "path prefix matching" introduced in JDK-8272758 matches a request path to a context path as follows:

          if (contextPath == '/') {
              return true;
          }

      This results in incorrect matching for request paths that are not slash-prefixed, such as:

         GET foo HTTP/1.1

      Previously 404 was returned by the ServerImpl.

            Assignee:
            Volkan Yazici
            Reporter:
            Volkan Yazici
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: