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

HttpFileObject read/write attributes should reflect underlying FileSystem capabilities

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None

      Description

      When you do a:
      FileObject fo = fsManager.resolveFile("http://host:port/somefile.xml");
      VFS will create a HTTP FileSystem that has only read capabilities. However, fo.isWritable() returns true where
      fo.getFileSystem().hasCapability(Capability.WRITE_CONTENT)); return false as expected.

      This is inconsistent in my opinion and should be fixed or is it intentionally implemented that way?

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary Gregory
              Reporter:
              jmborer jmborer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: