[
https://issues.apache.org/jira/browse/CXF-6020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrei Shakirin resolved CXF-6020.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.1.0
3.0.2
2.7.13
> UrilInfo.getAbsolutePath() missing path separator between servlet url and
> relative url
> --------------------------------------------------------------------------------------
>
> Key: CXF-6020
> URL: https://issues.apache.org/jira/browse/CXF-6020
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.1.0
> Reporter: Andrei Shakirin
> Assignee: Andrei Shakirin
> Fix For: 2.7.13, 3.0.2, 3.1.0
>
>
> {code}
> @Path("/bookstore")
> @Produces("application/xml")
> public class BookStore {
> @Context
> private UriInfo ui;
> @GET
> @Path("/books/{id}")
> public Response getBookRoot(@PathParam("id") Long id) {
> System.out.println(ui.getAbsolutePath());
> Book b = books.get(id);
> if (b == null) {
> return Response.status(Status.NOT_FOUND).build();
> }
> return Response.ok(b).build();
> }
> }
> {code}
> The GET call prints: http://localhost:8888bookstore/books/123 .
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)