Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-664

ZipFileObject can't list children file with exclamation mark in name.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.7.0
    • None

    Description

      if zip file contains exclamation mark, ZipFileObject#getChildren() doesn't contain that file.

      Example:

      StandardFileSystemManager sfm = new StandardFileSystemManager();
      sfm.init();
      FileObject fileObject = sfm.resolveFile("zip:zip-with-file-contains-exclamation.zip");
      FileObject[] children = fileObject.getChildren();
      if (children != null) {
      	for (int i = 0; i < children.length; i++) {
      		System.out.println(children[i].getName().toString());
      	}
      }
      

      if zip-with-file-contains-exclamation.zip contains files "00", "0!1", "02", this code will output "00" and "02" without "0!1"

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lijunwu001 Lijun Wu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: