[ 
https://issues.apache.org/jira/browse/VFS-467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13594538#comment-13594538
 ] 

Jean-Marc Borer edited comment on VFS-467 at 3/11/13 1:39 PM:
--------------------------------------------------------------

It checked this with:
* Tomcat + webdav servlet
* Apache + webdav plugin

So I can certainly say it is supposed to work that way (which seems obviously 
logic to me, by the way). If someone can prove me the opposite, (s)he is 
welcome.

I also tried to look for this information in the RFCs, but was not able to find 
it. I wanted also to know if the RFCs specify that a dir list should always 
include the parent itself. Not sure it is defined there...
                
      was (Author: jmborer):
    It checked this with:
* Jackrabbit
* Tomcat + webdav servlet
* Apache + webdav plugin

So I can certainly say it is supposed to work that way (which seems obviously 
logic to me, by the way). If someone can prove me the opposite, (s)he is 
welcome.

I also tried to look for this information in the RFCs, but was not able to find 
it. I wanted also to know if the RFCs specify that a dir list should always 
include the parent itself. Not sure it is defined there...
                  
> 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

Reply via email to