issue with property in REST DSL in blueprint context - Camel 2.19.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

issue with property in REST DSL in blueprint context - Camel 2.19.1

clauds2x@gmail.com
Hi,

I'm trying to update from Camel 2.16.3 to 2.19.1 and experience issues
using properties in the REST DSL in blueprint context.

I have the following config:

         <rest
path="patient/{patient_id}/events?cutoff_timestamp={cutoff_timestamp}&amp;limit={limit}"
produces="application/json" consumes="application/json">
             <get bindingMode="off">
                 <param name="patient_id" type="path" dataType="string"
required="true" />
                 <param name="cutoff_timestamp" type="query"
dataType="long" required="false" />
                 <param name="limit" type="query" dataType="integer"
required="false" defaultValue="{{vel.rest.default.rowlimit}}" />

For the param "limit" the property "{{vel.rest.default.rowlimit}}" used
in attribute defaultValue seems not to get replaced as I receive the
following exception:

    java.lang.NumberFormatException: For input string:
    "{{vel.rest.default.rowlimit}}"


I googled for known issues but didn't find anything. Has anything
changed related to using properties in REST DSL? It previously worked
(2.16.3) and in other places e.g. in the route the syntax
"{{propertyName}}" works...

Cheers
Claudia





Reply | Threaded
Open this post in threaded view
|

Re: issue with property in REST DSL in blueprint context - Camel 2.19.1

Claus Ibsen-2
Hi

Yeah a change from 2.16.x to 2.19.x is a little bit big upgrade.
However this sounds like a little bug.

You are welcome to log a JIRA and we can look at getting this fixed
for upcoming releases.

On Fri, Aug 4, 2017 at 11:24 AM, [hidden email] <[hidden email]> wrote:

> Hi,
>
> I'm trying to update from Camel 2.16.3 to 2.19.1 and experience issues using
> properties in the REST DSL in blueprint context.
>
> I have the following config:
>
>         <rest
> path="patient/{patient_id}/events?cutoff_timestamp={cutoff_timestamp}&amp;limit={limit}"
> produces="application/json" consumes="application/json">
>             <get bindingMode="off">
>                 <param name="patient_id" type="path" dataType="string"
> required="true" />
>                 <param name="cutoff_timestamp" type="query" dataType="long"
> required="false" />
>                 <param name="limit" type="query" dataType="integer"
> required="false" defaultValue="{{vel.rest.default.rowlimit}}" />
>
> For the param "limit" the property "{{vel.rest.default.rowlimit}}" used in
> attribute defaultValue seems not to get replaced as I receive the following
> exception:
>
>    java.lang.NumberFormatException: For input string:
>    "{{vel.rest.default.rowlimit}}"
>
>
> I googled for known issues but didn't find anything. Has anything changed
> related to using properties in REST DSL? It previously worked (2.16.3) and
> in other places e.g. in the route the syntax "{{propertyName}}" works...
>
> Cheers
> Claudia
>
>
>
>
>



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Reply | Threaded
Open this post in threaded view
|

Re: issue with property in REST DSL in blueprint context - Camel 2.19.1

clauds2x@gmail.com
Yes, quite the upgrade... but everything else seems to be working fine
so far. ;)

I raised a ticket: https://issues.apache.org/jira/browse/CAMEL-11636

Thx!

On 04.08.17 13:39, Claus Ibsen wrote:

> Hi
>
> Yeah a change from 2.16.x to 2.19.x is a little bit big upgrade.
> However this sounds like a little bug.
>
> You are welcome to log a JIRA and we can look at getting this fixed
> for upcoming releases.
>
> On Fri, Aug 4, 2017 at 11:24 AM, [hidden email] <[hidden email]> wrote:
>> Hi,
>>
>> I'm trying to update from Camel 2.16.3 to 2.19.1 and experience issues using
>> properties in the REST DSL in blueprint context.
>>
>> I have the following config:
>>
>>          <rest
>> path="patient/{patient_id}/events?cutoff_timestamp={cutoff_timestamp}&amp;limit={limit}"
>> produces="application/json" consumes="application/json">
>>              <get bindingMode="off">
>>                  <param name="patient_id" type="path" dataType="string"
>> required="true" />
>>                  <param name="cutoff_timestamp" type="query" dataType="long"
>> required="false" />
>>                  <param name="limit" type="query" dataType="integer"
>> required="false" defaultValue="{{vel.rest.default.rowlimit}}" />
>>
>> For the param "limit" the property "{{vel.rest.default.rowlimit}}" used in
>> attribute defaultValue seems not to get replaced as I receive the following
>> exception:
>>
>>     java.lang.NumberFormatException: For input string:
>>     "{{vel.rest.default.rowlimit}}"
>>
>>
>> I googled for known issues but didn't find anything. Has anything changed
>> related to using properties in REST DSL? It previously worked (2.16.3) and
>> in other places e.g. in the route the syntax "{{propertyName}}" works...
>>
>> Cheers
>> Claudia
>>
>>
>>
>>
>>
>
>