You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Clint Checketts (JIRA)" <ji...@apache.org> on 2010/09/16 06:19:32 UTC

[jira] Updated: (WICKET-3050) AccessControlException thrown when security manager denies access

     [ https://issues.apache.org/jira/browse/WICKET-3050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clint Checketts updated WICKET-3050:
------------------------------------

    Attachment: enableReplaceObject_patch.txt

Here is a patch that catches the exception and logs it (though a log.debug or log.info would probably be better)

I'm not certain I understand the purpose of the enableReplaceObject call, so I'm not certain if the caught exception could lead to other problems.

> AccessControlException thrown when security manager denies access
> -----------------------------------------------------------------
>
>                 Key: WICKET-3050
>                 URL: https://issues.apache.org/jira/browse/WICKET-3050
>             Project: Wicket
>          Issue Type: Bug
>         Environment: Google App Engine
>            Reporter: Clint Checketts
>             Fix For: 1.4.13, 1.5-M3
>
>         Attachments: enableReplaceObject_patch.txt
>
>
> Google App Engine locks down various environmental pieces. The ModelChange class tries to do some serialization which causes the exception. 
> Caused by: java.security.AccessControlException: access denied (java.io.SerializablePermission enableSubstitution)
> 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:355)
> 	at java.security.AccessController.checkPermission(AccessController.java:567)
> 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
> 	at java.io.ObjectOutputStream.enableReplaceObject(ObjectOutputStream.java:609)
> 	at org.apache.wicket.util.lang.Objects$ReplaceObjectOutputStream.<init>(Objects.java:183)
> 	at org.apache.wicket.util.lang.Objects$ReplaceObjectOutputStream.<init>(Objects.java:174)
> 	at org.apache.wicket.util.lang.Objects.cloneModel(Objects.java:461)
> 	at org.apache.wicket.version.undo.ModelChange.<init>(ModelChange.java:103)
> 	at org.apache.wicket.version.undo.ChangeList.componentModelChanging(ChangeList.java:64)
> 	at org.apache.wicket.version.undo.UndoPageVersionManager.componentModelChanging(UndoPageVersionManager.java:123)
> 	at org.apache.wicket.Page.componentModelChanging(Page.java:1598)
> 	at org.apache.wicket.Component.modelChanging(Component.java:2206)
> 	at org.apache.wicket.Component.setDefaultModelObject(Component.java:3046)
> 	at org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.setSelectedTab(TabbedPanel.java:338)
> 	at org.apache.wicket.extensions.markup.html.tabs.TabbedPanel$5.onClick(TabbedPanel.java:319)
> 	at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:224)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.