Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@ApplicationPath must have a "/" prefix? #1258

Closed
mattjlewis opened this issue Dec 23, 2019 · 3 comments
Closed

@ApplicationPath must have a "/" prefix? #1258

mattjlewis opened this issue Dec 23, 2019 · 3 comments
Assignees
Labels
bug Something isn't working P2

Comments

@mattjlewis
Copy link

My understanding of the JAX-RS specification is that leading and trailing '/' characters in paths are optional.
From the @Path annotation documentation: https://jax-rs.github.io/apidocs/2.0/:

For the purposes of absolutizing a path against the base URI , a leading '/' in a path is ignored and base URIs are treated as if they ended in '/'.

My quick test indicates that this is true for @Path but that @ApplicationPath must have a leading '/'.

@tomas-langer tomas-langer self-assigned this Dec 30, 2019
@tomas-langer tomas-langer added the bug Something isn't working label Dec 30, 2019
@tomas-langer
Copy link
Member

Fixed in 1.x branch.

@mattjlewis
Copy link
Author

Will this fix be included in the master branch (i.e. 2.0-SNAPSHOT)? I still get the same behaviour with 2.0-SNAPSHOT.

@tomas-langer
Copy link
Member

It is now (with PR #1259 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2
Projects
Archived in project
Development

No branches or pull requests

2 participants