MitchellChu / enterprise-java-xacml

Automatically exported from code.google.com/p/enterprise-java-xacml
0 stars 2 forks source link

Indetermine Exception & stack overflow with policy/request pair which successfully evaluated with earlier version of enterprise xacml #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. java an.example.PDPSample -configFile <path-to-config> -request
replication_request.xml  

What is the expected output? What do you see instead?
Evaluate true

What version of the product are you using? On what operating system?
Linux, svn checkout 13/05/08

Please provide any additional information below.

Hi Ppzian,

I'm getting an IndeterminateException and stack overflow trying to evaluate
a policy and request pair which evaluated successfully  with the earlier
version of enterprise-xacml.

I have attached the policy and request, as well as my config file,  I can't
see this in the list of open issues,

Thanks 
Karen

----------->>>
Picked up _JAVA_OPTIONS:
-Dan.xacml.policy.DefaultSchema=http://docs.oasis-open.org/xacml/2.0/access_cont
rol-xacml-2.0-policy-schema-os.xsd
-Dan.xacml.context.DefaultSchema=http://docs.oasis-open.org/xacml/2.0/access_con
trol-xacml-2.0-context-schema-os.xsd
Loading configurations ... done.
Initialing logging factory ... done.
Initialing default logger ... done.
Starting PDP 'pdpSample' ...
Loading policies from
'/home/kl/Desktop/downloads/enterprise_xacml/pdpsample/prism_policy' ...

1 policies loaded. Time elapsed 0 second. Memory used 0 MB.
PDP 'pdpSample' has been started. Version <0.1.0, XACML v2>
Error occurs when initialize system, will exit now.
an.xacml.IndeterminateException: The match operation failed due to error:
    at an.xacml.policy.DefaultMatch.match(DefaultMatch.java:58)
    at an.xacml.policy.ConjunctiveMatch.match(ConjunctiveMatch.java:22)
    at an.xacml.policy.DisjunctiveMatch.match(DisjunctiveMatch.java:22)
    at an.xacml.policy.ConjunctiveMatch.match(ConjunctiveMatch.java:22)
    at an.xacml.policy.Policy.evaluate(Policy.java:75)
    at an.example.PDPSample.evaluateRequestAgainstPolicy(PDPSample.java:71)
    at an.example.PDPSample.main(PDPSample.java:103)
Caused by: java.lang.StackOverflowError
    at an.xacml.DefaultXACMLElement.getRootElement(DefaultXACMLElement.java:72)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)
    at an.xacml.policy.AbstractPolicy.getOwnerPDP(AbstractPolicy.java:121)

Original issue reported on code.google.com by kmurph...@gmail.com on 14 May 2008 at 10:51

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Karen,

Thanks for your findings, I'v confirmed this is a regression. I've fixed it, 
please
check out the latest code and verify it.

Original comment by ppz...@gmail.com on 14 May 2008 at 1:54

GoogleCodeExporter commented 9 years ago
Check in at revision 216.

Original comment by ppz...@gmail.com on 14 May 2008 at 1:56

GoogleCodeExporter commented 9 years ago

Hi Ppzian, just to confirm that it worked after svn update,

Thanks
Karen

Original comment by kmurph...@gmail.com on 14 May 2008 at 2:43