[jira] Created: (VFS-339) Unable to resolve special windows folders

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (VFS-339) Unable to resolve special windows folders

ASF GitHub Bot (Jira)
Unable to resolve special windows folders
-----------------------------------------

                 Key: VFS-339
                 URL: https://issues.apache.org/jira/browse/VFS-339
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: Windows
            Reporter: Daniel R
            Priority: Critical


VFS unable to support special windows folders (Network, recent, computer, libraries, etc).

File[] cbFolders = (File[])sun.awt.shell.ShellFolder.get("fileChooserComboBoxFolders");

and then converting them to FileObjects like so:

                for(File f: cbFolders){
                        fileObjArray.add(mgr.resolveFile(f.getPath()));
                }

The path of these files are like "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"

So I tried to debug it and fixed this bug: https://issues.apache.org/jira/browse/VFS-338

and then removed:

 if (startPos < 2)
        {
            throw new FileSystemException("vfs.provider.local/not-absolute-file-name.error", uri);
        }
 return "//" + extractUNCPrefix(uri, name);

But now complains about the file doesn't exist. I'll keep trying...


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (VFS-339) Unable to resolve special windows folders

ASF GitHub Bot (Jira)

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

Ralph Goers commented on VFS-339:
---------------------------------

Is there any new information on this?

> Unable to resolve special windows folders
> -----------------------------------------
>
>                 Key: VFS-339
>                 URL: https://issues.apache.org/jira/browse/VFS-339
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Windows
>            Reporter: Daniel R
>            Priority: Critical
>
> VFS unable to support special windows folders (Network, recent, computer, libraries, etc).
> File[] cbFolders = (File[])sun.awt.shell.ShellFolder.get("fileChooserComboBoxFolders");
> and then converting them to FileObjects like so:
> for(File f: cbFolders){
> fileObjArray.add(mgr.resolveFile(f.getPath()));
> }
> The path of these files are like "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
> So I tried to debug it and fixed this bug: https://issues.apache.org/jira/browse/VFS-338
> and then removed:
>  if (startPos < 2)
>         {
>             throw new FileSystemException("vfs.provider.local/not-absolute-file-name.error", uri);
>         }
>  return "//" + extractUNCPrefix(uri, name);
> But now complains about the file doesn't exist. I'll keep trying...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira