From commonsbelljames@example.org Mon Apr 02 15:43:54 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 70478 invoked from network); 2 Apr 2007 15:43:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2007 15:43:53 -0000 Received: (qmail 95014 invoked by uid 500); 2 Apr 2007 15:44:00 -0000 Delivered-To: belljames@example.org Received: (qmail 95002 invoked by uid 500); 2 Apr 2007 15:44:00 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 94993 invoked by uid 99); 2 Apr 2007 15:44:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 08:44:00 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 08:43:52 -0700 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 67097714068 for <belljames@example.org>; Mon, 2 Apr 2007 08:43:32 -0700 (PDT) Message-ID: <1218713.1175528612418.JavaMail.jira@brutus> Date: Mon, 2 Apr 2007 08:43:32 -0700 (PDT) From: "Glen Daniels (JIRA)" <belljames@example.org> To: belljames@example.org Subject: [jira] Commented: (WSCOMMONS-189) NamespaceImpl and OMNamespaceImpl violate hashCode contract In-Reply-To: <28979301.1175356105287.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/WSCOMMONS-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486049 ] Glen Daniels commented on WSCOMMONS-189: ---------------------------------------- >suggest to deprecate NamespaceImpl and OMNamespaceImpl, and to make OMNamespace a concrete class that would eventually replace NamespaceImpl and OMNamespaceImpl This is a general direction I WHOLEHEARTEDLY support - the fewer factories and forests of repeated implementation classes the better (IMHO the current state of Axiom is a maintenance nightmare). +1 to start with OMNamespace and make it an easy-to-use concrete class. > NamespaceImpl and OMNamespaceImpl violate hashCode contract > ----------------------------------------------------------- > > Key: WSCOMMONS-189 > URL: https://issues.apache.org/jira/browse/WSCOMMONS-189 > Project: WS-Commons > Issue Type: Bug > Components: AXIOM > Reporter: Alexander Veit > > As the following test case shows, NamespaceImpl and OMNamespaceImpl violate the java.lang.Object contract between equals and hashCode. > Additionally, if the test would turn from red to green, it would suggest to deprecate NamespaceImpl and OMNamespaceImpl, and to make OMNamespace a concrete class that would eventually replace NamespaceImpl and OMNamespaceImpl. > public final class NamespaceImplTestCase extends junit.framework.TestCase > { > public void testEqualsHashCodeContract() > { > assertEquals( > new org.apache.axiom.om.impl.dom.NamespaceImpl("anyURI"), > new org.apache.axiom.om.impl.dom.NamespaceImpl("anyURI")); > assertEquals( > new org.apache.axiom.om.impl.dom.NamespaceImpl("anyURI", "prefix"), > new org.apache.axiom.om.impl.dom.NamespaceImpl("anyURI", "prefix")); > assertEquals( > new org.apache.axiom.om.impl.OMNamespaceImpl("anyURI", "prefix"), > new org.apache.axiom.om.impl.OMNamespaceImpl("anyURI", "prefix")); > assertEquals( > new org.apache.axiom.om.impl.dom.NamespaceImpl("anyURI", "prefix"), > new org.apache.axiom.om.impl.OMNamespaceImpl("anyURI", "prefix")); > assertEquals( > new org.apache.axiom.om.impl.OMNamespaceImpl("anyURI", "prefix"), > new org.apache.axiom.om.impl.dom.NamespaceImpl("anyURI", "prefix")); > assertEquals( > new org.apache.axiom.om.impl.dom.NamespaceImpl("anyURI").hashCode(), > new org.apache.axiom.om.impl.dom.NamespaceImpl("anyURI").hashCode()); > assertEquals( > new org.apache.axiom.om.impl.dom.NamespaceImpl("anyURI", "prefix").hashCode(), > new org.apache.axiom.om.impl.dom.NamespaceImpl("anyURI", "prefix").hashCode()); > assertEquals( > new org.apache.axiom.om.impl.OMNamespaceImpl("anyURI", "prefix").hashCode(), > new org.apache.axiom.om.impl.OMNamespaceImpl("anyURI", "prefix").hashCode()); > } > } > Patch: add > public int hashCode() { > return uri.hashCode() ^ (prefix != null ? prefix.hashCode() : 0); > } -- 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: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Mon Apr 02 17:52:02 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 25241 invoked from network); 2 Apr 2007 17:52:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2007 17:52:02 -0000 Received: (qmail 79622 invoked by uid 500); 2 Apr 2007 17:52:09 -0000 Delivered-To: belljames@example.org Received: (qmail 79609 invoked by uid 500); 2 Apr 2007 17:52:09 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 79600 invoked by uid 99); 2 Apr 2007 17:52:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 10:52:09 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 10:52:01 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id D1C1F1A9838; Mon, 2 Apr 2007 10:51:40 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r524854 - in /webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi: Policy.java PolicyReference.java PolicyRegistryImpl.java Date: Mon, 02 Apr 2007 17:51:40 -0000 To: belljames@example.org From: belljames@example.org X-Mailer: svnmailer-1.1.0 Message-Id: <belljames@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sanka Date: Mon Apr 2 10:51:39 2007 New Revision: 524854 URL: http://svn.apache.org/viewvc?view=rev&rev=524854 Log: Fixed: WSCOMMONS-178 (Applied the patch - thanks Saminda) Modified: webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/Policy.java webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyReference.java webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyRegistryImpl.java Modified: webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/Policy.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/Policy.java?view=diff&rev=524854&r1=524853&r2=524854 ============================================================================== --- webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/Policy.java (original) +++ webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/Policy.java Mon Apr 2 10:51:39 2007 @@ -102,32 +102,48 @@ Constants.URI_POLICY_NS); QName key; - String prefix; + + String prefix = null; + String namespaceURI = null; + String localName = null; HashMap prefix2ns = new HashMap(); for (Iterator iterator = getAttributes().keySet().iterator(); iterator .hasNext();) { + key = (QName) iterator.next(); - - prefix = writer.getPrefix(key.getNamespaceURI()); - if (prefix == null) { - prefix = key.getPrefix(); - - if (prefix != null) { - writer.setPrefix(prefix, key.getNamespaceURI()); + localName = key.getLocalPart(); + + namespaceURI = key.getNamespaceURI(); + namespaceURI = (namespaceURI == null || namespaceURI.length() == 0) ? null : namespaceURI; + + if (namespaceURI != null) { + + String writerPrefix = writer.getPrefix(namespaceURI); + writerPrefix = (writerPrefix == null || writerPrefix.length() == 0) ? null : writerPrefix; + + if (writerPrefix == null) { + prefix = key.getPrefix(); + prefix = (prefix == null || prefix.length() == 0) ? null : prefix; + + } else { + prefix = writerPrefix; } - } - - if (prefix != null) { - writer.writeAttribute(prefix, key.getNamespaceURI(), key - .getLocalPart(), getAttribute(key)); - prefix2ns.put(prefix, key.getNamespaceURI()); + + if (prefix != null) { + writer.writeAttribute(prefix, namespaceURI, localName, getAttribute(key)); + prefix2ns.put(prefix, key.getNamespaceURI()); + } else { + writer.writeAttribute(namespaceURI, localName, getAttribute(key)); + } + } else { - writer.writeAttribute(key.getNamespaceURI(), - key.getLocalPart(), getAttribute(key)); + writer.writeAttribute(localName, getAttribute(key)); } + + } // writes xmlns:wsp=".." Modified: webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyReference.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyReference.java?view=diff&rev=524854&r1=524853&r2=524854 ============================================================================== --- webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyReference.java (original) +++ webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyReference.java Mon Apr 2 10:51:39 2007 @@ -42,7 +42,16 @@ } public boolean equal(PolicyComponent policyComponent) { - throw new UnsupportedOperationException("TODO"); + if (Constants.TYPE_POLICY_REF != policyComponent.getType()) { + return false; + } + + String URI = ((PolicyReference) policyComponent).getURI(); + if (URI != null && URI.length() != 0) { + return URI.equals(this.uri); + } + + return false; } Modified: webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyRegistryImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyRegistryImpl.java?view=diff&rev=524854&r1=524853&r2=524854 ============================================================================== --- webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyRegistryImpl.java (original) +++ webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyRegistryImpl.java Mon Apr 2 10:51:39 2007 @@ -57,4 +57,12 @@ public void remove(String key) { reg.remove(key); } + + public void setParent(PolicyRegistry parent) { + this.parent = parent; + } + + public PolicyRegistry getParent() { + return parent; + } } --------------------------------------------------------------------- To unsubscribe, e-mail: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Mon Apr 02 17:53:56 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 25767 invoked from network); 2 Apr 2007 17:53:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2007 17:53:56 -0000 Received: (qmail 81278 invoked by uid 500); 2 Apr 2007 17:54:01 -0000 Delivered-To: belljames@example.org Received: (qmail 81169 invoked by uid 500); 2 Apr 2007 17:54:01 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 81148 invoked by uid 99); 2 Apr 2007 17:54:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 10:54:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 10:53:52 -0700 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id AB9C3714068 for <belljames@example.org>; Mon, 2 Apr 2007 10:53:32 -0700 (PDT) Message-ID: <18836316.1175536412699.JavaMail.jira@brutus> Date: Mon, 2 Apr 2007 10:53:32 -0700 (PDT) From: "Sanka Samaranayake (JIRA)" <belljames@example.org> To: belljames@example.org Subject: [jira] Resolved: (WSCOMMONS-178) Policy.serialize(XMLStreamWriter writer) has a bug in serializing. In-Reply-To: <24345063.1173881589424.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/WSCOMMONS-178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sanka Samaranayake resolved WSCOMMONS-178. ------------------------------------------ Resolution: Fixed Applied the patch with minor adjustments. (Committed revision 524854.) Thanks Saminda --Sanka > Policy.serialize(XMLStreamWriter writer) has a bug in serializing. > ------------------------------------------------------------------ > > Key: WSCOMMONS-178 > URL: https://issues.apache.org/jira/browse/WSCOMMONS-178 > Project: WS-Commons > Issue Type: Bug > Components: Policy > Environment: Any > Reporter: Saminda Wishwajith Abeyruwan > Priority: Blocker > Attachments: diff.txt > > > public void serialize(XMLStreamWriter writer) throws XMLStreamException, does not serialize the policy object properly when different Stax implementations are used. I've tried to use Policy with Axis2 in Weblogic environment and it did not serialize the policy object, where as stax-api and wstx-asl serialize it properly. When i dig thorough, this misbehavior due to different implementations of stax. Thus, in order to cope with both environments, I've modified the serialize logic and attached the patch herewith. Please review it and apply it. -- 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: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Mon Apr 02 17:58:11 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 28320 invoked from network); 2 Apr 2007 17:58:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2007 17:58:11 -0000 Received: (qmail 89790 invoked by uid 500); 2 Apr 2007 17:58:18 -0000 Delivered-To: belljames@example.org Received: (qmail 89777 invoked by uid 500); 2 Apr 2007 17:58:18 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 89767 invoked by uid 99); 2 Apr 2007 17:58:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 10:58:18 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of belljames@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ug-out-1314.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 10:58:09 -0700 Received: by ug-out-1314.google.com with SMTP id j40so10668ugd for <belljames@example.org>; Mon, 02 Apr 2007 10:57:47 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=PtubWREH42Mfg11Dd1xM6DIec50BSgq7FzoY0i9OC/vAOLKHmYpV0Z40THk8+4UVRK4r3UBnJROaq54p6Z0rFZyvQq4zRiQJGHf3pgI7Cd19+DNMrZ9UOfb/td93LAruZ3YVfiJBpkDg1RmX4EKqYtZisxm131YZ7UQnlQJzHwQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=dza79ESezSnO1npZ2eqc0XR8N//baTVO5WAAMfCh66iwaxU6+fUfoYIdcOGKD60OuYMfzSDhCLc1AO9oBy6x45lcwxT1sSRDN5IYy8J0uN5wIuGs8bhNpwwFglmRhGS+lOJP7e+afhAk7QUs5awo8Ymq7sR0gzsClDDRyRoJg0M= Received: by 83.161.120.155 with SMTP id c1mr1934912wag.1175536665821; Mon, 02 Apr 2007 10:57:45 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 2 Apr 2007 10:57:45 -0700 (PDT) Message-ID: <belljames@example.org> Date: Mon, 2 Apr 2007 17:57:45 +0000 From: "Sanka Samaranayake" <belljames@example.org> To: belljames@example.org Subject: [VOTE][Neethi] Neethi-2.0.1 Release MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_130835_3327672.1175536665692" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_130835_3327672.1175536665692 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello Everyone, Can we do a Neethi-2.0.1 release prior to Axis2-1.2 ? (The latest codebase contain few minor fixes for serialization over Neethi-2.0) Thanks, Sanka -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/ ------=_Part_130835_3327672.1175536665692-- From commonsbelljames@example.org Mon Apr 02 17:59:25 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 29366 invoked from network); 2 Apr 2007 17:59:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2007 17:59:25 -0000 Received: (qmail 93511 invoked by uid 500); 2 Apr 2007 17:59:32 -0000 Delivered-To: belljames@example.org Received: (qmail 93496 invoked by uid 500); 2 Apr 2007 17:59:32 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 93487 invoked by uid 99); 2 Apr 2007 17:59:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 10:59:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of belljames@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wr-out-0506.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 10:59:24 -0700 Received: by wr-out-0506.google.com with SMTP id i30so1441047wra for <belljames@example.org>; Mon, 02 Apr 2007 10:59:03 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AJYNElbdLBzjXE+YtXjEjG1Micdo5Ij7+V0CD5RYtW46ECiyQyoKz2D1vStfOs5SpfWCfnBLEFcfnWpRGTXm+rBSpmunZSXzrXnmVS9iN+xWIfaEnPnCoC5++4/TlfO8s71vi8G6BF0H5IEacLIGGwFP1DeVD41TejKAqwJbOpg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YRxMvXW9VNwrWRW7FCX76tVvY2FwLlG5v4YacVMwpaRgIwMvs/LE/CfdniMz56c9/3jiEC/fx8Q+gTZ/3Z7LqRyEgUADnhmWlmn2QKLQ+YFMICnNiA4Mmgxq+dhdWM8ddLL7buHotSQssgT/2gIs35tbeZrRitizzkGMAuUMRr4= Received: by 83.161.120.155 with SMTP id u2mr1900926wal.1175536743349; Mon, 02 Apr 2007 10:59:03 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 2 Apr 2007 10:59:03 -0700 (PDT) Message-ID: <belljames@example.org> Date: Mon, 2 Apr 2007 13:59:03 -0400 From: "Davanum Srinivas" <belljames@example.org> Reply-To: belljames@example.org To: belljames@example.org Subject: Re: [VOTE][Neethi] Neethi-2.0.1 Release In-Reply-To: <belljames@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <belljames@example.org> X-Virus-Checked: Checked by ClamAV on apache.org +1 from me. -- dims On 4/2/07, Sanka Samaranayake <belljames@example.org> wrote: > Hello Everyone, > > Can we do a Neethi-2.0.1 release prior to Axis2-1.2 ? > > (The latest codebase contain few minor fixes for serialization over > Neethi-2.0) > > Thanks, > Sanka > > -- > Sanka Samaranayake > WSO2 Inc. > > http://sankas.blogspot.com/ > http://www.wso2.org/ > -- Davanum Srinivas 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 http://wso2.org/ 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 Oxygen for Web Services Developers --------------------------------------------------------------------- To unsubscribe, e-mail: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Mon Apr 02 19:42:01 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 81436 invoked from network); 2 Apr 2007 19:42:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2007 19:42:01 -0000 Received: (qmail 73733 invoked by uid 500); 2 Apr 2007 19:42:08 -0000 Delivered-To: belljames@example.org Received: (qmail 73719 invoked by uid 500); 2 Apr 2007 19:42:08 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 73710 invoked by uid 99); 2 Apr 2007 19:42:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 12:42:08 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 12:41:59 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id D18641A9838; Mon, 2 Apr 2007 12:41:39 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r524902 - in /webservices/commons/trunk/modules/axiom/modules: axiom-api/src/main/java/org/apache/axiom/attachments/ axiom-api/src/main/java/org/apache/axiom/om/impl/builder/ axiom-api/src/main/java/org/apache/axiom/om/impl/traverse/ axiom-... Date: Mon, 02 Apr 2007 19:41:38 -0000 To: belljames@example.org From: belljames@example.org X-Mailer: svnmailer-1.1.0 Message-Id: <belljames@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gdaniels Date: Mon Apr 2 12:41:37 2007 New Revision: 524902 URL: http://svn.apache.org/viewvc?view=rev&rev=524902 Log: * Fix https://issues.apache.org/jira/browse/WSCOMMONS-188 * Add tests * Correct bad MTOM test data (using incorrect namespace which wasn't noticed because of case-insensitive comparison) * Add an option for OMChildrenWithSpecificAttributeIterator (love those concise classnames) to do case-insensitive comparisons for attribute values, default to false. * Implement relay attribute get/set for SOAP 1.2, and a test for same. * Bits and pieces of code cleanup Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/XOPAwareStAXOMBuilder.java webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/traverse/OMChildrenWithSpecificAttributeIterator.java webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAP12Constants.java webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/impl/builder/MTOMStAXSOAPModelBuilder.java webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java webservices/commons/trunk/modules/axiom/modules/axiom-dom/test/org/apache/axiom/om/impl/dom/NamespaceTest.java webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTest.java webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/mtom/ImageMTOMOut.bin webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/mtom/MTOMBuilderTestIn.txt webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/soap/soap12message.xml Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java Mon Apr 2 12:41:37 2007 @@ -381,7 +381,7 @@ public Set getContentIDSet() { DataHandler dataHandler; - while (!noStreams & true) { + while (!noStreams) { dataHandler = this.getNextPartDataHandler(); if (dataHandler == null) { break; @@ -482,7 +482,7 @@ boundary, this); int count = 0; do { - int len = 0; + int len; int off = 0; int rem = fileStorageThreshold; while ((len = partStream.read(buffer, off, rem)) > 0) { Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXOMBuilder.java Mon Apr 2 12:41:37 2007 @@ -106,9 +106,8 @@ * Init() *must* be called after creating the builder using this constructor. * * @param inStream - instream which contains the XML - * @throws XMLStreamException */ - public StAXOMBuilder() throws XMLStreamException { + public StAXOMBuilder() { super(); } @@ -358,7 +357,7 @@ if (namespaceURI != null && namespaceURI.length() > 0) { OMNamespace namespace = node.findNamespace(namespaceURI, prefix); - if (namespace == null || namespace.getPrefix() != prefix) { + if (namespace == null || (!namespace.getPrefix().equals(prefix))) { if (prefix == null || "".equals(prefix)) { namespace = node.declareDefaultNamespace(namespaceURI); } else { Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/XOPAwareStAXOMBuilder.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/XOPAwareStAXOMBuilder.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/XOPAwareStAXOMBuilder.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/XOPAwareStAXOMBuilder.java Mon Apr 2 12:41:37 2007 @@ -106,9 +106,8 @@ String elementName = parser.getLocalName(); String namespaceURI = parser.getNamespaceURI(); - if (MTOMConstants.XOP_INCLUDE.equalsIgnoreCase(elementName) - && MTOMConstants.XOP_NAMESPACE_URI - .equalsIgnoreCase(namespaceURI)) { + if (MTOMConstants.XOP_INCLUDE.equals(elementName) + && MTOMConstants.XOP_NAMESPACE_URI.equals(namespaceURI)) { OMText node; String contentID = ElementHelper.getContentID(parser, getDocument() .getCharsetEncoding()); Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/traverse/OMChildrenWithSpecificAttributeIterator.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/traverse/OMChildrenWithSpecificAttributeIterator.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/traverse/OMChildrenWithSpecificAttributeIterator.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/traverse/OMChildrenWithSpecificAttributeIterator.java Mon Apr 2 12:41:37 2007 @@ -34,6 +34,8 @@ /** Field detach */ private boolean detach; + private boolean doCaseSensitiveValueChecks = true; + /** * Constructor OMChildrenWithSpecificAttributeIterator. * @@ -52,6 +54,10 @@ this.detach = detach; } + public void setCaseInsensitiveValueChecks(boolean val) { + doCaseSensitiveValueChecks = val; + } + /** * Method hasNext. * @@ -74,8 +80,9 @@ OMAttribute attr = ((OMElement) currentChild).getAttribute( attributeName); - if ((attr != null) - && attr.getAttributeValue().equalsIgnoreCase(attributeValue)) { + if ((attr != null) && (doCaseSensitiveValueChecks ? + attr.getAttributeValue().equals(attributeValue) : + attr.getAttributeValue().equalsIgnoreCase(attributeValue))) { isMatchingNodeFound = true; needToMoveForward = false; } else { Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAP12Constants.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAP12Constants.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAP12Constants.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAP12Constants.java Mon Apr 2 12:41:37 2007 @@ -73,6 +73,7 @@ // QNames static final QName QNAME_ROLE = new QName(SOAP_ENVELOPE_NAMESPACE_URI, SOAP_ROLE); + static final QName QNAME_RELAY = new QName(SOAP_ENVELOPE_NAMESPACE_URI, SOAP_RELAY); static final QName QNAME_MU_FAULTCODE = new QName(SOAP_ENVELOPE_NAMESPACE_URI, FAULT_CODE_MUST_UNDERSTAND); static final QName QNAME_SENDER_FAULTCODE = new QName(SOAP_ENVELOPE_NAMESPACE_URI, Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/impl/builder/MTOMStAXSOAPModelBuilder.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/impl/builder/MTOMStAXSOAPModelBuilder.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/impl/builder/MTOMStAXSOAPModelBuilder.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/impl/builder/MTOMStAXSOAPModelBuilder.java Mon Apr 2 12:41:37 2007 @@ -27,8 +27,6 @@ import org.apache.axiom.om.impl.builder.XOPBuilder; import org.apache.axiom.om.util.ElementHelper; import org.apache.axiom.soap.SOAPFactory; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import javax.activation.DataHandler; import javax.xml.stream.XMLStreamReader; @@ -39,8 +37,6 @@ /** <code>Attachments</code> handles deferred parsing of incoming MIME Messages. */ Attachments attachments; - private Log log = LogFactory.getLog(getClass()); - int partIndex = 0; public MTOMStAXSOAPModelBuilder(XMLStreamReader parser, @@ -72,8 +68,7 @@ String namespaceURI = parser.getNamespaceURI(); // create an OMBlob if the element is an <xop:Include> - if (XOP_INCLUDE.equalsIgnoreCase(elementName) - && XOP_NAMESPACE_URI.equalsIgnoreCase(namespaceURI)) { + if (XOP_INCLUDE.equals(elementName) && XOP_NAMESPACE_URI.equals(namespaceURI)) { elementLevel++; OMText node; String contentID = ElementHelper.getContentID(parser, getDocument() @@ -83,8 +78,7 @@ throw new OMException( "XOP:Include element is not supported here"); } else if (lastNode.isComplete() & lastNode.getParent() != null) { - node = omfactory.createOMText(contentID, (OMElement) lastNode - .getParent(), this); + node = omfactory.createOMText(contentID, lastNode.getParent(), this); ((OMNodeEx) lastNode).setNextOMSibling(node); ((OMNodeEx) node).setPreviousOMSibling(lastNode); } else { Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java Mon Apr 2 12:41:37 2007 @@ -808,8 +808,7 @@ if (prefix == null || "".equals(prefix)) { Iterator namespaceListIterator = namespaces.values().iterator(); while (namespaceListIterator.hasNext()) { - OMNamespace omNamespace = (OMNamespace) namespaceListIterator - .next(); + OMNamespace omNamespace = (OMNamespace) namespaceListIterator.next(); String nsURI = omNamespace.getNamespaceURI(); if (nsURI != null && nsURI.equals(uri)) { return omNamespace; @@ -818,7 +817,7 @@ } else { OMNamespace namespace = (OMNamespace) namespaces.get(prefix); - if (namespace != null && uri.equalsIgnoreCase(namespace.getNamespaceURI())) { + if (namespace != null && uri.equals(namespace.getNamespaceURI())) { return namespace; } } Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java Mon Apr 2 12:41:37 2007 @@ -186,8 +186,7 @@ SOAPHeaderBlock soapHeaderBlock = (SOAPHeaderBlock) o; String role = soapHeaderBlock.getRole(); boolean mustUnderstand = soapHeaderBlock.getMustUnderstand(); - if ((role != null) && role.equalsIgnoreCase(actor) && - mustUnderstand) { + if ((role != null) && role.equals(actor) && mustUnderstand) { mustUnderstandHeadersWithGivenActor.add(soapHeaderBlock); } } Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/test/org/apache/axiom/om/impl/dom/NamespaceTest.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/test/org/apache/axiom/om/impl/dom/NamespaceTest.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-dom/test/org/apache/axiom/om/impl/dom/NamespaceTest.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/test/org/apache/axiom/om/impl/dom/NamespaceTest.java Mon Apr 2 12:41:37 2007 @@ -1,6 +1,10 @@ package org.apache.axiom.om.impl.dom; import junit.framework.TestCase; +import org.apache.axiom.om.OMFactory; +import org.apache.axiom.om.OMNamespace; +import org.apache.axiom.om.OMElement; +import org.apache.axiom.om.impl.dom.factory.OMDOMFactory; /* * Copyright 2007 The Apache Software Foundation. * @@ -39,5 +43,16 @@ URI2 = URI2 + "testuri1"; // Make sure the strings don't intern to the same place assertTrue(ns1.equals(URI2, "")); assertTrue(ns1.equals(ns2)); + } + + public void testSearch() throws Exception { + String NSURI = "http://testns"; + String NSURI_UPPER = "HTTP://TESTNS"; + + OMFactory fac = new OMDOMFactory(); + OMNamespace ns = new NamespaceImpl(NSURI); + OMElement el = fac.createOMElement("foo", null); + el.declareNamespace(NSURI, "p"); + assertNull(el.findNamespace(NSURI_UPPER, "p")); } } Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java Mon Apr 2 12:41:37 2007 @@ -424,7 +424,7 @@ } } else { OMNamespace namespace = (OMNamespace) namespaces.get(prefix); - if (namespace != null && uri.equalsIgnoreCase(namespace.getNamespaceURI())) { + if (namespace != null && uri.equals(namespace.getNamespaceURI())) { return namespace; } } Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java Mon Apr 2 12:41:37 2007 @@ -112,7 +112,7 @@ * <CODE>SOAPHeaderBlock</CODE> object is turned on; <CODE>false</CODE> otherwise */ public boolean getMustUnderstand() throws SOAPProcessingException { - String mustUnderstand = ""; + String mustUnderstand; if ((mustUnderstand = getAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI)) @@ -138,12 +138,10 @@ } - //TODO : implement public void setRelay(boolean relay) { throw new UnsupportedOperationException("Not supported for SOAP 1.1"); } - //TODO : implement public boolean getRelay() { throw new UnsupportedOperationException("Not supported for SOAP 1.1"); } Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java Mon Apr 2 12:41:37 2007 @@ -19,16 +19,16 @@ import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMNamespace; import org.apache.axiom.om.OMXMLParserWrapper; -import org.apache.axiom.soap.SOAP12Constants; import org.apache.axiom.soap.SOAPConstants; import org.apache.axiom.soap.SOAPFactory; import org.apache.axiom.soap.SOAPHeader; import org.apache.axiom.soap.SOAPProcessingException; import org.apache.axiom.soap.SOAPVersion; import org.apache.axiom.soap.SOAP12Version; +import org.apache.axiom.soap.SOAP12Constants; import org.apache.axiom.soap.impl.llom.SOAPHeaderBlockImpl; -public class SOAP12HeaderBlockImpl extends SOAPHeaderBlockImpl { +public class SOAP12HeaderBlockImpl extends SOAPHeaderBlockImpl implements SOAP12Constants { public SOAP12HeaderBlockImpl(String localName, OMNamespace ns, SOAPFactory factory) { @@ -76,22 +76,18 @@ } public void setRole(String roleURI) { - setAttribute(SOAP12Constants.SOAP_ROLE, - roleURI, - SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); + setAttribute(SOAP_ROLE, roleURI, SOAP_ENVELOPE_NAMESPACE_URI); } public String getRole() { - return getAttribute(SOAP12Constants.SOAP_ROLE, - SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); - + return getAttributeValue(QNAME_ROLE); } public void setMustUnderstand(boolean mustUnderstand) { setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, mustUnderstand ? SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE : SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE, - SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); + SOAP_ENVELOPE_NAMESPACE_URI); } @@ -103,7 +99,7 @@ SOAPConstants.ATTR_MUSTUNDERSTAND_1.equals(mustUnderstand)) { setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, mustUnderstand, - SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); + SOAP_ENVELOPE_NAMESPACE_URI); } else { throw new SOAPProcessingException( "mustUndertand should be one of \"true\", " + @@ -112,20 +108,14 @@ } public boolean getMustUnderstand() throws SOAPProcessingException { - String mustUnderstand = ""; - if ((mustUnderstand = - getAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, - SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI)) + String mustUnderstand; + if ((mustUnderstand = getAttribute(ATTR_MUSTUNDERSTAND, SOAP_ENVELOPE_NAMESPACE_URI)) != null) { - if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase( - mustUnderstand) || - SOAPConstants.ATTR_MUSTUNDERSTAND_1.equalsIgnoreCase( - mustUnderstand)) { + if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase(mustUnderstand) || + SOAPConstants.ATTR_MUSTUNDERSTAND_1.equalsIgnoreCase(mustUnderstand)) { return true; - } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equalsIgnoreCase( - mustUnderstand) || - SOAPConstants.ATTR_MUSTUNDERSTAND_0.equalsIgnoreCase( - mustUnderstand)) { + } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equalsIgnoreCase(mustUnderstand) || + SOAPConstants.ATTR_MUSTUNDERSTAND_0.equalsIgnoreCase(mustUnderstand)) { return false; } else { throw new SOAPProcessingException( @@ -138,14 +128,17 @@ } - //TODO : implement public void setRelay(boolean relay) { - throw new UnsupportedOperationException("Not supported for SOAP 1.1"); + setAttribute(SOAP_RELAY, relay ? "true" : "false", SOAP_ENVELOPE_NAMESPACE_URI); } - //TODO : implement public boolean getRelay() { - throw new UnsupportedOperationException("Not supported for SOAP 1.1"); + boolean ret = false; + String val = getAttributeValue(QNAME_RELAY); + if (val != null) { + ret = "true".equalsIgnoreCase(val); + } + return ret; } /** Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTest.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTest.java?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTest.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTest.java Mon Apr 2 12:41:37 2007 @@ -16,6 +16,8 @@ package org.apache.axiom.soap; +import org.apache.axiom.om.OMNamespace; + import java.util.Iterator; public class SOAPHeaderBlockTest extends SOAPHeaderTestCase { @@ -222,11 +224,24 @@ assertFalse( "SOAP 1.2 HeaderBlock Test With Parser : - getMustUnderstand method returns incorrect value", soap12HeaderBlock2WithParser.getMustUnderstand()); - try { - soap12HeaderBlock3WithParser.getMustUnderstand(); - } catch (Exception e) { - fail( - "SOAP 1.2 HeaderBlock Test With Parser : - getMustUnderstand method should returns exception when mustunderstand value is incorrect"); - } + soap12HeaderBlock3WithParser.getMustUnderstand(); + } + + public void testRelayAttribute() throws Exception { + assertFalse(soap12HeaderBlock1WithParser.getRelay()); + assertTrue(soap12HeaderBlock2WithParser.getRelay()); + assertFalse(soap12HeaderBlock3WithParser.getRelay()); + + SOAPEnvelope env = soap12Factory.createSOAPEnvelope(); + SOAPHeader header = soap12Factory.createSOAPHeader(env); + soap12Factory.createSOAPBody(env); + OMNamespace ns = soap12Factory.createOMNamespace("http://ns1", "ns1"); + SOAPHeaderBlock relayHeader = header.addHeaderBlock("foo", ns); + relayHeader.setText("hey there"); + relayHeader.setRelay(true); + + String envString = env.toString(); + assertTrue("No relay header after setRelay(true)", + envString.indexOf("relay=\"true\"") >= 0); } } Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/mtom/ImageMTOMOut.bin URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/mtom/ImageMTOMOut.bin?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== Binary files - no diff available. Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/mtom/MTOMBuilderTestIn.txt URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/mtom/MTOMBuilderTestIn.txt?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/mtom/MTOMBuilderTestIn.txt (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/mtom/MTOMBuilderTestIn.txt Mon Apr 2 12:41:37 2007 @@ -3,7 +3,7 @@ Content-Transfer-Encoding: 8bit Content-ID: SOAPPart -<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><m:data xmlns:m="http://www.example.org/stuff"><m:name m:contentType="text/plain"><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/Include" href="cid:-1609420109260943731"></xop:Include></m:name></m:data></soapenv:Body></soapenv:Envelope> +<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><m:data xmlns:m="http://www.example.org/stuff"><m:name m:contentType="text/plain"><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:-1609420109260943731"></xop:Include></m:name></m:data></soapenv:Body></soapenv:Envelope> ------=_AxIs2_Def_boundary_=42214532 Content-Transfer-Encoding: binary Content-ID: -1609420109260943731 Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/soap/soap12message.xml URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/soap/soap12message.xml?view=diff&rev=524902&r1=524901&r2=524902 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/soap/soap12message.xml (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/test-resources/soap/soap12message.xml Mon Apr 2 12:41:37 2007 @@ -2,13 +2,13 @@ <env:Header> <test:echoOk xmlns:test="http://example.org/ts-tests" env:role="http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver" - env:mustUnderstand="true" + env:mustUnderstand="true" env:relay="false" env:anyAttribute="any value"> foo </test:echoOk> <test1:echoOk1 xmlns:test1="http://example1.org/ts-tests" env:role="http://www.w3.org/2003/05/soap-envelope/role/next" - env:mustUnderstand="false" + env:mustUnderstand="false" env:relay="true" env:anyAttribute="any value"> foo </test1:echoOk1> --------------------------------------------------------------------- To unsubscribe, e-mail: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Mon Apr 02 20:14:20 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 932 invoked from network); 2 Apr 2007 20:14:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2007 20:14:18 -0000 Received: (qmail 38257 invoked by uid 500); 2 Apr 2007 20:14:26 -0000 Delivered-To: belljames@example.org Received: (qmail 38155 invoked by uid 500); 2 Apr 2007 20:14:26 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 38146 invoked by uid 99); 2 Apr 2007 20:14:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 13:14:25 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 13:14:18 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 982361A9838; Mon, 2 Apr 2007 13:13:57 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r524912 - in /webservices/commons/trunk/modules/axiom/modules: axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/ axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/ axiom-impl/src/main/java/org/apache/axiom/soap/impl... Date: Mon, 02 Apr 2007 20:13:56 -0000 To: belljames@example.org From: belljames@example.org X-Mailer: svnmailer-1.1.0 Message-Id: <belljames@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gdaniels Date: Mon Apr 2 13:13:54 2007 New Revision: 524912 URL: http://svn.apache.org/viewvc?view=rev&rev=524912 Log: Missed a few! Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java?view=diff&rev=524912&r1=524911&r2=524912 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java Mon Apr 2 13:13:54 2007 @@ -125,15 +125,11 @@ getAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI)) != null) { - if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase( - mustUnderstand) || - SOAPConstants.ATTR_MUSTUNDERSTAND_1.equalsIgnoreCase( - mustUnderstand)) { + if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equals(mustUnderstand) || + SOAPConstants.ATTR_MUSTUNDERSTAND_1.equals(mustUnderstand)) { return true; - } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equalsIgnoreCase( - mustUnderstand) || - SOAPConstants.ATTR_MUSTUNDERSTAND_0.equalsIgnoreCase( - mustUnderstand)) { + } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equals(mustUnderstand) || + SOAPConstants.ATTR_MUSTUNDERSTAND_0.equals(mustUnderstand)) { return false; } else { throw new SOAPProcessingException( Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java?view=diff&rev=524912&r1=524911&r2=524912 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java Mon Apr 2 13:13:54 2007 @@ -104,20 +104,16 @@ } public boolean getMustUnderstand() throws SOAPProcessingException { - String mustUnderstand = ""; + String mustUnderstand; if ((mustUnderstand = getAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI)) != null) { - if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase( - mustUnderstand) || - SOAPConstants.ATTR_MUSTUNDERSTAND_1.equalsIgnoreCase( - mustUnderstand)) { + if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equals(mustUnderstand) || + SOAPConstants.ATTR_MUSTUNDERSTAND_1.equals(mustUnderstand)) { return true; - } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equalsIgnoreCase( - mustUnderstand) || - SOAPConstants.ATTR_MUSTUNDERSTAND_0.equalsIgnoreCase( - mustUnderstand)) { + } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equals(mustUnderstand) || + SOAPConstants.ATTR_MUSTUNDERSTAND_0.equals(mustUnderstand)) { return false; } else { throw new SOAPProcessingException( Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java?view=diff&rev=524912&r1=524911&r2=524912 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java Mon Apr 2 13:13:54 2007 @@ -117,15 +117,11 @@ getAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI)) != null) { - if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase( - mustUnderstand) || - SOAPConstants.ATTR_MUSTUNDERSTAND_1.equalsIgnoreCase( - mustUnderstand)) { + if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equals(mustUnderstand) || + SOAPConstants.ATTR_MUSTUNDERSTAND_1.equals(mustUnderstand)) { return true; - } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equalsIgnoreCase( - mustUnderstand) || - SOAPConstants.ATTR_MUSTUNDERSTAND_0.equalsIgnoreCase( - mustUnderstand)) { + } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equals(mustUnderstand) || + SOAPConstants.ATTR_MUSTUNDERSTAND_0.equals(mustUnderstand)) { return false; } else { throw new SOAPProcessingException( Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java?view=diff&rev=524912&r1=524911&r2=524912 ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java Mon Apr 2 13:13:54 2007 @@ -111,11 +111,11 @@ String mustUnderstand; if ((mustUnderstand = getAttribute(ATTR_MUSTUNDERSTAND, SOAP_ENVELOPE_NAMESPACE_URI)) != null) { - if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase(mustUnderstand) || - SOAPConstants.ATTR_MUSTUNDERSTAND_1.equalsIgnoreCase(mustUnderstand)) { + if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equals(mustUnderstand) || + SOAPConstants.ATTR_MUSTUNDERSTAND_1.equals(mustUnderstand)) { return true; - } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equalsIgnoreCase(mustUnderstand) || - SOAPConstants.ATTR_MUSTUNDERSTAND_0.equalsIgnoreCase(mustUnderstand)) { + } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equals(mustUnderstand) || + SOAPConstants.ATTR_MUSTUNDERSTAND_0.equals(mustUnderstand)) { return false; } else { throw new SOAPProcessingException( --------------------------------------------------------------------- To unsubscribe, e-mail: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Mon Apr 02 20:33:54 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 11788 invoked from network); 2 Apr 2007 20:33:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2007 20:33:53 -0000 Received: (qmail 72915 invoked by uid 500); 2 Apr 2007 20:34:01 -0000 Delivered-To: belljames@example.org Received: (qmail 72812 invoked by uid 500); 2 Apr 2007 20:34:00 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 72803 invoked by uid 99); 2 Apr 2007 20:34:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 13:34:00 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 13:33:52 -0700 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 694C4714049 for <belljames@example.org>; Mon, 2 Apr 2007 13:33:32 -0700 (PDT) Message-ID: <21860595.1175546012427.JavaMail.jira@brutus> Date: Mon, 2 Apr 2007 13:33:32 -0700 (PDT) From: "Glen Daniels (JIRA)" <belljames@example.org> To: belljames@example.org Subject: [jira] Resolved: (WSCOMMONS-188) Case-insensitivity issues In-Reply-To: <29045463.1175341466758.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/WSCOMMONS-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Glen Daniels resolved WSCOMMONS-188. ------------------------------------ Resolution: Fixed Fixed, thanks! > Case-insensitivity issues > ------------------------- > > Key: WSCOMMONS-188 > URL: https://issues.apache.org/jira/browse/WSCOMMONS-188 > Project: WS-Commons > Issue Type: Bug > Components: AXIOM > Reporter: Alexander Veit > > The following usage of equalsIgnoreCase seems to be incorrect. > CI01) org.apache.axiom.om.impl.builder.XOPAwareStAXOMBuilder#createOMElement() > - MTOMConstants.XOP_INCLUDE.equalsIgnoreCase(elementName) > the spec defines "Include" [1] > > - MTOMConstants.XOP_NAMESPACE_URI.equalsIgnoreCase(namespaceURI)) > namespace URIs are case sensitive [2] > CI02) org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder#createOMElement() > - XOP_INCLUDE.equalsIgnoreCase(elementName) > the spec defines "Include" [1] > - XOP_NAMESPACE_URI.equalsIgnoreCase(namespaceURI)) > namespace URIs are case sensitive [2] > CI03) org.apache.axiom.om.impl.dom.ElementImpl#findDeclaredNamespace(String, String) > - (namespace != null && uri.equalsIgnoreCase(namespace.getNamespaceURI())) > namespace URIs are case sensitive [2] > CI04) org.apache.axiom.soap.impl.dom.soap11.SOAP11HeaderBlockImpl#getMustUnderstand() > - SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase(mustUnderstand) > xsd:boolean literals are lower case [3] > - SOAPConstants.ATTR_MUSTUNDERSTAND_1.equalsIgnoreCase(mustUnderstand) > not applicable > - SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equalsIgnoreCase(mustUnderstand) > xsd:boolean literals are lower case [3] > - SOAPConstants.ATTR_MUSTUNDERSTAND_0.equalsIgnoreCase(mustUnderstand) > not applicable > CI05) org.apache.axiom.soap.impl.dom.soap12.SOAP12HeaderBlockImpl#getMustUnderstand() > same as CI04 > CI06) org.apache.axiom.soap.impl.dom.SOAPHeaderImpl#examineMustUnderstandHeaderBlocks(String) > - (role != null) && role.equalsIgnoreCase(actor) > namespace URIs are case sensitive [2,4] > CI07) org.apache.axiom.soap.impl.llom.soap11.SOAP11HeaderBlockImpl#getMustUnderstand() > same as CI04 > CI08) org.apache.axiom.soap.impl.llom.soap12.SOAP12HeaderBlockImpl#getMustUnderstand() > same as CI04 > [1] http://www.w3.org/2004/08/xop/include > [2] http://www.w3.org/TR/REC-xml-names/#NSNameComparison > [3] http://www.w3.org/TR/xmlschema-2/#boolean > [4] http://www.w3.org/2003/05/soap-envelope/ -- 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: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Tue Apr 03 02:07:24 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 33203 invoked from network); 3 Apr 2007 02:07:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2007 02:07:24 -0000 Received: (qmail 57487 invoked by uid 500); 3 Apr 2007 02:07:31 -0000 Delivered-To: belljames@example.org Received: (qmail 57466 invoked by uid 500); 3 Apr 2007 02:07:30 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 57457 invoked by uid 99); 3 Apr 2007 02:07:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 19:07:30 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of belljames@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nz-out-0506.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 19:07:21 -0700 Received: by nz-out-0506.google.com with SMTP id m7so1268692nzf for <belljames@example.org>; Mon, 02 Apr 2007 19:07:01 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nhMX3S93VbRQ2cFQ8IXUJsfy7GoZ3Ti/XZfnbhvAv78pMawBWCMWtH37exDotLNh0qlVUgowHPHKI5CjusWnIHuFMdII7BoQ0BskFFWO6O575tHX14VoTG/uTcWL1KQL82FcjCAIYgDBWKS53Xqnenpu+naIXfayYsD9B7ppRyY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cglyT/UPZ6QmTGwBiO29GpiFvozDFsurDNenFQ00xaFNuFkoTQR21l7kGGO+/MbK3GMV1IyElXZoHVaBr5GvZH4duZb84OU1hh4UmGhi/bt4PixWaHJvUuqxu2Flt2wVdtXHXp76T0B/z2n19aN93JGUlvLK546YLUrmq/NDi8M= Received: by 83.161.120.155 with SMTP id i1mr2068246wac.1175566020868; Mon, 02 Apr 2007 19:07:00 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 2 Apr 2007 19:07:00 -0700 (PDT) Message-ID: <belljames@example.org> Date: Tue, 3 Apr 2007 07:37:00 +0530 From: "Ruchith Fernando" <belljames@example.org> To: belljames@example.org Subject: Re: [VOTE][Neethi] Neethi-2.0.1 Release In-Reply-To: <belljames@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <belljames@example.org> X-Virus-Checked: Checked by ClamAV on apache.org +1 Thanks, Ruchith On 4/2/07, Sanka Samaranayake <belljames@example.org> wrote: > Hello Everyone, > > Can we do a Neethi-2.0.1 release prior to Axis2-1.2 ? > > (The latest codebase contain few minor fixes for serialization over > Neethi-2.0) > > Thanks, > Sanka > > -- > Sanka Samaranayake > WSO2 Inc. > > http://sankas.blogspot.com/ > http://www.wso2.org/ > -- www.ruchith.org www.wso2.org --------------------------------------------------------------------- To unsubscribe, e-mail: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Tue Apr 03 04:09:51 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 69003 invoked from network); 3 Apr 2007 04:09:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2007 04:09:50 -0000 Received: (qmail 99822 invoked by uid 500); 3 Apr 2007 04:09:58 -0000 Delivered-To: belljames@example.org Received: (qmail 99751 invoked by uid 500); 3 Apr 2007 04:09:57 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 99742 invoked by uid 99); 3 Apr 2007 04:09:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 21:09:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of belljames@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wx-out-0506.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 21:09:49 -0700 Received: by wx-out-0506.google.com with SMTP id h28so1505357wxd for <belljames@example.org>; Mon, 02 Apr 2007 21:09:28 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=ZbG4djTe0VthFnQDiFrX7I2AITdjQ11dymsTA2N7r+WgogOXkqa3C56bYDkySbBRFetVPZfzwdhgCopA5jjDw6c73Ed10r68tJZW+KNuOo1oRwp5xxEQJ/mjeOXGg3crhwgxYqIAeoC7MrMmG0/0GlrOeVeEEnq5iJ3Zq8XTSFs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=jeJiapaQMYoXV441Q0dYmrHRKe2futUg3EvDm9QiUpx7Mh+ZymE9y3N/qtG1CO8T/jCiAjTsrvLt2ZDDs0e8N1TO//ADFiD+kuuBT305KbjKSkrTFeZZr91/TcCuU91hqh1PS7Far9BPOF/Wwq7hxjGC+EP7e45Op4sFkDOlyG0= Received: by 83.161.120.155 with SMTP id 1mr2102821wam.1175573368095; Mon, 02 Apr 2007 21:09:28 -0700 (PDT) Received: from ?83.161.120.155? ( [83.161.120.155]) by mx.google.com with ESMTP id m29sm275180poh.283.161.120.155.09.24; Mon, 02 Apr 2007 21:09:27 -0700 (PDT) Message-ID: <belljames@example.org> Date: Tue, 03 Apr 2007 09:39:15 +0530 From: Deepal jayasinghe <belljames@example.org> User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: belljames@example.org Subject: Re: [VOTE][Neethi] Neethi-2.0.1 Release References: <belljames@example.org> <belljames@example.org> In-Reply-To: <belljames@example.org> X-Enigmail-Version: 83.161.120.155 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org +1 Thanks Deepal > +1 > > Thanks, > Ruchith > > On 4/2/07, Sanka Samaranayake <belljames@example.org> wrote: > >> Hello Everyone, >> >> Can we do a Neethi-2.0.1 release prior to Axis2-1.2 ? >> >> (The latest codebase contain few minor fixes for serialization over >> Neethi-2.0) >> >> Thanks, >> Sanka >> >> -- >> Sanka Samaranayake >> WSO2 Inc. >> >> http://sankas.blogspot.com/ >> http://www.wso2.org/ >> > > -- Thanks, Deepal ................................................................ "The highest tower is built one brick at a time" --------------------------------------------------------------------- To unsubscribe, e-mail: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Tue Apr 03 05:53:14 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 94523 invoked from network); 3 Apr 2007 05:53:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2007 05:53:13 -0000 Received: (qmail 12935 invoked by uid 500); 3 Apr 2007 05:53:16 -0000 Delivered-To: belljames@example.org Received: (qmail 12905 invoked by uid 500); 3 Apr 2007 05:53:16 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 12870 invoked by uid 99); 3 Apr 2007 05:53:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 22:53:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO relay00.pair.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 02 Apr 2007 22:53:06 -0700 Received: (qmail 45385 invoked by uid 0); 3 Apr 2007 05:52:44 -0000 Received: from 83.161.120.155 (HELO ?83.161.120.155?) (83.161.120.155) by relay00.pair.com with SMTP; 3 Apr 2007 05:52:44 -0000 X-pair-Authenticated: 83.161.120.155 Message-ID: <belljames@example.org> Date: Tue, 03 Apr 2007 01:52:43 -0400 From: Eran Chinthaka <belljames@example.org> User-Agent: Thunderbird 83.161.120.155 (X11/20070221) MIME-Version: 1.0 To: belljames@example.org CC: belljames@example.org Subject: Re: [axiom] [axis2] getChildrenWithName() erroneous behavior References: <belljames@example.org> In-Reply-To: <belljames@example.org> X-Enigmail-Version: 83.161.120.155 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Glen Daniels wrote: > Hi all: > > Currently OMElement.getChildrenWithName(QName) uses the > OMChildrenQNameIterator to walk the list of children and return matches. > Here's the problem - if there is no namespace (or no localName... > luckily that part isn't possible), the iterator will happily match ANY > element with a matching localName. So for instance when we do this: > > config_element.getChildrenWithName(new QName("transportSender")) > > We'll get both <axisCfg:transportSender> and > <extension:transportSender>. This is bad. The above API call SHOULD > only match <transportSender> in no namespace. I did this purposely and I wanted to get matching nodes when I am not sure about the namespace. The idea I had in mind was, say if I have a SOAP message and and if I wanted to see whether the body contains a fault, then I can use the above method without worrying about which version of SOAP I am dealing with. But if you want to clean this method and create another method, I'm ok with that too. But please please make sure we have OMElement.getChildrenWithLocalName(String). I am a poor user which needs that. Thanks, Chinthaka -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGEeurjON2uBzUhh8RAgRUAJwIm0ZvAg2a+lS+1HrtISinHivcngCcDFSo tkZktx6rum7LcbNbnklabLk= =i/C7 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Tue Apr 03 06:04:19 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 97254 invoked from network); 3 Apr 2007 06:04:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2007 06:04:17 -0000 Received: (qmail 29302 invoked by uid 500); 3 Apr 2007 06:04:21 -0000 Delivered-To: belljames@example.org Received: (qmail 29291 invoked by uid 500); 3 Apr 2007 06:04:21 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 28975 invoked by uid 99); 3 Apr 2007 06:04:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 23:04:20 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO relay02.pair.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 02 Apr 2007 23:04:11 -0700 Received: (qmail 84272 invoked by uid 0); 3 Apr 2007 06:03:49 -0000 Received: from 83.161.120.155 (HELO ?83.161.120.155?) (83.161.120.155) by relay02.pair.com with SMTP; 3 Apr 2007 06:03:49 -0000 X-pair-Authenticated: 83.161.120.155 Message-ID: <belljames@example.org> Date: Tue, 03 Apr 2007 02:03:49 -0400 From: Eran Chinthaka <belljames@example.org> User-Agent: Thunderbird 83.161.120.155 (X11/20070221) MIME-Version: 1.0 To: belljames@example.org CC: belljames@example.org Subject: Re: [Axis2]Code freeze in trunk References: <belljames@example.org> <belljames@example.org> In-Reply-To: <belljames@example.org> X-Enigmail-Version: 83.161.120.155 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Glen Daniels wrote: > Hi Deepal, all: > > I'm in the midst of a reasonably large code change to Axiom, which I > would like to check in before the release if possible. I fixed a number > of bugs, corrected some bad tests, improved SOAP version handling, and > altered the behavior of OMText to deal with QNames in a less arcane manner. Glen, if possible, can I know some more info about what you are changing in Axiom? Just curious :) Thanks, Chinthaka -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGEe5FjON2uBzUhh8RAhgWAKCER5dqgt3qJQEzTyHGV02MyxZwnQCgii2R jamqaxYCgEK9c+UaFEyDSJ8= =uVm+ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Tue Apr 03 06:51:50 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 19122 invoked from network); 3 Apr 2007 06:51:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2007 06:51:48 -0000 Received: (qmail 89451 invoked by uid 500); 3 Apr 2007 06:51:54 -0000 Delivered-To: belljames@example.org Received: (qmail 89439 invoked by uid 500); 3 Apr 2007 06:51:54 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 89423 invoked by uid 99); 3 Apr 2007 06:51:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 23:51:53 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 23:51:45 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 712F81A9838; Mon, 2 Apr 2007 23:51:25 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r525059 - in /webservices/commons/trunk/modules/axiom: README.txt RELEASE-NOTE.txt project.properties src/changes/changes.xml src/site/apt/index.apt src/site/xdoc/download.xml Date: Tue, 03 Apr 2007 06:51:25 -0000 To: belljames@example.org From: belljames@example.org X-Mailer: svnmailer-1.1.0 Message-Id: <belljames@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: deepal Date: Mon Apr 2 23:51:24 2007 New Revision: 525059 URL: http://svn.apache.org/viewvc?view=rev&rev=525059 Log: updating docs for 1.2.3 release Modified: webservices/commons/trunk/modules/axiom/README.txt webservices/commons/trunk/modules/axiom/RELEASE-NOTE.txt webservices/commons/trunk/modules/axiom/project.properties webservices/commons/trunk/modules/axiom/src/changes/changes.xml webservices/commons/trunk/modules/axiom/src/site/apt/index.apt webservices/commons/trunk/modules/axiom/src/site/xdoc/download.xml Modified: webservices/commons/trunk/modules/axiom/README.txt URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/README.txt?view=diff&rev=525059&r1=525058&r2=525059 ============================================================================== --- webservices/commons/trunk/modules/axiom/README.txt (original) +++ webservices/commons/trunk/modules/axiom/README.txt Mon Apr 2 23:51:24 2007 @@ -1,5 +1,5 @@ ====================================================== -Apache AXIOM 1.2.2 (January 09, 2007) +Apache AXIOM 1.2.3 (April 03, 2007) http://ws.apache.org/commons/axiom/ ------------------------------------------------------ Modified: webservices/commons/trunk/modules/axiom/RELEASE-NOTE.txt URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/RELEASE-NOTE.txt?view=diff&rev=525059&r1=525058&r2=525059 ============================================================================== --- webservices/commons/trunk/modules/axiom/RELEASE-NOTE.txt (original) +++ webservices/commons/trunk/modules/axiom/RELEASE-NOTE.txt Mon Apr 2 23:51:24 2007 @@ -1,7 +1,7 @@ =========================================== - Apache AXIOM 1.2.2 Release Note + Apache AXIOM 1.2.3 Release Note =========================================== @@ -37,9 +37,6 @@ What's New in This Release ========================== -This is release includes few bug fixes, specially following issues. - -WSCOMMONS-144 : Axiom having problem when serializing name spaces with null nameSpaceUri. - +This is release includes few bug fixes which are necessary for Axis2 release. - The Apache Axiom Team. Modified: webservices/commons/trunk/modules/axiom/project.properties URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/project.properties?view=diff&rev=525059&r1=525058&r2=525059 ============================================================================== --- webservices/commons/trunk/modules/axiom/project.properties (original) +++ webservices/commons/trunk/modules/axiom/project.properties Mon Apr 2 23:51:24 2007 @@ -19,7 +19,7 @@ # ------------------------------------------------------------------- # Project Information # ------------------------------------------------------------------- -axiom.version=SNAPSHOT +axiom.version=1.2.3 # ------------------------------------------------------------------- # Dependency Repositories Modified: webservices/commons/trunk/modules/axiom/src/changes/changes.xml URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/src/changes/changes.xml?view=diff&rev=525059&r1=525058&r2=525059 ============================================================================== --- webservices/commons/trunk/modules/axiom/src/changes/changes.xml (original) +++ webservices/commons/trunk/modules/axiom/src/changes/changes.xml Mon Apr 2 23:51:24 2007 @@ -1,25 +1,25 @@ -<document> - <properties> - <title>Changes in Apache Axiom</title> - </properties> - <body> - <release version="1.3" date="Not yet released"> - <action dev="jochen" type="fix" issue="WSCOMMONS-127" - due-to="Tim Putnam" due-to-email="belljames@example.org"> - The factory methods of StAXUtils didn't work with - Java 6. - </action> - <action dev="jochen" type="fix"> - The method StAXUtils.reset() wasn't synchronized and the - factory pool had no upper limit. - </action> - </release> - <release version="1.1" date="Not yet released"> - <action dev="jochen" type="add"> - Added support for Maven 2 as the build system. - </action> - </release> - <release version="1.0" date="02-Max-2006"> - </release> - </body> -</document> +<document> + <properties> + <title>Changes in Apache Axiom</title> + </properties> + <body> + <release version="1.3" date="Not yet released"> + <action dev="jochen" type="fix" issue="WSCOMMONS-127" + due-to="Tim Putnam" due-to-email="belljames@example.org"> + The factory methods of StAXUtils didn't work with + Java 6. + </action> + <action dev="jochen" type="fix"> + The method StAXUtils.reset() wasn't synchronized and the + factory pool had no upper limit. + </action> + </release> + <release version="1.1" date="Not yet released"> + <action dev="jochen" type="add"> + Added support for Maven 2 as the build system. + </action> + </release> + <release version="1.0" date="02-Max-2006"> + </release> + </body> +</document> Modified: webservices/commons/trunk/modules/axiom/src/site/apt/index.apt URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/src/site/apt/index.apt?view=diff&rev=525059&r1=525058&r2=525059 ============================================================================== --- webservices/commons/trunk/modules/axiom/src/site/apt/index.apt (original) +++ webservices/commons/trunk/modules/axiom/src/site/apt/index.apt Mon Apr 2 23:51:24 2007 @@ -1,58 +1,58 @@ - ----------------------------------- - Apache Axiom - The XML Object Model - ----------------------------------- - -Welcome to Apache Axiom - - AXIOM stands for AXis Object Model (also known as OM - Object Model) and refers to the XML - infoset model that was initially developed for Apache Axis2. XML infoset refers to the - information included inside the XML and for programmatical manipulation it is convenient - to have a representation of this XML infoset in a language specific manner. For an object - oriented language the obvious choice is a model made up of objects. DOM and JDOM are two - such XML models. OM is conceptually similar to such an XML model by its external behavior - but deep down it is very much different. - -Latest Release - - <<13th November 2006 - Apache Axiom Version 1.2 Released!>> - - \[{{{http://ws.apache.org/commons/axiom/download.cgi}Download AXIOM 1.2}}\] - - Apache AXIOM is a StAX-based, XML Infoset compliant object model which supports on-demand building - of the object tree. It supports a novel "pull-through" model which allows one to turn off the tree - building and directly access the underlying pull event stream. It also has built in support for XML - Optimized Packaging (XOP) and MTOM, the combination of which allows XML to carry binary data - efficiently and in a transparent manner. The combination of these is an easy to use API with a very - high performant architecture! - - Developed as part of Apache Axis2, Apache AXIOM is the core of Apache Axis2. However, it is a pure - standalone XML Infoset model with novel features and can be used independently of Apache Axis2. - -Key Features - - * Full XML Infoset compliant XML object model - - * StAX based builders with on-demand building and pull-through - - * XOP/MTOM support offering direct binary support - - * Convenient SOAP Infoset API on top of AXIOM - - * Two implementations included: - - * Linked list based implementation - - * W3C DOM supporting implementation - - * High performant - -What's New in This Release - - * Improved XML serialization - - * Improved Builder hierarchy - - * Improved MTOM handling - - * Numerous bug fixes - + ----------------------------------- + Apache Axiom - The XML Object Model + ----------------------------------- + +Welcome to Apache Axiom + + AXIOM stands for AXis Object Model (also known as OM - Object Model) and refers to the XML + infoset model that was initially developed for Apache Axis2. XML infoset refers to the + information included inside the XML and for programmatical manipulation it is convenient + to have a representation of this XML infoset in a language specific manner. For an object + oriented language the obvious choice is a model made up of objects. DOM and JDOM are two + such XML models. OM is conceptually similar to such an XML model by its external behavior + but deep down it is very much different. + +Latest Release + + <<3rd April 2007 - Apache Axiom Version 1.3 Released!>> + + \[{{{http://ws.apache.org/commons/axiom/download.cgi}Download AXIOM 1.3}}\] + + Apache AXIOM is a StAX-based, XML Infoset compliant object model which supports on-demand building + of the object tree. It supports a novel "pull-through" model which allows one to turn off the tree + building and directly access the underlying pull event stream. It also has built in support for XML + Optimized Packaging (XOP) and MTOM, the combination of which allows XML to carry binary data + efficiently and in a transparent manner. The combination of these is an easy to use API with a very + high performant architecture! + + Developed as part of Apache Axis2, Apache AXIOM is the core of Apache Axis2. However, it is a pure + standalone XML Infoset model with novel features and can be used independently of Apache Axis2. + +Key Features + + * Full XML Infoset compliant XML object model + + * StAX based builders with on-demand building and pull-through + + * XOP/MTOM support offering direct binary support + + * Convenient SOAP Infoset API on top of AXIOM + + * Two implementations included: + + * Linked list based implementation + + * W3C DOM supporting implementation + + * High performant + + * Improved XML serialization + + * Improved Builder hierarchy + + * Improved MTOM handling + +What's New in This Release + + * Numerous bug fixes + Modified: webservices/commons/trunk/modules/axiom/src/site/xdoc/download.xml URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/src/site/xdoc/download.xml?view=diff&rev=525059&r1=525058&r2=525059 ============================================================================== --- webservices/commons/trunk/modules/axiom/src/site/xdoc/download.xml (original) +++ webservices/commons/trunk/modules/axiom/src/site/xdoc/download.xml Mon Apr 2 23:51:24 2007 @@ -35,6 +35,40 @@ </tr> <tr class="b"> <td align="center" valign="middle"> + <a name="1_2_3"></a> + 1.2.3 + </td> + <td align="center">Release</td> + <td>Source Distribution + <a href="[preferred]/ws/commons/axiom/1_2_3/axiom-1.2.3-src.zip" + title="[preferred]/ws/commons/axiom/1_2_3/axiom-1.2.3-src.zip">zip</a> + + <a href="http://www.apache.org/dist/ws/commons/axiom/1_2_3/axiom-1.2.3-src.zip.md5" + class="externalLink" + title="http://www.apache.org/dist/ws/commons/axiom/1_2_3/axiom-1.2.3-src.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/commons/axiom/1_2_3/axiom-1.2.3-src.zip.asc" + class="externalLink" + title="http://www.apache.org/dist/ws/commons/axiom/1_2_3/axiom-1.2.3-src.zip.asc">PGP</a> + <br/> + Binary Distribution + <a href="[preferred]/ws/commons/axiom/1_2_3/axiom-1.2.3-bin.zip" + title="[preferred]/ws/commons/axiom/1_2_3/axiom-1.2.3-bin.zip">zip</a> + <a href="http://www.apache.org/dist/ws/commons/axiom/1_2_3/axiom-1.2.3-bin.zip.md5" + class="externalLink" + title="http://www.apache.org/dist/ws/commons/axiom/1_2_3/axiom-1.2.3-bin.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/commons/axiom/1_2_3/axiom-1.2.3-bin.zip.asc" + class="externalLink" + title="http://www.apache.org/dist/ws/ws/commons/axiom/1_2_3/axiom-1.2.3-bin.zip.asc"> + PGP</a> + + <br/> + </td> + <td>03 - 04 - 2007</td> + <td>1.2.3 Release (Mirrored)</td> + </tr> + + <tr class="b"> + <td align="center" valign="middle"> <a name="1_2_2"></a> 1.2.1 </td> @@ -64,7 +98,7 @@ <br/> </td> <td>09 - 01 - 2001</td> - <td>1.2.2 Release (Mirrored)</td> + <td>1.2.2 Release (Archived)</td> </tr> @@ -99,7 +133,7 @@ <br/> </td> <td>30 - 11 - 2006</td> - <td>1.2.1 Release (Mirrored)</td> + <td>1.2.1 Release (Archived)</td> </tr> --------------------------------------------------------------------- To unsubscribe, e-mail: belljames@example.org For additional commands, e-mail: belljames@example.org From commonsbelljames@example.org Tue Apr 03 10:04:45 2007 Return-Path: <commonsbelljames@example.org> Delivered-To: belljames@example.org Received: (qmail 787 invoked from network); 3 Apr 2007 10:04:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Apr 2007 10:04:28 -0000 Received: (qmail 81032 invoked by uid 500); 3 Apr 2007 10:04:33 -0000 Delivered-To: belljames@example.org Received: (qmail 80991 invoked by uid 500); 3 Apr 2007 10:04:32 -0000 Mailing-List: contact belljames@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:belljames@example.org> List-Unsubscribe: <mailto:belljames@example.org> List-Post: <mailto:belljames@example.org> List-Id: <commons-dev.ws.apache.org> Reply-To: belljames@example.org Delivered-To: mailing list belljames@example.org Received: (qmail 80971 invoked by uid 99); 3 Apr 2007 10:04:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 03:04:32 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of belljames@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mu-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 03:04:23 -0700 Received: by mu-out-0910.google.com with SMTP id w8so349909mue for <belljames@example.org>; Tue, 03 Apr 2007 03:04:01 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=F3FzpsYlVPEwIrxKk9sgMjKzXOUTkSuK78vVx+gk6ruFxOKfW2Nni7v8BKCvR0yP8jMu/yi1BN7Mm49mvFdtF8pFKbvOt/E8rfPRp/uQOG+CoEotP4RRJEiHUa/u7USmLpZn7L5qryhiyV8HOlC8FbdDA08iNZ7VMkzLQ0+LPW8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=M0evQU2qht2ztwPp2aJlcSC241V+wkdkjssHnIf8NCRnyd7N7ges0UF23Vm73ie+Iqt0o8aFJ037K5+X7aQ/cquSZx8gveFEsI2aYddUfnWbAg1ytYeFbthg4GvV8Pdk6Xy7pn4wwfym2R60KRQ5HB69velc602iAU7/HAW2ctg= Received: by 83.161.120.155 with SMTP id c10mr9335874bue.1175594639838; Tue, 03 Apr 2007 03:03:59 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Tue, 3 Apr 2007 03:03:59 -0700 (PDT) Message-ID: <belljames@example.org> Date: Tue, 3 Apr 2007 11:03:59 +0100 From: "John Kaputin (gmail)" <belljames@example.org> To: belljames@example.org, belljames@example.org Subject: Re: RC for XMLSchema 1.3 In-Reply-To: <belljames@example.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6023_2734137.1175594639554" References: <belljames@example.org> <belljames@example.org> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6023_2734137.1175594639554 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Ajith, I forgot to send this to the commons-dev list too. John. On 4/2/07, John Kaputin <belljames@example.org> wrote: > > Ajith, > here's a likely fix. SchemaBuilder.handleXmlSchemaElement method calls the > handleImport method and adds the result to the 'includes' collection. In > 1.2, a XmlSchemaImport object is always returned by handleImport. In 1.3 > the handleImport method might return a null, but this null is still added > to the collection. > > SchemaBuilder.handleXmlSchemaElement > XmlSchemaImport schemaImport = handleImport(schema, > el, schemaEl); > schema.includes.add(schemaImport); > > SchemaBuilder.handleImport > v1.2: return schemaImport; > v1.3: return (schemaImport.schema == null) ? null : schemaImport; > > Maybe it needs a null check before adding the result to the collection? > The following patch fixed the regressions in the Woden test suite. > > > > regards, > John Kaputin > > > John Kaputin/UK/IBM@IBMGB wrote on 02/04/2007 18:09:11: > > > No problem Ajith. I didn't realize until after I
{'source': 'Apache Software Foundation Public Mail Archives'}