Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
-
Fix Version/s: 6.1.X EE, 6.2.0 CE M3
-
Component/s: Security, Security > PACL
-
Branch Version/s:6.1.x
-
Backported to Branch:Committed
-
Similar Issues:
Description
I use org.codehaus.jackson.map.ObjectMapper in my plugin as:
ObjectMapper objectMapper = new ObjectMapper();
If Security Manager is enabled, then it throws the exception:
14:49:45,942 WARN [http-bio-8080-exec-74][RuntimeChecker:256] Attempted to access declared members
Oct 30, 2012 2:49:45 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet twostepauthconfig Servlet threw exception
java.lang.SecurityException: Attempted to access declared members
at com.liferay.portal.security.pacl.checker.BaseChecker.throwSecurityException(BaseChecker.java:259)
at com.liferay.portal.security.pacl.checker.RuntimeChecker.checkPermission(RuntimeChecker.java:71)
After debug, I found out that the source of the problem is in invocation of BaseReflectChecker which does not support sun.reflect.annotation.AnnotationType and returns "false".

Committed on:
Portal 6.2.x GIT ID: 39f681dbd3919bee8be60a1bc39c07d818b7de92.