Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-8011

Module HTTP Listener Connector Request based on path not working fine

    XMLWordPrintable

Details

    • S1
    • 5
    • Hide

      <flow name="http_listener_test_wildcard">
      <http:listener host="localhost" port="8083" path="/in_wildcard/*" />
      <set-payload value="TestOK" />
      </flow>

      Show
      <flow name="http_listener_test_wildcard"> <http:listener host="localhost" port="8083" path="/in_wildcard/*" /> <set-payload value="TestOK" /> </flow>
    • ESB Himalaya 5

    Description

      When you use a Wildcard to support a pattern in the PATH it's not working fine in these scenarios:

      For path="/in_wildcard/*" />

      1) It doesn't work consuming it with path="/in_wildcard/"

      2) It doesn't work consuming it with path="/in_wildcard/foo1/foo2"
      (with /in_wildcard/foo1 works fine)

      If I have another flow in the same app with a path="/in_wildcard/*/subpath1" />

      1) It doesn't work consuming it with path="/in_wildcard/foo1/subpath1"

      Examples:
      <flow name="http_listener_test_wildcard">
      <http:listener host="localhost" port="8083" path="/in_wildcard/*" />
      <set-payload value="TestOK" />
      </flow>

      <flow name="http_listener_test_wildcard_2">
      <http:listener host="localhost" port="8083" path="/in_wildcard/*/subpath1" />
      <set-payload value="TestOK123" />
      </flow>

      1) GET Method: http://localhost:8083/in_wildcard/ should return "TestOk" but it doesn't work in that path (STATUS 404 No listener for endpoint: /in_wildcard/)

      2) GET Method: http://localhost:8083/in_wildcard/foo1/foo2 should return "TestOk" but it doesn't work in that path (STATUS 404 No listener for endpoint: /in_wildcard/foo1/foo2/)

      3) GET Method: http://localhost:9001/in/in_wildcard/foo1/subpath1 should return "TestOk123" but it doesn't work in that path (STATUS 404 No listener for endpoint: /in_wildcard/foo1/subpath1)

      Attachments

        Activity

          People

            pablo.lagreca@mulesoft.com Pablo La Greca (Inactive)
            alejandro.nosenzo@mulesoft.com Alejandro Nosenzo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: