You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ibrahim Hasbini (JIRA)" <ji...@apache.org> on 2013/01/17 18:28:13 UTC

[jira] [Commented] (VFS-199) Http/Https listChildren browse support

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

Ibrahim Hasbini commented on VFS-199:
-------------------------------------

I'm trying to test the attached patch.

I'm wondering what is the intention behind this part of the patch?
{code}
           int indexOfSlash = relativeUrl.indexOf('/');
           if (indexOfSlash > 0) {
               // forbid adding subfolders
               relativeUrl = relativeUrl.substring(0, indexOfSlash);
           }
{code}

Thanks.
                
> Http/Https listChildren browse support
> --------------------------------------
>
>                 Key: VFS-199
>                 URL: https://issues.apache.org/jira/browse/VFS-199
>             Project: Commons VFS
>          Issue Type: New Feature
>    Affects Versions: 1.1
>            Reporter: Andrew Franklin
>         Attachments: HttpGetList.txt, VFS-199.patch
>
>
> I think this was lodged at some time ago as VFS-79: http://www.mail-archive.com/commons-dev@jakarta.apache.org/msg83701.html.
> Essentially the ability to browse http via the directory listing structure is reasonably important for a number of use cases. 
> Mario noted in that previous bug that the parsing of the html isn't necessarily trivial but I've submitted a patch that meets my requirements. The patch uses java regular expressions which has the requirement of JVM > 1.4. Submitting in the hope that other users will find it useful and maybe we'll be able to tidy it to the point where it can be integrated into the vfs mainline.

--
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