Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2387

CLI: Delete infoset file if there is an error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • 3.0.0
    • CLI

    Description

      The CLI -o option specifies an output file that Daffodil should write the infoset to (or unparse data to). If there is an error during parse/unparse (e.g. non-backtrackable parse error, SDE) this file is not deleted which can cause confusion. Especially since in some cases the file could have a partial infoset/data.

      We might want to consider deleting the output file that we create if there is an error to prevent possible confusion. Note that we need to be careful about when we delete it. For example, say the file already existed when we ran Daffodil. In this case Daffodil will truncate the file to zero bytes and then write the output. But if there is an error, do we want to delete it if it already existed? Or maybe we just leave it truncated it to zero bytes (I.e. should we delete a file we didn't create?)

      Attachments

        Activity

          People

            Unassigned Unassigned
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: