Hi Nick,
maybe you can wrap them using RAW() function:
https://camel.apache.org/manual/faq/how-do-i-configure-endpoints.html#HowdoIconfigureendpoints-Configuringparametervaluesusingrawvalues

Regards,
Pasquale.

On Tue, Jan 18, 2022 at 8:47 PM Yebba, Nicholas
<nyebb...@massmutual.com.invalid> wrote:

> Hi, I’ve run into an issue with Camel when using square brackets in query
> params.  For example the following endpoint produces an error.
>
> https://api.degreed.com/api/v2/content?filter[end_date]=”2022-01-01”
>
> The error I receive is:
>
> Caused by: java.lang.IllegalArgumentException: Cannot set property:
> filter[end_date] as a Map because target bean has no setter method for the
> Map
>                 at
> org.apache.camel.support.PropertyBindingSupport.setPropertyCollectionViaReflection(PropertyBindingSupport.java:518)
>                 at
> org.apache.camel.support.PropertyBindingSupport.doSetPropertyValue(PropertyBindingSupport.java:448)
>
>
> I have tried substituting the square brackets with Hex codes (%5B, %5D)
> but that also gives the same error.
>
> The version of Camel we use is 3.8.0
>
> Any help on this would be greatly appreciated.
>
> Thanks,
> Nick
>
>
>
>
> This e-mail transmission may contain information that is proprietary,
> privileged and/or confidential and is intended exclusively for the
> person(s) to whom it is addressed. Any use, copying, retention or
> disclosure by any person other than the intended recipient or the intended
> recipient's designees is strictly prohibited. If you are not the intended
> recipient or their designee, please notify the sender immediately by return
> e-mail and delete all copies
>

Reply via email to