Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-889

Redefinition of prefix to same URN breaks subPartMatchNS in Xpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4
    • None
    • XPath
    • 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>

      Attachments

        Activity

          People

            Unassigned Unassigned
            jcrisp@blueyonder.co.uk Joel Crisp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: