You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/02/22 15:55:45 UTC

DO NOT REPLY [Bug 33690] New: - [vfs] Webdav resource uses "displayname" instead of "name"

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33690>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33690

           Summary: [vfs] Webdav resource uses "displayname" instead of
                    "name"
           Product: Commons
           Version: unspecified
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: major
          Priority: P2
         Component: Sandbox
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: rickard@dreambean.com


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.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org