Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.4
-
None
-
None
-
Operating System: Solaris
Platform: Sun
-
6980
Description
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>