[
https://issues.apache.org/jira/browse/NEETHI-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp moved WSCOMMONS-269 to NEETHI-3:
--------------------------------------------
Component/s: (was: Policy)
Key: NEETHI-3 (was: WSCOMMONS-269)
Project: Neethi (was: WS-Commons)
> Neethi's deep normalization does not normalize assertions nested within an
> XmlPrimtiveAssertion
> -----------------------------------------------------------------------------------------------
>
> Key: NEETHI-3
> URL: https://issues.apache.org/jira/browse/NEETHI-3
> Project: Neethi
> Issue Type: Bug
> Environment: Windows XP
> Java 1.4
> Reporter: Simon Barere
>
> Given the following sample compact policy:
> <wsp:Policy>
> <wsam:Addressing>
> <wsp:Policy>
> <wsp:ExactlyOne>
> <wsp:All>
> <wsam:AnonymousResponses/>
> </wsp:All>
> <wsp:All>
> <wsam:NonAnonymousResponses/>
> </wsp:All>
> </wsp:ExactlyOne>
> </wsp:Policy>
> </wsam:Addressing>
> </wsp:Policy>
> The resulting normalized version should look something like:
> <wsp:Policy>
> <wsp:ExactlyOne>
> <wsp:All>
> <wsam:Addressing>
> <wsp:Policy>
> <wsp:All>
>
> <wsam:AnonymousResponses/>
> </wsp:All>
> </wsp:Policy>
> </wsam:Addressing>
> </wsp:All>
> <wsp:All>
> <wsam:Addressing>
> <wsp:Policy>
> <wsp:All>
>
> <wsam:NonAnonymousResponses/>
> </wsp:All>
> </wsp:Policy>
> </wsam:Addressing>
> </wsp:All>
> </wsp:ExactlyOne>
> </wsp:Policy>
> When Neethi processes this without using AssertionBuilders, it places the
> entire <Addressing> assertion into a single XmlPrimtiveAssertion. When
> normalizing deeply, the XmlPrimtiveAssertion class is asked to normalize this
> large assertion. Yet the XmlPrimtiveAssertion only seems to normalize an
> Assertion if it is set to optional (creating two alternatives from one). To
> normalize this compact <Addressing> assertion would mean to inspect its
> children looking for policy operators, which XmlPrimtiveAssertion does not
> seem to do.
> The result is that when normalization completes the policy is not actually
> normalized. What is the correct solution to get this sort of policy fully
> normalized?
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]