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

security.auth.PrincipalException when loading calendar portlet after calendar permission change

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.2.5 CE GA6
    • Fix Version/s: 6.2.X EE
    • Component/s: Calendar
    • Labels:
      None
    • OS:
      Mac OS X 10.8
    • JDK:
      Oracle Sun JDK 8
    • Application Servers:
      Apache Tomcat 7.0.42
    • Browsers:
      Chrome (latest)
    • Databases:
      MySQL 5.5
    • Device Type:
      Desktop

      Description

      1. User A create a new calendar and set the permission to allow the calendar to be view by site members.
      2. User B which is one of the site member added the new calendar created by user A. Now, user B able to view all the events under the calendar in the portlet.
      3. However, if User A try to change the calendar permission back to "owner", portal will throw com.liferay.portal.security.auth.PrincipalException when User B try to load the calendar.

      ERROR [http-bio-8080-exec-3][IncludeTag:129] Current URL /web/guest/calendar generates exception: An exception occurred processing JSP page /view_calendar.jsp at line 40__37: long[] calendarIds = StringUtil.split(SessionClicks.get(request, "calendar-portlet-other-calendars", StringPool.BLANK), 0L);_38: _39: for (long calendarId : calendarIds) {_40: Calendar calendar = CalendarServiceUtil.fetchCalendar(calendarId);_41: _42: if (calendar != null) {_43: CalendarResource calendarResource = calendar.getCalendarResource();___Stacktrace: [Sanitized]
      com.liferay.portal.security.auth.PrincipalException
      at com.liferay.calendar.service.permission.CalendarPermission.check(CalendarPermission.java:36)
      at com.liferay.calendar.service.impl.CalendarServiceImpl.fetchCalendar(CalendarServiceImpl.java:91)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      at com.liferay.calendar.service.CalendarServiceUtil.fetchCalendar(CalendarServiceUtil.java:97)
      at org.apache.jsp.view_005fcalendar_jsp._jspService(view_005fcalendar_jsp.java:416)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 15 weeks, 3 days ago

                Packages

                Version Package
                6.2.X EE