You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2019/01/25 13:26:00 UTC

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

    [ https://issues.apache.org/jira/browse/VFS-664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16752252#comment-16752252 ] 

Gary Gregory commented on VFS-664:
----------------------------------

Patches and units tests are welcome :) https://github.com/apache/commons-vfs/

> 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
>
> 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)