[jbossts-issues] [JBoss JIRA] (JBTM-3157) LRA participant does not respect JAX-RS path definitions
Anonymous (Jira)
issues at jboss.org
Fri Jun 28 03:41:01 EDT 2019
[ https://issues.jboss.org/browse/JBTM-3157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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(@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