Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-30769

Security Manager fails with usage of org.codehaus.jackson.map.ObjectMapper

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed

      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".

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 39 weeks, 2 days ago