jakartaee / jakartaee/rest

Clarify whether UriInfo.getPath includes a leading slash or not, or provide an alternative

Open
#486 6 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.