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

ASF GitHub Bot logged work on VFS-467:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/May/19 20:45
            Start Date: 01/May/19 20:45
    Worklog Time Spent: 10m 
      Work Description: markt-asf commented on pull request #8: [VFS-467] 
Improved the comparison of file names
URL: https://github.com/apache/commons-vfs/pull/8
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 235996)
            Time Spent: 10m
    Remaining Estimate: 0h

> 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: jmborer
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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 was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to