Skip to content

Empty query parameter is being filtred out in a Collection based query #1028

@Ashxvi

Description

@Ashxvi

I'm using the version 10.2.3 of the library, then I noticed that an empty string of my List is being filtered out which goes against the RFC 6570 "only undefined
values should be filtered out".

Example :

public interface TestClient {
    @RequestLine("GET /test?people={people}")
    Boolean isEligible(@Param(value = "people", encoded = true) Collection<String> people);
}

thereby,

public void test_with_empty_name() {
   Boolean isEligible = testClient.isEligible(List.of("","John","Stan"));
}

results in :

.../test?people=John&people=Stan

while the expected result is :

.../test?people=&people=John&people=Stan

Metadata

Metadata

Assignees

Labels

bugUnexpected or incorrect behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions