commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36392] - [VFS] Can't copy using tar:gz:http FileObject
Date Sat, 03 Sep 2005 07:07:43 GMT
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=36392>.
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=36392





------- Additional Comments From jb@nanthrax.net  2005-09-03 09:07 -------
I have use the code sample provided :

    FileObject foIN =
     
VFS.getManager().resolveFile("tar:gz:http://people.apache.org/~imario/nested.tar.gz!/nested.tar!/anydir/test.tar");
    System.err.println(foIN.getType());
    System.err.println(foIN.exists());
    System.err.println(foIN.getContent().getLastModifiedTime());
    FileObject foOUT = VFS.getManager().resolveFile("/tmp/test-nested.tar");
    foOUT.copyFrom(foIN, Selectors.SELECT_SELF);


And when I launch the sample code :

2005-09-03 09:04:48,137 [main] DEBUG - << "Date: Sat, 03 Sep 2005 07:04:46
GMT[\r][\n]"
2005-09-03 09:04:48,138 [main] DEBUG - << "Server: Apache/2.1.7-dev (Unix)
SVN/1.2.2-dev mod_ssl/2.1.7-dev OpenSSL/0.9.7e DAV/2[\r][\n]"
2005-09-03 09:04:48,138 [main] DEBUG - << "Last-Modified: Fri, 02 Sep 2005
17:24:27 GMT[\r][\n]"
2005-09-03 09:04:48,138 [main] DEBUG - << "ETag: "d58ac2-14e-3bd008c0"[\r][\n]"
2005-09-03 09:04:48,139 [main] DEBUG - << "Accept-Ranges: bytes[\r][\n]"
2005-09-03 09:04:48,139 [main] DEBUG - << "Content-Length: 334[\r][\n]"
2005-09-03 09:04:48,139 [main] DEBUG - << "Content-Type: application/x-gzip[\r][\n]"
2005-09-03 09:04:48,139 [main] DEBUG - enter
HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
2005-09-03 09:04:48,140 [main] DEBUG - enter
GetMethod.readResponseBody(HttpState, HttpConnection)
2005-09-03 09:04:48,140 [main] DEBUG - enter
HttpMethodBase.readResponseBody(HttpState, HttpConnection)
2005-09-03 09:04:48,140 [main] DEBUG - enter
HttpMethodBase.readResponseBody(HttpState, HttpConnection)
2005-09-03 09:04:48,140 [main] DEBUG - enter HttpConnection.getResponseInputStream()
2005-09-03 09:04:48,147 [main] DEBUG - <<
"[0x1f][0x8b][0x8][0x8][0x9e][0xb5].B[0x0][0x3]nested.tar[0x0][0xed][0xda][0xcb]j[0xc2]@[0x0][0x86][0xd1][0xac]}[0x8a]l[0xba][0xb5]3[0x93][0xdb][0xf3][0x4][0xb4][0x10][0xa8]-[0xc4][0x94][0xb6]o[0xdf][0xa4][0xda][0xb][0x85]Z]D)[0x9e][0x3]:[0x4][0x85]$[0xfc][0xdb]oXo[0x87][0x9b][0xa1][0xed][0x97][0xe3]'[0x9b]I[0x18][0xd5]e9[0x9d][0xb1][0xa9][0xc2][0xfb]u[0xdc]][0x8f]R9~e1[0xa4]X[0x14]M[0xd3][0xa4][0x98][0x85]X[0xc4]Pfy[0x98][0xeb][0x81][0xbe]{[0xda][0x8e]o[0x9e][0xe7]Y[0xb7][0xf9][0xeb][0xeb]~{[0xe0][0xf7][0xdd][0xcb][0x84][0xcf][0xf3][0x9f][0x18][0xa6][0xfd][0xef][0xba][0xfb][0xf5]rx[0x19]f[0xba][0xc7][0xe1][0xfd][0xa7][0x8b][0xea]k[0xff][0xd8]L[0xfb][0xa7][0xa6][0xb0][0xff]9l[0xda][0xbe]{\<[0xb7][0xfd]b[0xd5]..[0xfd]0[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x1c][0xad]}x]u[0xfd][0xed][0xac][0xf7][0x98]z[0xb8][0xa6][0xaa]~[0xef][0xff]>[0xfa][0xcf][0xaa]HuJY[0x88])[0xa6]2[0xcb][0xab]Y[0x9f]j[0xef][0xca][0xfb][0xbf][0xfd][0xfe]S[0x6]:[[0x2]|t[0xff];[0xee][0x1f][0xaa]i[0xff]
 [0xa2][0xd6][0xff][0x9e][0x87][0xfe][0xf7][0xba][0xf7][0xd7][0xff][0x2][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0xfc]O[0xfb][0xfe]sw[0xa4]y:[0xe0][0x93][0xfa][0xdf][0xa2][0x98][0xfa][0xbf][0xb2][0xa9][0xf5][0xbf][0xe7][0xf0]c[0xff]Y:[0xe0]S[0xfa][0xdf][0xdd][0xfe]U[0xac][0xa3][0xfe][0xf3][0x1c][0xf4][0xbf][0xd7][0xbd][0xbf][0xfe][0x17][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0].[0xe7][\r]'[0xad][0xd9][0xfe][0x0][0xa0][0x0][0x0]"
2005-09-03 09:04:48,150 [main] DEBUG - Resorting to protocol version default
close connection policy
2005-09-03 09:04:48,150 [main] DEBUG - Should NOT close connection, using HTTP/1.1.
2005-09-03 09:04:48,150 [main] DEBUG - enter HttpConnection.releaseConnection()
2005-09-03 09:04:48,150 [main] DEBUG - enter
HttpConnectionManager.releaseConnection(HttpConnection)
2005-09-03 09:04:48,150 [main] DEBUG - Freeing connection,
hostConfig=HostConfiguration[host=people.apache.org, protocol=http:80, port=80]
2005-09-03 09:04:48,151 [main] DEBUG - enter
HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
2005-09-03 09:04:48,151 [main] DEBUG - Notifying no-one, there are no waiting
threads
imaginary
false
Exception in thread "main" org.apache.commons.vfs.FileSystemException: Could not
determine the last modified timestamp of
"tar:gz:http://people.apache.org/~imario/nested.tar.gz%21/!/nested.tar!/anydir/test.tar"
because it does not exist.
        at
org.apache.commons.vfs.provider.DefaultFileContent.getLastModifiedTime(DefaultFileContent.java:128)
        at
net.sourceforge.buildprocess.autodeploy.FileManipulator.main(FileManipulator.java:253)


For information, I download the commons-vfs and commons-compress at each build
time using maven SNAPSHOT.

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


Mime
View raw message