Replies: 3 comments 5 replies
-
Do clarify, you'd expect to get "A,B,C,D"? If you've got a reproducer, which I realize might not be that simple, that would be helpful to understand if this is a bug or not. |
Beta Was this translation helpful? Give feedback.
-
That was my initial attempt before going to the list.
The problem is that I'll get two parameters (totally correct) "A,B,C" and "D" and... how would I return three params out of one? Cheers, Dmitry |
Beta Was this translation helpful? Give feedback.
-
Exactly. The filters are objects with different fields where 'A','B' are identifiers. IMHO the solution in resteasy would be to loop over filters and collect them with addAll... Kind regards, Dmitry |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am facing a problem with multiple parameters (Wildfly 27 /RestEasy 6.2.1).
I have an endpoint (simplified here):
Which should get params like:
So if I implement the converter as:
MyParamConverter implements ParamConverter<QueryFilter>
I can't return three filters from just one parameter, so I implemented
MyParamConverter implements ParamConverter<List<QueryFilter>>
Here goes the problem.
RestEasy doesn't consider a possibility of collections for ParamCnvertors:
In the StringParameterInjector.java it just exit from the initialization.
Later on, in
extractValues()
it goes for a single parameterreturn extractValue(values.get(0))
so I got only 'A,B,C'.I am not sure if this is a bug, because the notation param=A,B,C is just one parameter in HTTP, so such queries are part of the application and not implementation library...
Kind regards,
Dmitry
Beta Was this translation helpful? Give feedback.
All reactions