You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Lijun Wu (JIRA)" <ji...@apache.org> on 2018/07/03 07:37:00 UTC

[jira] [Created] (VFS-664) ZipFileObject can't list children file with exclamation mark in name.

Lijun Wu created VFS-664:
----------------------------

             Summary: ZipFileObject can't list children file with exclamation mark in name.
                 Key: VFS-664
                 URL: https://issues.apache.org/jira/browse/VFS-664
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.2
            Reporter: Lijun Wu


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

Example:
{code:java}
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());
	}
}
{code}
if zip-with-file-contains-exclamation.zip contains files "00", "0!1", "02", this code will output "00" and "02" without "0!1"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)