karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2964) The rank element in <jaas:config> can't use the value from property-placeholder
Date Fri, 16 May 2014 10:29:18 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13998836#comment-13998836

Daniel Kulp commented on KARAF-2964:

Looking at the Aries code, I think there is a possible workaround. In THEIR bundle that has
the affected blueprint file, you should be to control the validation via directives on the
bundle Symbolic name:

Bundle-SymbolicName: org.foo.blah.MyBundle;blueprint.aries.xml-validation:=false

Not ideal, but may be a possible workaround until a fix can be provided.

> 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-osgi
>    Affects Versions: 2.3.5
>            Reporter: Xilai Dai
>            Assignee: Jean-Baptiste Onofré
> 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

View raw message