Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-831

No such file or directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 2.9.0
    • None
    • None
    • OpenJDK 14 FreeBSD 13.1-RELEASE

    Description

      % ls -l /var/tmp/reminders.json.xz
      rw-rr- 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.

      Attachments

        1. id_ecdsa.pub
          0.2 kB
          Hasan Diwan

        Activity

          People

            Unassigned Unassigned
            hd1 Hasan Diwan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: