[
https://issues.apache.org/jira/browse/VFS-664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Lee closed VFS-664.
-------------------------
Fix Version/s: 2.7.0
Resolution: Fixed
> 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
> Priority: Major
> Fix For: 2.7.0
>
>
> 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
(v8.3.4#803005)