Uploaded image for project: 'Lucee Development'
  1. LDEV-2052

overwrite=true no longer works in cfzip action=unzip

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 5.3.2.29
    • Labels:
    • Sprint:
      March 2019

      Description

      This is possibly related to:
      https://luceeserver.atlassian.net/browse/LDEV-941

      When unzipping a zip file into an existing directory and attempting to overwrite existing files with the overwrite flag, the files are not overwritten. This has broken the upgrade command in CommandBox.

      I have attached a zip file that has a small test case. The test case uses a CommandBox Task Runner. Unzip the folder and run box task run to execute the task runner. I'm sure this can easily be reworked into a normal test case. The task runner was just quick and easy to test it from the command line. zipTest.zip

      Run the task which unzips the myZip.zip archive into the target folder. Then modify the myFile.txt which was created in the target folder. Your changes will not be overwritten as they should be.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Michael Offner
                Reporter:
                Brad Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: