Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1549

Path Parameters always 'null', included in Query Parameters?

    XMLWordPrintable

Details

    • Clarification
    • Resolution: Done
    • Minor
    • None
    • 2.0.14.Final
    • Servlet
    • None
    • Compatibility/Configuration

    Description

      A question.

      The HttpServerExchange has String Deques of three different parameter sources - path, query and body. I'm using a routing handler.

      On a sample GET request with a path parameter: GET /test/

      {id}

      - using /test/232323232
      The "id" parameter is in query parameters and not path parameters. In fact, path parameters is always null. Logic would dictate that a parameter in the URI path would show up in path parameters and not query parameters?

      Are path parameters used for something else entirely? Or is there something I'm not doing? Your documentation is unclear.

      Attachments

        1. bug.png
          bug.png
          45 kB
        2. bug2.png
          bug2.png
          33 kB

        Activity

          People

            rhn-cservice-bbaranow Bartosz Baranowski
            nolawnchairs Michael Wieczorek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: