You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Dmitry Torba (JIRA)" <ji...@apache.org> on 2015/03/27 01:13:53 UTC

[jira] [Commented] (WICKET-2441) resource location bug displays directory listing

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

Dmitry Torba commented on WICKET-2441:
--------------------------------------

this seems to be reproducible on 6.18 as well

> resource location bug displays directory listing
> ------------------------------------------------
>
>                 Key: WICKET-2441
>                 URL: https://issues.apache.org/jira/browse/WICKET-2441
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.3.7
>         Environment: ubuntu 8.10
>            Reporter: Antoine van Wel
>            Assignee: Igor Vaynberg
>
> accessing a url like this
> /resources/my.url.MyPage/test
> will display a list of all available files in resources such as applicationContext.xml
> I've traced the problem to ResourceNameIterator lines 92 and further;
> 	this.extensions = Strings.afterLast(path, '.');
> 	path = Strings.beforeLast(path, '.');
> the path will at that stage will not contain any "." so effectively this will cause this.extensions and path to be cleared, eventually resulting in a resourcestream being returned of the resource directory.
> The issue seems to be solved in 1.4.1
> --Antoine



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)