[
https://issues.apache.org/jira/browse/VFS-467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13594570#comment-13594570
]
Jean-Marc Borer edited comment on VFS-467 at 3/6/13 10:20 AM:
--------------------------------------------------------------
After further testing and reading the PROP_FIND (the method used for dir
listings) section of RFC 4918 (http://tools.ietf.org/html/rfc4918#page-35), I
can still observe that the href responses from my webdav servers return
absolute paths relative to the root: hrefs without the host and port info as
you usually encounter in links on website when your remain on the same site.
However, this seems not to be constraint in the RFC since you find an example
with fully qualified href, but for directory lists this wouldn't make sense
anyway since you remain on the same site...
was (Author: jmborer):
After further testing and reading the PROP_FIND section of RFC 4918
(http://tools.ietf.org/html/rfc4918#page-35), I can still observe that the href
responses from my webdav servers return absolute paths relative to the root:
hrefs without the host and port info as you usually encounter in links on
website when your remain on the same site.
However, this seems not to be constraint in the RFC since you find an example
with fully qualified href, but for directory lists this wouldn't make sense
anyway since you remain on the same site...
> WebDAV: list children returns parent directory instead of ignoring it
> ---------------------------------------------------------------------
>
> Key: VFS-467
> URL: https://issues.apache.org/jira/browse/VFS-467
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 2.0, 2.1
> Reporter: Jean-Marc Borer
>
> WebDAV seems to always include the parent folder when returning a list
> of children for a directory. This is due to a wrong test in WebdavFileObject
> doListChildrenResolved:
> if (isCurrentFile(response.getHref(), name))
> {
> continue;
> }
> where
> private boolean isCurrentFile(String href, URLFileName fileName)
> {
> String name = hrefString(fileName);
> if (href.endsWith("/") && !name.endsWith("/"))
> {
> name += "/";
> }
> return href.equals(name);
> }
> where the parent dir returned in the WedbDAV response should be ignored.
> However the test compares a RELATIVE href (first arg), with an ASBOLUTE href
> (second arg)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira