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

LRA participant does not respect JAX-RS path definitions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.9.6.Final
    • 5.9.5.Final
    • LRA
    • None

      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.

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

                Created:
                Updated:
                Resolved: