Hi !

I faced a similar issue, but with PDF files used as PackageResource.

It boils down to wicket relying now by default on SecurePackageResourceGuard which only authorizes file with some extensions (defined in the SecurePackageResourceGuard constructor).

What I did was create my own subclass of SecurePackageResourceGuard as follows:
public class MyResourceGuard extends SecurePackageResourceGuard {

        /**
         * Default constructor
         */
        public EDCResourceGuard() {
                super(new SimpleCache(100));
                addPattern("+*.pdf");
        }

}

And then in my Application subclass, in the init method, I do
getResourceSettings().setPackageResourceGuard(new MyResourceGuard ());

I guess if you simply add the following line
addPattern("+*.htm") to your MyResourceGuard constructor, your error will go away.

Hope this helps !

Antoine.


Le 21/03/2012 11:42, Pierre Goiffon a écrit :
Hello,

After upgrading from Wicket 1.4.19 to Wicket 1.4.20 I get exceptions in
TinyMCE. We're using the Wicketstuff integration.
When opening TinyMCE lightboxes I get exception like :

org.apache.wicket.markup.html.PackageResource$PackageResourceBlockedException:
Access denied to (static) package resource
com/interview/tool/wicketstuff/tinymce/themes/advanced/image.htm. See
IPackageResourceGuard

It works perfectly in Wicket 1.4.18 or 1.4.19, but when updating in the
pom to the 1.4.20 version we get that exception.
I can't figure what ticket could be related in the 1.4.20 changelog
(https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12317570)

Any idea ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to