@MatrixParam should not inherit values
@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
Given: /images;offset=
{offset}
;count=
{count}/random;count={count}
Where /images is implemented using one resource, and /random using a sub-resource
If I declare @MatrixParam in the sub-resource random but the client does not
specify the "count" parameter at all, I should get null (indicating the
parameter was missing) instead of inheriting the value of count from /images.
Currently there is no obvious way to detect the **real** value of count for /random.
With respect to implementing the entire URL with a single Resource, it should be
possible to get:
1) The first, last value or some other convention, or
2) A list of all values, or
3) A mapping between path segments and the associated parameter values (similar
to what we would get if we used a sub-resource)
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[2.1]
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.