Clarify whether UriInfo.getPath includes a leading slash or not, or provide an alternative
Open
@glassfishrobot is already working on this.
Since Feb 10, 2018.
- Dominant language
- Java
- Stars
- 400
- Forks
- 143
- PR merge metrics
- No merged PRs in 30d
Description
The Javadoc for UriInfo.getPath just says: "Get the path of the current request relative to the base URI as a string."
In my opinion, it should also specify whether it includes a leading slash or not.
For example: Jersey 2.7 includes the slash, while Jersey 2.8 & later don't. Since it isn't specified, both behaviors are spec-compliant. However,
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.