Return-Path: X-Original-To: apmail-ws-dev-archive@www.apache.org Delivered-To: apmail-ws-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D3626067 for ; Wed, 6 Jul 2011 16:23:43 +0000 (UTC) Received: (qmail 65854 invoked by uid 500); 6 Jul 2011 16:23:41 -0000 Delivered-To: apmail-ws-dev-archive@ws.apache.org Received: (qmail 65375 invoked by uid 500); 6 Jul 2011 16:23:40 -0000 Mailing-List: contact dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ws.apache.org Delivered-To: mailing list dev@ws.apache.org Received: (qmail 65362 invoked by uid 99); 6 Jul 2011 16:23:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 16:23:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 16:23:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BDC8C450F5 for ; Wed, 6 Jul 2011 16:23:16 +0000 (UTC) Date: Wed, 6 Jul 2011 16:23:16 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: dev@ws.apache.org Message-ID: <1281548331.4443.1309969396774.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <707522585.4436.1309969037285.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (NEETHI-12) Problems if root element is not a policy element MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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-unsubscribe@ws.apache.org For additional commands, e-mail: dev-help@ws.apache.org