Synapse
  1. Synapse
  2. SYNAPSE-733

Conditional Router Mediator doesn't route messages based on HTTP Query parameters

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None

      Description

      Conditional Router Mediator doesn't route messages based on HTTP Query parameters for GET requests.
      In the following configuration, I'm trying to route a message based on a http parameter but the condition never get satisfied.

      Synapse Config :

      <conditionalRouter>
      <route>
      <condition>
      <equal source="s" type="param" value="test" />
      </condition>
      <target sequence="send_seq"/>
      </route>
      </conditionalRouter>

      GET Request:
      curl http://localhost:8280/services/StockQuoteProxy?s=test

      1. SYNAPSE-733.patch
        0.9 kB
        Kasun Indrasiri

        Activity

        Hide
        Heshan Suriyaarachchi added a comment -

        Fixed in trunk.
        Committed revision 1072936.

        Thanks Kasun for the contribution.

        Show
        Heshan Suriyaarachchi added a comment - Fixed in trunk. Committed revision 1072936. Thanks Kasun for the contribution.
        Hide
        Kasun Indrasiri added a comment -

        Attaching the patch that fixes this issue.

        Show
        Kasun Indrasiri added a comment - Attaching the patch that fixes this issue.

          People

          • Assignee:
            Heshan Suriyaarachchi
            Reporter:
            Kasun Indrasiri
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development