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

LRA participant does not respect JAX-RS path definitions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.9.6.Final
    • 5.9.5.Final
    • LRA
    • 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.

      Attachments

        Activity

          People

            mstefank Martin Stefanko
            mstefank Martin Stefanko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: