spring-projects / spring-projects/spring-hateoas
Link Builder Ignores Parameters Containing Colons
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
Consider this:
linkTo(IconController.class).slash("urn:aa:bb:cc").withSelfRel();
We expect the href that is generated to be this:
http://localhost/icons/urn:aa:bb:cc
However, it is actually this:
http://localhost/icons
It appears that the parameter is being detected as the URI scheme or similar and not an ordinary string. Other character/method combinations may cause similar behavior.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Reproduce the issue with the shown linkTo and slash calls, comparing the expected and actual href values. Trace the link builder and URI-parameter handling from that entry point, then verify that colon-containing parameters remain part of the generated path and that related character combinations do not regress.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100