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

LRA participant does not respect JAX-RS path definitions

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.9.5.Final
    • Fix Version/s: 5.9.6.Final
    • Component/s: LRA
    • Labels:
      None

      Description

      When LRA participant defines paths for participant methods like this:

      @PUT
          @Path("compensate")
          @Compensate
          public void compensate(@HeaderParam(LRA.LRA_HTTP_CONTEXT_HEADER) URI lraId) {
              System.out.println("Compensate: " + lraId);
          }
      

      instead of:

      @PUT
          @Path("/compensate")
          @Compensate
          public void compensate(@HeaderParam(LRA.LRA_HTTP_CONTEXT_HEADER) URI lraId) {
              System.out.println("Compensate: " + lraId);
          }
      

      The participant methods are never executed because the constructed URL is not valid. However, even the first code snippet is still a valid JAX-RS resource definition and thus it should be respected.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mstefank Martin Stefanko
                Reporter:
                mstefank Martin Stefanko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: