Hi,

Please create a quickstart and attach it to Jira.
Both 1.5.7 and 6.0.0-beta2 should behave the same way.
For some reason the mounted page doesn't match and Wicket tries to
serve this url with Resource mapper and thus it makes the security
check ...

On Thu, Jun 14, 2012 at 4:08 AM, Rafał Krupiński <[email protected]> wrote:
> I've just changed wicket dependency from 1.5.6 to 6.0.0-beta2 and
> s/IClusterable/Serializable/
> ...and this is what I got:
>
> Unexpected RuntimeException
>
> Last cause: Access denied to (static) package resource
> com/hashnot/nbp. See IPackageResourceGuard
> Root cause:
>
> org.apache.wicket.request.resource.PackageResource$PackageResourceBlockedException:
> Access denied to (static) package resource com/hashnot/nbp. See
> IPackageResourceGuard
> at 
> org.apache.wicket.request.resource.PackageResource.internalGetResourceStream(PackageResource.java:459)
> [snip]
>
>
>
> This is the situation:
>
> mypackage.MyApplication{
>  void init(){
>  mountPage("nbp", MyPage.class)
>  //other similar mounts
>  }
> }
>
> mypackage.BasePage{
> //base Page with links to all mounted pages
> }
>
> mypackage.nbp.MyPage extends BasePage{}
>
> (and of course the markup)
> All links between mounted pages are handled by BasePage class and its markup.
>
> From the BasePage's point of view there is page mounted under "nbp"
> and a subpackage nbp.
>
> After I changed the mount from "nbp" to "nbp-rates" it started working,
> so it looks like in case of conflicting mount-path and relative
> package name there is a regression:
> * in 1.5.x linking to X meant linking to mounted page
> * in 6.0 it means linking to package
>
>
> Can someone confirm it?
> --
> Pozdrawiam / Best Regards
> Rafal Krupinski
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to