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

[vfs] Webdav resource uses "displayname" instead of "name"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • Operating System: Windows 2000
      Platform: PC

    • 33690

    Description

      The VFS webdav provider sets the name of the file to be that of the
      "displayname" of the underlying WebDAV resource. The display name is often a
      human readable name, and not meant to be used as the path name. It would be more
      correct to set it to be simply the name of the file. This is done in
      WebdavFileObject.doListChildrenResolved which currently reads:
      WebdavFileObject fo =
      (WebdavFileObject)getFileSystem().resolveFile(getName().resolveName(dav.getDisplayName(),
      NameScope.CHILD));
      whereas it should read:
      WebdavFileObject fo = (WebdavFileObject)
      getFileSystem().resolveFile(getName().resolveName(dav.getName(), NameScope.CHILD));

      This would create a correct path. A client that would want to access the human
      readable name would do so by using the attributes of the file object.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rickardoberg Rickard ?berg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: