spring-projects / spring-projects/spring-hateoas

TraversalBuilder and Hop should be able to handle multiple values for a template parameter

Open
#660 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.1k
Forks
476
PR merge metrics
No merged PRs in 30d

Description

With spring-mvc (and other frameworks) it is easy to handle requests where one parameter is used more than once in a single request, such as GET http://my-url.org/my-service?param=value1&param=value2&param=value3. (For instance, using spring-mvc one could use a List for a single parameter with multiple values or a MultiValueMap.)

However, the TraversalBuilder and Hop classes of spring-hateoas store template parameters in a Map and thereby fail to handle the above situation. Could this change, so that clients can handle multiple values?

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by inspecting the TraversalBuilder and Hop classes mentioned in the issue, focusing on how template parameters are stored and expanded. Reproduce a request containing repeated param values such as value1, value2, and value3; done means clients preserve and handle all values instead of collapsing them into one map entry.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.