incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmür (JIRA) <j...@apache.org>
Subject [jira] [Created] (CLEREZZA-723) Add permission required by wink to the default role
Date Fri, 07 Dec 2012 08:01:25 GMT
Reto Bachmann-Gmür created CLEREZZA-723:
-------------------------------------------

             Summary: Add permission required by wink to the default role
                 Key: CLEREZZA-723
                 URL: https://issues.apache.org/jira/browse/CLEREZZA-723
             Project: Clerezza
          Issue Type: Bug
            Reporter: Reto Bachmann-Gmür


User anonymous gets the following SecurityException from wink:

java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366)
	at java.security.AccessController.checkPermission(AccessController.java:560)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
	at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1679)
	at java.lang.Class.checkMemberAccess(Class.java:2174)
	at java.lang.Class.getDeclaredFields(Class.java:1759)
	at org.apache.wink.common.internal.registry.metadata.AbstractMetadataCollector.parseFields(AbstractMetadataCollector.java:71)
	at org.apache.wink.common.internal.registry.metadata.ResourceMetadataCollector.collectMetadata(ResourceMetadataCollector.java:122)
	at org.apache.wink.osgi.internal.ThreadRootResourceDeploymentConfiguration.getThreadLocalResourceInstance(ThreadRootResourceDeploymentConfiguration.java:77)
	at org.apache.wink.osgi.internal.ThreadRootResourceDeploymentConfiguration.access$000(ThreadRootResourceDeploymentConfiguration.java:47)
	at org.apache.wink.osgi.internal.ThreadRootResourceDeploymentConfiguration$FixedResourceRegistry.getMatchingRootResources(ThreadRootResourceDeploymentConfiguration.java:146)
	at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:62)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
	at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
	at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
	at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
	at org.apache.wink.server.internal.handlers.OptionsMethodHandler.handleRequest(OptionsMethodHandler.java:46)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
	at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
	at org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
	at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
	at org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
	at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
	at org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
	at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
	at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
	at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:48)
	at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)
	at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)
	at org.apache.wink.osgi.WinkRequestProcessor.handleRequest(WinkRequestProcessor.java:93)
	at org.apache.clerezza.platform.typehandlerspace.TypeHandlerSpace.doFilter(TypeHandlerSpace.java:117)



The easiest fix is to add the following permission to the defaultBaseRole:
(java.lang.RuntimePermission "accessDeclaredMembers" "")

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message