You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rajiv Kumar (JIRA)" <ji...@apache.org> on 2008/01/28 10:45:35 UTC

[jira] Created: (VFS-195) Unable to get Zip file URL working on Windows machine

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.


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Joerg Schaible (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563137#action_12563137 ] 

Joerg Schaible commented on VFS-195:
------------------------------------

How do you initialize VFS? Note, that you have to provide also the root within the ZIP:

zip:file:///C:/Temp/source/test.zip!/

But, I have to confess, I had to look now in the VFS unit tests also ;-)

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


[jira] Closed: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Ivankovits closed VFS-195.
--------------------------------

    Resolution: Invalid

Please join us on the user mailinglist to solve this topic!

Thanks!
Ciao,
Mario

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


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563142#action_12563142 ] 

Mario Ivankovits commented on VFS-195:
--------------------------------------

Hmmm.... I think the examples on our web-page [1] are rather self-explaining, aren't they?

I had no chance to test this on a windows machine yet, but my try on linux with the latest VFS snapshot the following worked:

    FileObject fo = VFS.getManager().resolveFile("zip:file:///home/im/Downloads/commons-compress-draft.zip");
or
    FileObject fo = VFS.getManager().resolveFile("zip:file:///home/im/Downloads/commons-compress-draft.zip!/");


If you do not use VFS.getManager() you have to ensure you setup VFS correctly e.g. by adding all wanted providers.
As always, please try the latest nightly build too.

BTW: Please do not use JIRA as disuccsion platform. I am going to close this bug again and looking forward that we help you on the user list until we all conclude that this is a bug.

Ciao,
Mario

[1] http://commons.apache.org/vfs/filesystems.html#Zip__Jar_and_Tar

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


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563494#action_12563494 ] 

Sebb commented on VFS-195:
--------------------------

Surely 

zip:///home/im/Downloads/10387.zip!/

is 

zip:  arch-file-uri

where arch-file-uri=///home/im/Downloads/10387.zip!/ - and where the file:// has been omitted.

It also looks as though the "[! absolute-path]" part of the syntax is *not* optional.

It looks to me as though the syntax should be:

zip: arch-file-uri !absolute-path
(similarly for tgz etc)

The same probably applies to bzip2 and gzip and mime.

The tmp:  and res: syntaxes do not agree with the examples.


Seems to me that all the examples should be added as unit tests to verify/clarify the syntax.

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


[jira] Reopened: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Joerg Schaible (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Schaible reopened VFS-195:
--------------------------------


Reopened to set proper solution.

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


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563404#action_12563404 ] 

Mario Ivankovits commented on VFS-195:
--------------------------------------

Hi!

If this is your code then it is very clear for me that it will not work ;-)

Look at fsm.addProvider("zip") where you add the localProvider again insted of the zipProvider.

Ciao,
Mario

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


[jira] Closed: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Joerg Schaible (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Schaible closed VFS-195.
------------------------------

    Resolution: Invalid

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


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Joerg Schaible (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563410#action_12563410 ] 

Joerg Schaible commented on VFS-195:
------------------------------------

However, the docs still claim that the URI should be build as "zip://<arch file URI>[!<absolute path>]". The slashes after the zip are wrong as demonstrated immediately after with the examples of the docs.

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


[jira] Closed: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Joerg Schaible (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Schaible closed VFS-195.
------------------------------

    Resolution: Fixed

As long as you don't provide a proper URI, there's nothing what VFS can do about. It will definitely not support invalid URIs by guessing what the caller might had in mind. Please ask on the user's list for help, JIRA is not the proper place for this.

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


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Joerg Schaible (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563129#action_12563129 ] 

Joerg Schaible commented on VFS-195:
------------------------------------

Did you try: zip:file:///C:/Temp/source/test.zip ?
This should work. The doc for the URI format seems not correct here. At least this qualifies as an issue for VFS. However, all the file URL part in your first comment were simply invalid.

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


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563417#action_12563417 ] 

Mario Ivankovits commented on VFS-195:
--------------------------------------

It depends as you can also write

zip:///home/im/Downloads/10387.zip!/

which works perfectly too.

so you can leave out the "//" only if you nest other filesystems like in "zip:file".

Yes, documentation can be better, but I am really poor in doing so (or too lazy ;-) ) so any contribution in this area is very welcome.

Ciao,
Mario

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


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Rajiv Kumar (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Rajiv Kumar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563133#action_12563133 ] 

Rajiv Kumar commented on VFS-195:
---------------------------------

Yes I tried that and it gave me the same exception.


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


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Rajiv Kumar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563409#action_12563409 ] 

Rajiv Kumar commented on VFS-195:
---------------------------------

Mario,

Sorry my  BAD :(. It seems to work now.

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.


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Joerg Schaible (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563149#action_12563149 ] 

Joerg Schaible commented on VFS-195:
------------------------------------

As Rajiv pointed out http://commons.apache.org/vfs/filesystems.html defines the URI pattern for ZIP (and also for gzip/bzip2) as

prefix://

Obviously the double slash is not right here and is also not used in the examples some lines below. The slashes are part of file and http protocol, but its dependent on the protocol and not necessary part of an URI in general. The bug is here not about the implementation, but the docs.

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


[jira] Commented: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Rajiv Kumar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563400#action_12563400 ] 

Rajiv Kumar commented on VFS-195:
---------------------------------

Mario,

I think it is a bug on windows platform and hence put it on JIRA so it can be better tracked. 
I am initializing the file system manager as follows:

                DefaultFileSystemManager fsm = new DefaultFileSystemManager();
		DefaultLocalFileProvider localProvider = new DefaultLocalFileProvider();
		localProvider.init();
		fsm.addProvider("file", localProvider);
		
		ZipFileProvider zipProvider = new ZipFileProvider();
		zipProvider.init();
		fsm.addProvider("zip", localProvider);
		fsm.addExtensionMap("zip", "zip");

The syntax that you provided  ("zip:file:///C:/Temp/temp.zip!/" or "zip:file:///C:/Temp/temp.zip" )   does not work for me.

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.


[jira] Reopened: (VFS-195) Unable to get Zip file URL working on Windows machine

Posted by "Rajiv Kumar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajiv Kumar reopened VFS-195:
-----------------------------


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