When calling this client method with argument String[] filter = ["state.EQ:posted", "account_id.EQ:123"] I would expect the following query value should be added to result query as: '&filter[]=state.EQ:posted,account_id.EQ:123'.
Filter elements separated by comma in the query and this works fine when using Micronaut 3.8.x and Amazon Corretto 11
Actual Behaviour
@Client(value = "${server.url}", alpnModes = HttpVersionSelection.ALPN_HTTP_2)
public interface SomeClient {
When calling this client method with argument String[] filter = ["state.EQ:posted", "account_id.EQ:123"] the following query value is added to result query as: '&filter[]=state.EQ:postedaccount_id.EQ:123'.
Filter elements not separated by comma in the query when using Micronaut 4.2.x and Amazon Corretto 17
When I've used List instead of String[] filter elements are separated by comma in the query.
Steps To Reproduce
Migrate a Micronaut project using HTTP client from version 3.8.x to 4.2.x.
Implement a custom HTTP client method with following argument: @QueryValue("filter[]") String[] filter)
Pass the String array to this method and examine generated query.
Expected Behavior
@Client(value = "${server.url}", alpnModes = HttpVersionSelection.ALPN_HTTP_2) public interface SomeClient {
}
When calling this client method with argument String[] filter = ["state.EQ:posted", "account_id.EQ:123"] I would expect the following query value should be added to result query as: '&filter[]=state.EQ:posted,account_id.EQ:123'. Filter elements separated by comma in the query and this works fine when using Micronaut 3.8.x and Amazon Corretto 11
Actual Behaviour
@Client(value = "${server.url}", alpnModes = HttpVersionSelection.ALPN_HTTP_2) public interface SomeClient {
}
When calling this client method with argument String[] filter = ["state.EQ:posted", "account_id.EQ:123"] the following query value is added to result query as: '&filter[]=state.EQ:postedaccount_id.EQ:123'. Filter elements not separated by comma in the query when using Micronaut 4.2.x and Amazon Corretto 17
When I've used List instead of String[] filter elements are separated by comma in the query.
Steps To Reproduce
Environment Information
Example Application
No response
Version
4.2.1