jakartaee / jakartaee/rest

@MatrixParam should not inherit values

Open
#8 7 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

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

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.