You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/03/08 10:47:09 UTC

DO NOT REPLY [Bug 6980] New: - Redefinition of prefix to same URN breaks subPartMatchNS

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6980>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6980

Redefinition of prefix to same URN breaks subPartMatchNS

           Summary: Redefinition of prefix to same URN breaks subPartMatchNS
           Product: XalanJ2
           Version: 2.3
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: org.apache.xpath
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: jcrisp@blueyonder.co.uk


According to the XPath specification, any prefix which maps to the same URN is 
equivalent. If a prefix is remapped to the same URN then lack of string 
interning somewhere causes subPartMatchNS in 
org/apache/xapth/patterns/NodeTest.java to fail since it uses == comparason 
not .equals() comparason on the strings. Similarly if two prefixes map to the 
same URN the same problem occurs.

subPartMatchNS - p: http://bris_atu_WebServices/BCRWSSSOAP, t: 
http://bris_ati_WebServices/BCRWSSSOAP r=false

with 

<?xml version="1.0" encoding="UTF-8"?>
<SOAP:Envelope xmlns="http://bris_ati_WebServices/BCRWSSSOAP" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" 
xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ file:soap-
envelope.xsd" xsi:noPrefixSchemaLocation="file:BCRWSSSOAP.xsd"> 
  <SOAP:Header>
    <InterfaceName>IBCRWSS</InterfaceName>
  </SOAP:Header>
  <SOAP:Body>
    <WssRequest>
      <Parameters>
        <SearchTasks xmlns="http://bris_atu_WebServices/BCRWSSSOAP">
          <UserId>jamessally</UserId>
          <CorporateIdentifier>1221416</CorporateIdentifier>
          <TaskStatus>Open</TaskStatus>
        </SearchTasks>
      </Parameters>
    </WssRequest>
  </SOAP:Body>
</SOAP:Envelope>