Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-33

Regression: package saved to itself causes data loss

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • simple-odfdom-0.7
    • odfdom-0.8.7
    • java
    • None
    • Operating System: All
      Platform: All
    • 50

    Description

      Created an attachment (id=82)
      Test for saving data to the same file it's opened from.

      When a document is opened and stored back at itself, we crash or lose data.
      This did not happen in the earlier version.
      The root cause is the lazy loading mechanism in the package layer: when the data is written out in the same file, it cannot be read anymore - thus we lose data or leave a broken file.

      Attached a simple test case to reproduce this.

      Attachments

        Activity

          People

            daisy@odftoolkit.org Ying Chun Guo
            steffeng@odftoolkit.org steffeng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: