camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-11636) property placeholder is not replaced in REST DSL in blueprint context
Date Mon, 07 Aug 2017 08:23:00 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-11636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-11636.
---------------------------------
    Resolution: Fixed

Thanks for reporting

> property placeholder is not replaced in REST DSL in blueprint context
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-11636
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11636
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-blueprint, rest
>    Affects Versions: 2.19.1
>         Environment: Apache Karaf 4.0.9 running on OSX 10.12.5
>            Reporter: Claudia S
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.20.0, 2.19.3
>
>
> 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:
> {code}
>         <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}}" />
> {code}               
> 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:
> {code}
>     java.lang.NumberFormatException: For input string: "{{vel.rest.default.rowlimit}}"
> {code}
> ----
> Originally asked on the mailing list: http://camel.465427.n5.nabble.com/issue-with-property-in-REST-DSL-in-blueprint-context-Camel-2-19-1-td5809573.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message