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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to