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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

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

ASF GitHub Bot (Jira)

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

Glenn Auld commented on VFS-199:

Hi again,

A follow up on my previous entry.
I managed to repackage the patched code back into the vf2-2.0.jar and ran some tests.

I'm connecting to an HTTPS URL and can resolve the URL such as https://site/ without an issue, although there are no children showing up.

I actually want to resolve to https://site/folder/subfolder and list the files there.
Unfortunately I am getting a FileSystemException from the doGetType method.
It seems the 'status' being returned is not one of HTTP_OK, HTTP_NOT_FOUND or HTTP_GONE.

So I logged onto the site via browser and had a closer look.
Once logged in, the site takes the browser to a page that *retains* the site URL (so without folders) and lists the files in a *separate frame* to the main page.

Note that I can still download a file if I resolve it *directly* (but I don't want to do this).

e.g. https://site/folder/subfolder/filename

But if I try to use the doListChildren() call, at the subfolder level I get the exception.
Note that I *also* get the same exception (Head method failed) when attempting to use findFiles().
So it would seem there is a fundamental problem with trying to resolve specific paths on this site.

If anyone has any suggestions, it must just help as there isn't a great deal of info around on this.

> 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, VFS-199_updated.patch
> I think this was lodged at some time ago as VFS-79: http://www.mail-archive.com/commons-dev@.../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