[
https://issues.jboss.org/browse/JBTM-3157?page=com.atlassian.jira.plugin....
]
Issue was automatically transitioned when Martin Stefanko created pull request #1462 in
GitHub
----------------------------------------------------------------------------------------------
Status: Pull Request Sent (was: Open)
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
Priority: Major
When LRA participant defines paths for participant methods like this:
{code:java}
@PUT
@Path("compensate")
@Compensate
public void compensate((a)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((a)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)