Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.19.1
-
None
-
Apache Karaf 4.0.9 running on OSX 10.12.5
-
Unknown
Description
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}&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}}"
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