IBM Support

PM10423: INCORRECT RESULT FOR BASE-URI OR DOCUMENT-URI FUNCTION IF INPUT IS A STREAMSOURCE WHOSE SYSTEM ID IS A RELATIVE URI

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If the base-uri or document-uri function is used in an XSLT
    stylesheet or an XQuery or XPath expression, and the argument
    is a node in an input document that was created using a
    StreamSource object with a system ID that was a relative URI,
    the result of the function should be the absolute URI to which
    the processor resolved the relative URI.  The processor is
    instead returning the original relative URI.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server v7.0 Feature Pack for XML 1.0.       *
    ****************************************************************
    * PROBLEM DESCRIPTION: If the input to an XSLT stylesheet,     *
    *                      an XQuery expression or an XPath        *
    *                      expression is supplied using a          *
    *                      StreamSource object, a system ID may    *
    *                      be specified on the StreamSource        *
    *                      object.  If the value of the system     *
    *                      ID is an absolute URI, that should be   *
    *                      used as the base URI of the document    *
    *                      node in the XML input; if the value     *
    *                      of the system ID is a relative URI      *
    *                      reference, the processor should         *
    *                      resolve it against the setting of the   *
    *                      user.dir Java system property to        *
    *                      produce an absolute URI, and that       *
    *                      absolute URI should be used as the      *
    *                      base URI of the document node.          *
    *                      References to the base-uri or           *
    *                      document-uri functions should return    *
    *                      the absolute URI, but the processor     *
    *                      is actually returning the relative      *
    *                      URI reference, if such was specified    *
    *                      on the StreamSource.                    *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this APAR. *
    ****************************************************************
    If the system ID set on a StreamSource is a relative URI or a
    file system path, the processor resolves the URI to an
    absolute URI using the setting of the user.dir Java system
    property in order to retrieve the XML input.  However, the
    processor is storing the value of the original system ID as
    the base URI of the document for use in the base-uri
    and document-uri functions.  This causes the result of these
    functions to return the incorrect value - the original
    relative URI.
    

Problem conclusion

  • The problem was fixed by changing the processor to store, with
    the associated XML input in memory, the value of the absolute
    URI to which the original relative URI reference was resolved.
    This ensures the processor returns that absolute URI as the
    result of the base-uri and document-uri functions.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 1.0.0.5. Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM10423

  • Reported component name

    XML FEATUREPACK

  • Reported component ID

    5724J0856

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-03-19

  • Closed date

    2010-03-23

  • Last modified date

    2010-03-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    XML FEATUREPACK

  • Fixed component ID

    5724J0856

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022