Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3433

Invocation of LRA participant completion and compensation endpoints does not include a query string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.12.0.Final
    • 5.10.6.Final
    • LRA
    • None
    • Undefined

      I've been doing some testing with Apache Camel and it's LRA component with Narayana LRA 5.10.6.Final. None of the participant completion or compensation endpoints are being triggered correctly because the target URL lacks a query string that is critical for Camel to know which logic to run in reaction to the complete or compensation request.

      For example, Camel configures completion / compensation URLs that look like this:

      http://localhost:43305/lra-participant/complete?Camel-Saga-Compensate=direct://refundCredit

      http://localhost:43305/lra-participant/compensate?Camel-Saga-Compensate=direct://cancelOrder

      The logic here seems to not take into account the query string:

      https://github.com/jbosstm/narayana/blob/5.10.6.Final/rts/lra/lra-coordinator-jar/src/main/java/io/narayana/lra/coordinator/domain/model/LRARecord.java#L320-L326

              rhn-engineering-mmusgrov Michael Musgrove
              jnethert@redhat.com James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: