You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Hasan Diwan (Jira)" <ji...@apache.org> on 2023/01/25 19:52:00 UTC

[jira] [Updated] (VFS-831) No such file or directory

     [ https://issues.apache.org/jira/browse/VFS-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hasan Diwan updated VFS-831:
----------------------------
    Description: 
% ls -l /var/tmp/reminders.json.xz
-rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
% hostname
FileContent content = manager.resolveFile("/var/tmp/reminders.json.xz").getContent();

throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from "file:///var/tmp/reminders.json.xz" because it is not a file."

When I try accessing it with "sftp", it gives:

org.apache.commons.vfs2.FileSystemException: Could not find file with URI "sftp://ec2-user@hasan.d8u.us//var/tmp/reminders.json.xz" because it is a relative path, and no base URI was provided.

It gives the same if I eliminate the double slash in the URL as well.


  was:
% ls -l /var/tmp/reminders.json.xz
-rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
% hostname
FileContent content = manager.resolveFile("/var/tmp/reminders.json.xz").getContent();

throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from "file:///var/tmp/reminders.json.xz" because it is not a file."





> No such file or directory
> -------------------------
>
>                 Key: VFS-831
>                 URL: https://issues.apache.org/jira/browse/VFS-831
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>         Environment: OpenJDK 14 FreeBSD 13.1-RELEASE
>            Reporter: Hasan Diwan
>            Priority: Blocker
>
> % ls -l /var/tmp/reminders.json.xz
> -rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
> % hostname
> FileContent content = manager.resolveFile("/var/tmp/reminders.json.xz").getContent();
> throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from "file:///var/tmp/reminders.json.xz" because it is not a file."
> When I try accessing it with "sftp", it gives:
> org.apache.commons.vfs2.FileSystemException: Could not find file with URI "sftp://ec2-user@hasan.d8u.us//var/tmp/reminders.json.xz" because it is a relative path, and no base URI was provided.
> It gives the same if I eliminate the double slash in the URL as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)