Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4404

Question about URI Variables and the HttpRequestExecutingMessageHandler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 4.3.14
    • Fix Version/s: None
    • Component/s: HTTP Support
    • Labels:
      None
    • Environment:
      Spring boot micro service using spring-integration for a HTTP outbound messaging. This micro service is running on Pivotal Cloud Foundry 1.8

      Description

      Step 1: We create an instance of HttpRequestExecutingMessageHandler as a spring bean at the startup of the micro service and return it to the spring integration framework.

      Step 2: For each request at runtime, we get the request's path variables and set them to "uriVariableExpressions" instance variable.

      Step 3: In handleResponseMessage() method of HttpRequestExecutingMessageHandler, the uriVariables are determined at runtime.

      Step 4: But in a multithreaded scenario, where multiple requests access the handler for processing their requests, Step 3 determines uriVariables incorrectly and leads to incorrect creation of request URIs that in turn lead to incorrect responses.

      This leads to critical situation where one customer receives the info requested by other customer which is highly critical and needs immediate resolution.

      Please let me know if I could provide any other information.

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            vihari_s Vihari S
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: