[ https://issues.apache.org/jira/browse/NEETHI-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved NEETHI-12. ------------------------------- Resolution: Fixed > Problems if root element is not a policy element > ------------------------------------------------ > > Key: NEETHI-12 > URL: https://issues.apache.org/jira/browse/NEETHI-12 > Project: Neethi > Issue Type: Bug > Affects Versions: 3.0 > Reporter: Daniel Kulp > Assignee: Daniel Kulp > Fix For: 3.0.1 > > > If the root element passed to PolicyBuilder.getPolicy is not a wsp:Policy > element, neethi tries to parse/process it anyway. Couple things happen: > 1) If the element is a DOM or stream based, you get a Policy object with a > bogus namespace. With the stream versions, the child iterator doesn't work > correctly and only the first child ends up returned; > 2) With OM, if the element is not namespace qualified, you get a NPE. > We need to check to make sure we're getting a policy element and throw an > exception otherwise. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ws.apache.org For additional commands, e-mail: dev-h...@ws.apache.org