[jboss-jira] [JBoss JIRA] Closed: (SECURITY-395) AbstractPolicy: Empty Description element throws NPE

Anil Saldhana (JIRA) jira-events at lists.jboss.org
Mon Mar 23 13:01:22 EDT 2009


     [ https://jira.jboss.org/jira/browse/SECURITY-395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anil Saldhana closed SECURITY-395.
----------------------------------

    Resolution: Done


> AbstractPolicy: Empty Description element throws NPE
> ----------------------------------------------------
>
>                 Key: SECURITY-395
>                 URL: https://jira.jboss.org/jira/browse/SECURITY-395
>             Project: JBoss Security and Identity Management
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jboss-sunxacml
>    Affects Versions: JBossXACML_2.0.3.CR3
>            Reporter: Anil Saldhana
>            Assignee: Anil Saldhana
>             Fix For: JBossXACML_2.0.3.CR4
>
>
> <Policy PolicyId="urn:oasis:names:tc:xspa:1.0:org.catch-all" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:permit-overrides">
>       <Description></Description>
>       <Target />
>       <Rule RuleId="" Effect="Permit"></Rule>
>     </Policy>
> AbstractPolicy.java
> for (int i = 0; i < children.getLength(); i++) {
>             Node child = children.item(i);
>             String cname = SunxacmlUtil.getNodeName(child);
>             if (cname.equals("Description")) {
>                 description = child.getFirstChild().getNodeValue();
>             } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list