commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33690] New: - [vfs] Webdav resource uses "displayname" instead of "name"
Date Tue, 22 Feb 2005 14:55:45 GMT
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


Mime
View raw message