Thanks for the update.  Is this functionality available in my current version 
3.8.0 or do I have to upgrade ?  If I have to upgrade then which version from 
maven repo should I use ?

Thanks,



On 2022/01/20 19:04:26 Claus Ibsen wrote:
> Hi
>
> You can use a header with name CamelHttpQuery where you put the query 
> parameters
> and then call the http endpoint as a static name (without the query)
> then the square brackets should work
>
>
> On Thu, Jan 20, 2022 at 10:35 AM Pasquale Congiusti
> <pa...@gmail.com<mailto:pa...@gmail.com>> wrote:
> >
> > Yeah, it seems RAW() only works on the query parameter value.
> > I've run some experiments and reported an issue here:
> > https://issues.apache.org/jira/browse/CAMEL-17520<https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_browse_CAMEL-2D17520&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=gR-8-emv1QhIxh3eSdfoxgnlpTsVRHF6wlVW-RL_0GZx1_L-V8hN0ZMYIjj3vwdh&s=QQqB9mdpOOLRJ109ra5zJ6dWPOcr6NYTUu5E7Pd-X4w&e=>
> >  - likely it's a bug and
> > we'll work on its resolution. Feel free to watch it on Jira or add any
> > comments over there.
> >
> > Cheers,
> > Pasquale.
> >
> > On Thu, Jan 20, 2022 at 8:57 AM Yebba, Nicholas
> > <ny...@massmutual.com.invalid<mailto:ny...@massmutual.com.invalid>> wrote:
> >
> > > Thanks for the suggestion.  I tried using the RAW function but it seems as
> > > though it’s not being interpreted.  For example when I inspect the URL
> > > camel is sending the word RAW is contained in it.
> > >
> > >
> > >
> > > EX..
> > > https://api.degreed.com/api/v2/content?RAW(filter[end_date])=2021-12-29&RAW(filter[start_date])=2021-12-29<https://urldefense.proofpoint.com/v2/url?u=https-3A__api.degreed.com_api_v2_content-3FRAW-28filter-5Bend-5Fdate-5D-29-3D2021-2D12-2D29-26RAW-28filter-5Bstart-5Fdate-5D-29-3D2021-2D12-2D29&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=gR-8-emv1QhIxh3eSdfoxgnlpTsVRHF6wlVW-RL_0GZx1_L-V8hN0ZMYIjj3vwdh&s=xESTwgJCnKb3ghggGQYqyoSBvh0qBXHYEffkQR2vHdI&e=>
> > > <EX..
> > > https://api.degreed.com/api/v2/content?RAW(filter%5Bend_date%5D)=2021-12-29&RAW(filter%5Bstart_date%5D)=2021-12-29<https://urldefense.proofpoint.com/v2/url?u=https-3A__api.degreed.com_api_v2_content-3FRAW-28filter-255Bend-5Fdate-255D-29-3D2021-2D12-2D29-26RAW-28filter-255Bstart-5Fdate-255D-29-3D2021-2D12-2D29&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=gR-8-emv1QhIxh3eSdfoxgnlpTsVRHF6wlVW-RL_0GZx1_L-V8hN0ZMYIjj3vwdh&s=smXILirc1EjTW3_6CjMtv745RRhSXYgrB0lJDn9IrCE&e=>
> > > >
> > >
> > >
> > > .to("
> > > https://api.degreed.com/api/v2/content?RAW(filter[end_date])=2021-12-29&RAW(filter[start_date])=2021-12-29<https://urldefense.proofpoint.com/v2/url?u=https-3A__api.degreed.com_api_v2_content-3FRAW-28filter-5Bend-5Fdate-5D-29-3D2021-2D12-2D29-26RAW-28filter-5Bstart-5Fdate-5D-29-3D2021-2D12-2D29&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=gR-8-emv1QhIxh3eSdfoxgnlpTsVRHF6wlVW-RL_0GZx1_L-V8hN0ZMYIjj3vwdh&s=xESTwgJCnKb3ghggGQYqyoSBvh0qBXHYEffkQR2vHdI&e=>
> > > ")
> > >
> > >
> > >
> > > Is there an example of how to use this function in code ?  I also tried
> > > using the $simple
> > > https://camel.apache.org/components/3.14.x/languages/simple-language.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__camel.apache.org_components_3.14.x_languages_simple-2Dlanguage.html&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=gR-8-emv1QhIxh3eSdfoxgnlpTsVRHF6wlVW-RL_0GZx1_L-V8hN0ZMYIjj3vwdh&s=nkspckEW5mnXRQTLML3Ti5bspSyj23-gf-ExEBB2rB0&e=>
> > >
> > > but couldn’t get it to interpret either.
> > >
> > >
> > > On 2022/01/19 08:30:07 Pasquale Congiusti wrote:
> > > > Hi Nick,
> > > > maybe you can wrap them using RAW() function:
> > > >
> > > https://camel.apache.org/manual/faq/how-do-i-configure-endpoints.html#HowdoIconfigureendpoints-Configuringparametervaluesusingrawvalues<https://urldefense.proofpoint.com/v2/url?u=https-3A__camel.apache.org_manual_faq_how-2Ddo-2Di-2Dconfigure-2Dendpoints.html-23HowdoIconfigureendpoints-2DConfiguringparametervaluesusingrawvalues&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=gR-8-emv1QhIxh3eSdfoxgnlpTsVRHF6wlVW-RL_0GZx1_L-V8hN0ZMYIjj3vwdh&s=DdA7F23ow8LpwFJwomwDYYtnE4okyXSQiTkQ63a_unU&e=>
> > > <
> > > https://urldefense.proofpoint.com/v2/url?u=https-3A__camel.apache.org_manual_faq_how-2Ddo-2Di-2Dconfigure-2Dendpoints.html-23HowdoIconfigureendpoints-2DConfiguringparametervaluesusingrawvalues&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=SprYDSeClKG4ItPlLNkpIGTU6y019pQdiAIriUI3kYIEY0YAlRPzxXetUA-R8CkT&s=LTpLyUh0wCt30a8EJZsiO3aqPtwvvovButmRp-E7nHQ&e=
> > > >
> > > >
> > > > Regards,
> > > > Pasquale.
> > > >
> > > > On Tue, Jan 18, 2022 at 8:47 PM Yebba, Nicholas
> > > > <ny...@massmutual.com.invalid<mailto:ny...@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<<https://urldefense.proofpoint.com/v2/url?u=https-3A__api.degreed.com_api_v2_content-3Ffilter-5Bend-5Fdate-5D-3D-25E2-2580-259D2022-2D01-2D01-253C&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=gR-8-emv1QhIxh3eSdfoxgnlpTsVRHF6wlVW-RL_0GZx1_L-V8hN0ZMYIjj3vwdh&s=Elj8OTIXLqlq2tDXMqyGycqDHuZmWPCoYEPa-V7fOHs&e=>
> > > https://urldefense.proofpoint.com/v2/url?u=https-3A__api.degreed.com_api_v2_content-3Ffilter-5Bend-5Fdate-5D-3D-25E2-2580-259D2022-2D01-2D01&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=SprYDSeClKG4ItPlLNkpIGTU6y019pQdiAIriUI3kYIEY0YAlRPzxXetUA-R8CkT&s=nX6xmJBELu5A8cWClK09QPU0rEF6p79l92sK8rFcKN0&e=
> > > >”
> > > > >
> > > > > 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<
> > > https://urldefense.proofpoint.com/v2/url?u=http-3A__PropertyBindingSupport.java&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=SprYDSeClKG4ItPlLNkpIGTU6y019pQdiAIriUI3kYIEY0YAlRPzxXetUA-R8CkT&s=6md6vJpAUhQYOwW5votQaG_Lq_av6ow_U77gykIyXog&e=
> > > >:518)
> > > > >                 at
> > > > >
> > > org.apache.camel.support.PropertyBindingSupport.doSetPropertyValue(PropertyBindingSupport.java<
> > > https://urldefense.proofpoint.com/v2/url?u=http-3A__PropertyBindingSupport.java&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=SprYDSeClKG4ItPlLNkpIGTU6y019pQdiAIriUI3kYIEY0YAlRPzxXetUA-R8CkT&s=6md6vJpAUhQYOwW5votQaG_Lq_av6ow_U77gykIyXog&e=
> > > >: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
> > > > >
> > > >
> > >
> > >
> > > 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
> > >
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__davsclaus.com&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=gR-8-emv1QhIxh3eSdfoxgnlpTsVRHF6wlVW-RL_0GZx1_L-V8hN0ZMYIjj3vwdh&s=uOQz9Yz1rN0-5EzvAHdv_ee0vg8OnNfP74iyftHRNkU&e=>
>  @davsclaus
> Camel in Action 2: 
> https://www.manning.com/ibsen2<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.manning.com_ibsen2&d=DwQF-g&c=BX7Y4KpGhcDnIsrgHKqkbfoiiDvjhxwuYUpcrPD7xrE&r=OFvQfQi5F2eAFNOPCRzvUe57MQh7D-3NfvOtgep-tGg&m=gR-8-emv1QhIxh3eSdfoxgnlpTsVRHF6wlVW-RL_0GZx1_L-V8hN0ZMYIjj3vwdh&s=_2Rw3InCwTEY11NJpRyqsW43hxhY_csFHq2LzB_sw7E&e=>
>


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