karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xilai Dai (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-2964) The rank element in <jaas:config> can't use the value from property-placeholder
Date Sun, 04 May 2014 07:13:14 GMT
Xilai Dai created KARAF-2964:
--------------------------------

             Summary: 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


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
(v6.2#6252)

Mime
View raw message