[jbossts-issues] [JBoss JIRA] (JBTM-3157) LRA participant does not respect JAX-RS path definitions

Martin Stefanko (Jira) issues at jboss.org
Fri Jun 28 03:30:00 EDT 2019


Martin Stefanko created JBTM-3157:
-------------------------------------

             Summary: LRA participant does not respect JAX-RS path definitions
                 Key: JBTM-3157
                 URL: https://issues.jboss.org/browse/JBTM-3157
             Project: JBoss Transaction Manager
          Issue Type: Bug
          Components: LRA
    Affects Versions: 5.9.5.Final
            Reporter: Martin Stefanko
            Assignee: Martin Stefanko


When LRA participant defines paths for participant methods like this:


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

instead of:

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

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.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jbossts-issues mailing list