Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-359

OMProcessingInstructionImpl incorrectly trims the value passed in the constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.11
    • 1.2.12
    • LLOM
    • None

    Description

      When using Axiom with the Santuario port to GenXDM (https://code.google.com/a/apache-extras.org/p/santuario-genxdm/ ), we noticed that certain C14N tests failed. These tests failed because the constructor to OMProcessingInstructionImpl does:

      this.value = (value == null) ? null : value.trim();

      In fact, it should do this:

      this.value = (value == null) ? null : value;

      (That is, not call trim() ). Note that the "setValue()" method does not call "trim()" so the behavior is also inconsistent. At least the "setValue()" method appears to provide a work-around for this issue.

      Attachments

        Activity

          People

            veithen Andreas Veithen
            eric@tibco.com Eric Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: