[jbossts-issues] [JBoss JIRA] (JBTM-3157) LRA participant does not respect JAX-RS path definitions
Thomas Jenkinson (Jira)
issues at jboss.org
Mon Jul 1 08:45:00 EDT 2019
[ https://issues.jboss.org/browse/JBTM-3157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754032#comment-13754032 ]
Thomas Jenkinson commented on JBTM-3157:
----------------------------------------
See https://docs.oracle.com/javaee/7/api/javax/ws/rs/Path.html which indicates the initial slash can be ignored
> 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