You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Cindy McNally (JIRA)" <ji...@apache.org> on 2007/03/30 23:25:26 UTC

[jira] Created: (WSCOMMONS-186) policy.getAlternatives() throws an NPE

policy.getAlternatives() throws an NPE
--------------------------------------

                 Key: WSCOMMONS-186
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-186
             Project: WS-Commons
          Issue Type: Bug
          Components: Policy
         Environment: version = SNAPSHOT
            Reporter: Cindy McNally


To reproduce: parse a policy document which contains a nested PolicyReference element and then invoke getAlternatives method.  PolicyIterator normalizes policy and passes null for registry argument which causes the NPE within abstractPolicyOperator.normalizeOperator method.

getAlternatives() should accept a PolicyRegistry argument and normalizeOperator() should check for a null registry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Commented: (WSCOMMONS-186) policy.getAlternatives() throws an NPE

Posted by "Karl Rhenius (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895654#action_12895654 ] 

Karl Rhenius commented on WSCOMMONS-186:
----------------------------------------

This issue blocks the following example in Apache Rampart:

rampart-dist-1.5-bin\rampart-1.5\samples\policy\sample04\policy.xml

> policy.getAlternatives() throws an NPE
> --------------------------------------
>
>                 Key: WSCOMMONS-186
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-186
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: Policy
>         Environment: version = SNAPSHOT
>            Reporter: Cindy McNally
>
> To reproduce: parse a policy document which contains a nested PolicyReference element and then invoke getAlternatives method.  PolicyIterator normalizes policy and passes null for registry argument which causes the NPE within abstractPolicyOperator.normalizeOperator method.
> getAlternatives() should accept a PolicyRegistry argument and normalizeOperator() should check for a null registry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WSCOMMONS-186) policy.getAlternatives() throws an NPE

Posted by "Karl Rhenius (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Rhenius updated WSCOMMONS-186:
-----------------------------------

    Comment: was deleted

(was: This issue blocks the following example in Apache Rampart:

rampart-dist-1.5-bin\rampart-1.5\samples\policy\sample04\policy.xml)

> policy.getAlternatives() throws an NPE
> --------------------------------------
>
>                 Key: WSCOMMONS-186
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-186
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: Policy
>         Environment: version = SNAPSHOT
>            Reporter: Cindy McNally
>
> To reproduce: parse a policy document which contains a nested PolicyReference element and then invoke getAlternatives method.  PolicyIterator normalizes policy and passes null for registry argument which causes the NPE within abstractPolicyOperator.normalizeOperator method.
> getAlternatives() should accept a PolicyRegistry argument and normalizeOperator() should check for a null registry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.