Uploaded image for project: 'DdlUtils'
  1. DdlUtils
  2. DDLUTILS-211

DatabaseIO.read(Reader) broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.1
    • None
    • Windows XP SP3, Sun JDK 1.6.0_06, DdlUtils SVN HEAD (r669848)

    Description

      The DatabaseIO.read(Reader) convenience method is broken. It allows an API user to specify a Reader instance from which to read a model. However, when using it, it fails for files larger than 4096 characters, since it inserts new lines characters in the middle of the stream.

      The method should either be removed in favor of the other read() methods, or be fixed.

      Reproduction:

      • Read a valid XML model file larger than 4096 bytes using the DatabaseIO.read(Reader) API
        Expected result:
      • The model file can be parsed
        Actual result:
      • The XML parser fails with syntax errors due to the erroneous new line characters

      Attachments

        Activity

          People

            tomdz Thomas Dudziak
            ricqr Rick Riemer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: