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

Jean-Baptiste Onofré reassigned KARAF-2964:
-------------------------------------------

    Assignee:     (was: Jean-Baptiste Onofré)

> The rank element in <jaas:config> can't use the value from 
> property-placeholder
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-2964
>                 URL: https://issues.apache.org/jira/browse/KARAF-2964
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 2.3.5
>            Reporter: Xilai Dai
>            Priority: Major
>
> Given an example blueprint.xml looks like:
> {code}
>     <cm:property-placeholder persistent-id="org.abc" update-strategy="reload">
>         <cm:default-properties>
>             <cm:property name="jaas_name" value="myjaas"/>
>             <cm:property name="jaas_rank" value="1"/>
>         </cm:default-properties>
>     </cm:property-placeholder>
> <jaas:config name="${jaas_name}" rank="${jaas_rank}">
> ......
> </jaas:config>
> {code}
> when deploy this blueprint into karaf, then an exception:
> {code}
>  org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '${jaas_rank}' is 
> not a valid value for 'integer'.
> {code}
> will be thrown.
> Found this definition in karaf-jaas-1.0.0.xsd:
> {code}
> <xs:attribute name="rank" use="optional" default="0" type="xs:int"/>
> {code}
> Maybe the type for rank should be defined as xs:string than xs:int, then will 
> give user opportunity to use the value from property-placeholder.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to