You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/01/16 18:41:44 UTC

DO NOT REPLY [Bug 33124] New: - [VFS] directories in tar file don't have last modified date

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33124

           Summary: [VFS] directories in tar file don't have last modified
                    date
           Product: Commons
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Sandbox
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: adagoubard@chello.nl


The directories in tar files don't have modified date.

When you try to get the modified date the following exception is thrown:
org.apache.commons.vfs.FileSystemException: Could not determine the last modifie
d timestamp of "tgz:http://heanet.dl.sourceforge.net/sourceforge/xins/xins-1.0.1
.tgz!/xins-1.0.1".
        at
org.apache.commons.vfs.provider.DefaultFileContent.getLastModifiedTime(DefaultFileContent.java:136)
        at
org.apache.commons.vfs.example.ShowProperties.main(ShowProperties.java:86)
Caused by: java.lang.NullPointerException        at
org.apache.commons.vfs.provider.tar.TarFileObject.doGetLastModifiedTime(TarFileObject.java:122)
        at
org.apache.commons.vfs.provider.DefaultFileContent.getLastModifiedTime(DefaultFileContent.java:132)
        ... 1 more

How to reproduce this bug:
in the vfs directory execute
java -cp
.;target\commons-vfs-1.0-dev.jar;target\lib\commons-logging-1.0.4.jar;target\lib\commons-compress-20040530.jar
org.apache.commons.vfs.example.ShowProperties
tgz:http://heanet.dl.sourceforge.net/sourceforge/xins/xins-1.0.1.tgz!/xins-1.0.1/src/
(Unix)
java -cp
.:target/commons-vfs-1.0-dev.jar:target/lib/commons-logging-1.0.4.jar:target/lib/commons-compress-20040530.jar
org.apache.commons.vfs.example.ShowProperties
tgz:http://heanet.dl.sourceforge.net/sourceforge/xins/xins-1.0.1.tgz!/xins-1.0.1/src/
(Windows)

This bug prevent for example to copy directories as the exception is thrown when
copying the first directory.

If this bug is not in VFS but in commons-compress, you may reassign the bug.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org