Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Path-style expansion does not expand collection values inside a map

Closed
#3,584 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
api

Research direction

Start at Expressions.SimpleExpression#expandMap and compare its handling with expandIterable, reproducing the UriTemplate.create("/server{;parameters}", UTF_8).expand(...) examples from the issue. Done means map entries containing collections or arrays expand into repeated path parameters without stringified collection values or array identity hashes, while scalar entries retain their current behavior.

Written by the indexing model from the issue text.

Description

Expressions.SimpleExpression#expandMap stringifies each entry value, so {;params} with a Map does not expand a collection or array entry.

On master (68b96d1), UriTemplate.create("/server{;parameters}", UTF_8).expand(...):

parameters expanded
{colours=[red, blue], size=L} /server;colours=%5Bred%2C%20blue%5D;size=L
{colours=String[]{"red","blue"}} /server;colours=%5BLjava.lang.String%3B%403567135c

As a top-level variable the same values go through expandIterable: {;colours} with List.of("red","blue") gives /server;colours=red;colours=blue. A map entry should expand the same way, giving /server;colours=red;colours=blue;size=L.

The array case also puts an identity hash in the URL.

Found from spring-cloud/spring-cloud-openfeign#1421.

Dominant language
Java
Stars
9.8k
Forks
2k
Avg merge
12h 8m
Merged PRs (30d)
40

Getting set up

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.

More from OpenFeign/feign

All issues in OpenFeign/feign

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.