You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Antoine van Wel (JIRA)" <ji...@apache.org> on 2009/08/29 12:36:32 UTC
[jira] Created: (WICKET-2441) resource location bug displays
directory listing
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
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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2441) resource location bug displays
directory listing
Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759872#action_12759872 ]
Juergen Donnerstag commented on WICKET-2441:
--------------------------------------------
Since 1.4 is the official release by now, only critical bugs will be fixed in 1.3.
> 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
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-2441) resource location bug displays
directory listing
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-2441.
-----------------------------------
Assignee: Igor Vaynberg
Resolution: Won't Fix
1.3.x is no longer supported
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.