[
https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563123#action_12563123
]
Rajiv Kumar commented on VFS-195:
---------------------------------
Joerg,
I am not asking you to support invalid URIs.
I am trying to give properly formatter URI as per the instructions on the
following page:
http://commons.apache.org/vfs/filesystems.html
The documentation says, that the correct format is
zip:// arch-file-uri[! absolute-path] Where arch-file-uri refers to a file
of any supported type,
Now following the instructions from the same page, I construct the
arch-file-uri as follows:
file:///C:/Temp/source/test.zip
and then construct the zip URI as follows:
zip://file:///C:/Temp/source/test.zip
But that results into following exception:
org.apache.commons.vfs.FileSystemException: Invalid absolute URI
"zip://file:///C:/Temp/source/test.zip".
at
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:58)
at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:641)
at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:582)
After that I tried a number of different formats but nothing worked.
Thanks,
Rajiv
> Unable to get Zip file URL working on Windows machine
> -----------------------------------------------------
>
> Key: VFS-195
> URL: https://issues.apache.org/jira/browse/VFS-195
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: Rajiv Kumar
>
> Could not get the Zip file URL working on Windows machine? Tried following
> formats.
> zip:file:/C:/Temp/source/test.zip --- Invalid Absolute URI
> zip:file:/C:/Temp/source/test.zip! --- Invalid Absolute URI
> zip:file://C:/Temp/source/test.zip --- Invalid Absolute URI
> zip:file:/C:/Temp/source/test.zip! -- Invalid Absolute URI
> zip://file:/C:/Temp/source/test.zip --
> org.apache.commons.vfs.FileSystemException: Could not copy because it does
> not exist.
> zip:///C:/Temp/source/test.zip! - Could not copy because it does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.