Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-187

Existing folders will silently be overwritten by files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.0.0-alpha-13
    • 1.0.0-alpha-10
    • impl-base
    • None
    • Workaround Exists
    • Hide

      Do not store if archive.contains(path);

      Show
      Do not store if archive.contains(path);

    Description

      Example

      archive.addResource("my-local-resource.xml", "/META-INF/my.xml") // becomes /META-INF/my.xml
      archive.addResource("my-local-resource2.xml", "/META-INF") // becomes the file META-INF, the existing Folder META-INF and sub files are deleted

      The second line could be a simple typo on the users side, but with no warning or error you have to debug the archive to even figure out what happened.

      Attachments

        Activity

          People

            silenius_jira Samuel Santos (Inactive)
            aslak@redhat.com Aslak Knutsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: