Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-216

TextFileDataSource incorrectly parses data as XML

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • NIGHTLY
    • 1.1.1-QA-B2
    • Core
    • None

    Description

      Usage of TextFileDataSource causes the data to be parsed as XML. Therefore, characters having a special meaning, such as ampersands, will trigger parsing errors. This has significant impact on XSLTMediator when the output of the transformation is text data:

      • When the volume of data is below the BYTE_ARRAY_SIZE threshold, the output is used to construct an OMText object directly and is not parsed as XML.
      • When the volume is above the threshold, TextFileDataSource is used and the output is parsed as XML.
        Therefore transformations that work for small messages may suddenly fail for larger messages.

      Attachments

        1. TextFileDataSourceTest.java
          1.0 kB
          Andreas Veithen
        2. synapse-216-patch.txt
          26 kB
          Andreas Veithen

        Activity

          People

            asankha Asankha Chamath Perera
            veithen Andreas Veithen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: