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

Peter Ertl commented on WICKET-4431:
------------------------------------

it should be the same since specifying 'int' did resolve into the default 
package. 

the logic is 

   org.apache.wicket.application.AbstractClassResolver.resolveClass("int") -> 
int.class

and

   int.class.getPackage() -> null (default package)

in current trunk any class any attempt to access the default package

   class.getPackage() == null

is (hopefully) blocked now.
                
> Possible to retrieve files from WEB-INF (e.g., web.xml).
> --------------------------------------------------------
>
>                 Key: WICKET-4431
>                 URL: https://issues.apache.org/jira/browse/WICKET-4431
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.4
>            Reporter: Sebastiaan van Erk
>            Assignee: Peter Ertl
>            Priority: Critical
>
> The following URL works to get the web.xml from the WEB-INF directory:
> http://localhost:8080/wicket/resource/int/WEB-INF/web.xml
> This is because the WebApplicationPath constructor by default adds / allowing 
> us to access the resources from the servlet context.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to