[JIRA] Commented: (SC-175) NOT/AND/OR functors don't appear to support RuleReference children
Chad La Joie (JIRA)
noreply at shibboleth.net
Mon Jun 11 14:13:03 BST 2012
[ https://issues.shibboleth.net/jira/browse/SC-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14149#comment-14149 ]
Chad La Joie commented on SC-175:
---------------------------------
So, a difficulty here is going to be determining what rules are referenced. That schema was done before there were deny rules. In addition we'd have to determine whether the current rule was being used a policy requirement rule or an attribute value rule. We can probably determine both by just walking up the DOM and looking for some particular element names. Will investigate further...
> NOT/AND/OR functors don't appear to support RuleReference children
> ------------------------------------------------------------------
>
> Key: SC-175
> URL: https://issues.shibboleth.net/jira/browse/SC-175
> Project: Shibboleth Common - Java
> Issue Type: Bug
> Components: Attribute Authority
> Affects Versions: 1.3.5
> Reporter: Scott Cantor
> Assignee: Chad La Joie
> Priority: Minor
> Fix For: 1.3.6
>
>
> The schema for the AND/OR/NOT functors in the filter engine indicates that RuleReference elements can be used as children, but the bean parsers don't back that up. In particular, it's schema legal in the NOT case to include a single RuleReference child, but that crashes in the config parser because it assumes there's a Rule child:
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> at java.util.ArrayList.get(ArrayList.java:322)
> at edu.internet2.middleware.shibboleth.common.config.attribute.filtering.match.basic.NotMatchFunctorBeanDefinitionParser.doParse(NotMatchFunctorBeanDefinitionParser.java:53)
> at org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:84)
> at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:56)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the commits
mailing list