PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-35057

Calendar - Asset Publisher integration not complete, unable to define proper scoping for Calendar events

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE M6, 6.2.10 EE GA1, 6.2.X EE
    • Fix Version/s: 6.2.X EE, 7.0.0 M1
    • Component/s: Calendar
    • Labels:
    • Environment:
    • Branch Version/s:
      6.2.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      4
    • Similar Issues:
      Show 5 results 

      Description

      Steps to reproduce

      1. Add the Calendar portlet to a page.
      2. Add two instances of the Asset Publisher to the page.
      3. Click on the cog icon () at the title bar of one of the Asset Publisher instances.
      4. Click in "Configuration"
      5. In the "Filter" section, in the text box below "[Contains] [Any] of the following [Tags]", type "test".
      6. Click in the botão "Add" below.
      7. At the bottom, click in "Save"; close the dialog.
      8. In the Calendar portlet, click in "Add Event".
      9. In the section "Details", select the current site's calendar.
      10. In the section "Categorization", add the tag "test" to the calendar event booking.
      11. At the bottom, click in "Save", Close the dialog
      12. User must "Accept" event
      13. Refresh the window

      Expected results

      • The calendar event will display in both Asset Publisher instances

      Actual results

      • The Asset Publisher with filtering options is unable to display the calendar event booking. The other Asset Publisher displays the booking.

        Issue Links

          Activity

          Hide
          Juan Gonzalez added a comment - - edited

          Can reproduce in current master. Calendar assets aren't displayed even without adding tags to show in Asset Publisher.

          Show
          Juan Gonzalez added a comment - - edited Can reproduce in current master. Calendar assets aren't displayed even without adding tags to show in Asset Publisher.
          Hide
          Kenji Heigel added a comment -

          As the implementation was not complete, I experienced a memory leak issue using the following steps:

          1. Deploy the Calendar portlet
          2. Add asset publisher to a page
          3. Click the cog > Configurations
          4. Change the Asset selection to Manual
          5. Under Asset Entries click Select > Calendar Event
          6. Select Calendar (another popup will appear)

          After the second iframe appears, it will load continuously. This will eventually cause JVM out of memory errors in the console. Also in task manager, the java process associated with liferay will continually grow larger.

          Calendar configurations in AP should probably temporarily removed so that users do not encounter this error or similar ones.

          Console exceptions:

           
          Oct 30, 2013 11:46:41 PM org.apache.catalina.core.ApplicationDispatcher invoke
          SEVERE: Servlet.service() for servlet jsp threw exception
          java.lang.OutOfMemoryError: Java heap space
                  at com.liferay.portal.kernel.util.StringBundler.expandCapacity(StringBundler.java:315)
                  at com.liferay.portal.kernel.util.StringBundler.append(StringBundler.java:123)
                  at com.liferay.portal.kernel.io.unsync.UnsyncStringWriter.write(UnsyncStringWriter.java:163)
                  at com.liferay.portal.kernel.io.unsync.UnsyncStringWriter.write(UnsyncStringWriter.java:175)
                  at com.liferay.portal.kernel.io.unsync.UnsyncPrintWriter.write(UnsyncPrintWriter.java:386)
                  at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:325)
                  at com.liferay.portal.kernel.io.unsync.UnsyncPrintWriter.write(UnsyncPrintWriter.java:386)
                  at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:325)
                  at java.io.Writer.write(Writer.java:157)
                  at org.apache.jsp.html.portlet.asset_005fbrowser.view_jsp._jspService(view_jsp.java:855)
                  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
                  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
                  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
                  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                  at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
                  at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
                  at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
                  at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:55)
                  at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
                  at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
                  at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
                  at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
                  at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
                  at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3141)
          
          23:46:41,681 ERROR [http-bio-8080-exec-9][IncludeTag:129] Current URL /group/control_panel/manage?p_p_auth=uNR1eV7k&p_p_id=172&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&_172_struts_action=%2Fasset_browser%2Fview&_172_groupId=10184&_172_selectedGroupIds=10184&_172_eventName=_101_INSTANCE_n4GOQZE
          NgYcC_selectAsset&_172_typeSelection=com.liferay.calendar.model.CalendarBooking generates exception: An exception occurred processing JSP page /html/portlet/asset_browser/view.jsp at line 78____75:                           className="com.liferay.portal.kernel.search.Document"__76:
                  escapedModel="<%= true %>"__77:                                 modelVar="doc"__78:             >__79: __80:                            <%__81:                                 long assetEntryId = 0;______Stacktrace: [Sanitized]
          java.lang.OutOfMemoryError: Java heap space
                  at com.liferay.portal.kernel.util.StringBundler.expandCapacity(StringBundler.java:315)
                  at com.liferay.portal.kernel.util.StringBundler.append(StringBundler.java:123)
                  at com.liferay.portal.kernel.io.unsync.UnsyncStringWriter.write(UnsyncStringWriter.java:163)
                  at com.liferay.portal.kernel.io.unsync.UnsyncStringWriter.write(UnsyncStringWriter.java:175)
                  at com.liferay.portal.kernel.io.unsync.UnsyncPrintWriter.write(UnsyncPrintWriter.java:386)
                  at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:325)
                  at com.liferay.portal.kernel.io.unsync.UnsyncPrintWriter.write(UnsyncPrintWriter.java:386)
                  at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:325)
                  at java.io.Writer.write(Writer.java:157)
                  at org.apache.jsp.html.portlet.asset_005fbrowser.view_jsp._jspService(view_jsp.java:855)
                  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
                  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
                  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
                  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
          
          Show
          Kenji Heigel added a comment - As the implementation was not complete, I experienced a memory leak issue using the following steps: Deploy the Calendar portlet Add asset publisher to a page Click the cog > Configurations Change the Asset selection to Manual Under Asset Entries click Select > Calendar Event Select Calendar (another popup will appear) After the second iframe appears, it will load continuously. This will eventually cause JVM out of memory errors in the console. Also in task manager, the java process associated with liferay will continually grow larger. Calendar configurations in AP should probably temporarily removed so that users do not encounter this error or similar ones. Console exceptions: Oct 30, 2013 11:46:41 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: Java heap space at com.liferay.portal.kernel.util.StringBundler.expandCapacity(StringBundler.java:315) at com.liferay.portal.kernel.util.StringBundler.append(StringBundler.java:123) at com.liferay.portal.kernel.io.unsync.UnsyncStringWriter.write(UnsyncStringWriter.java:163) at com.liferay.portal.kernel.io.unsync.UnsyncStringWriter.write(UnsyncStringWriter.java:175) at com.liferay.portal.kernel.io.unsync.UnsyncPrintWriter.write(UnsyncPrintWriter.java:386) at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:325) at com.liferay.portal.kernel.io.unsync.UnsyncPrintWriter.write(UnsyncPrintWriter.java:386) at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:325) at java.io.Writer.write(Writer.java:157) at org.apache.jsp.html.portlet.asset_005fbrowser.view_jsp._jspService(view_jsp.java:855) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544) at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:55) at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78) at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53) at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295) at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192) at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83) at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3141) 23:46:41,681 ERROR [http-bio-8080-exec-9][IncludeTag:129] Current URL /group/control_panel/manage?p_p_auth=uNR1eV7k&p_p_id=172&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&_172_struts_action=%2Fasset_browser%2Fview&_172_groupId=10184&_172_selectedGroupIds=10184&_172_eventName=_101_INSTANCE_n4GOQZE NgYcC_selectAsset&_172_typeSelection=com.liferay.calendar.model.CalendarBooking generates exception: An exception occurred processing JSP page /html/portlet/asset_browser/view.jsp at line 78____75: className= "com.liferay.portal.kernel.search.Document" __76: escapedModel= " <%= true %> " __77: modelVar= "doc" __78: >__79: __80: <%__81: long assetEntryId = 0;______Stacktrace: [Sanitized] java.lang.OutOfMemoryError: Java heap space at com.liferay.portal.kernel.util.StringBundler.expandCapacity(StringBundler.java:315) at com.liferay.portal.kernel.util.StringBundler.append(StringBundler.java:123) at com.liferay.portal.kernel.io.unsync.UnsyncStringWriter.write(UnsyncStringWriter.java:163) at com.liferay.portal.kernel.io.unsync.UnsyncStringWriter.write(UnsyncStringWriter.java:175) at com.liferay.portal.kernel.io.unsync.UnsyncPrintWriter.write(UnsyncPrintWriter.java:386) at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:325) at com.liferay.portal.kernel.io.unsync.UnsyncPrintWriter.write(UnsyncPrintWriter.java:386) at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:325) at java.io.Writer.write(Writer.java:157) at org.apache.jsp.html.portlet.asset_005fbrowser.view_jsp._jspService(view_jsp.java:855) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
          Hide
          Lu Liu added a comment - - edited

          Reproduced on:
          6.2.10 EE GA1
          Tomcat 7.0 + MySQL 5. Portal ee-6.2.x EE GIT ID: 8020e08719ca11b0f672cb2153229551c7a5b540.
          Plugins ee-6.2.x EE GIT ID: c04d7141c14d3b9e0011f1ac46259b9b060d3c32.

          The Asset Publisher is unable to display the calendar event booking. And like Juan Gonzalez said, Calendar assets aren't displayed even without adding tags to show in Asset Publisher.

          Show
          Lu Liu added a comment - - edited Reproduced on: 6.2.10 EE GA1 Tomcat 7.0 + MySQL 5. Portal ee-6.2.x EE GIT ID: 8020e08719ca11b0f672cb2153229551c7a5b540. Plugins ee-6.2.x EE GIT ID: c04d7141c14d3b9e0011f1ac46259b9b060d3c32. The Asset Publisher is unable to display the calendar event booking. And like Juan Gonzalez said, Calendar assets aren't displayed even without adding tags to show in Asset Publisher.
          Hide
          Marcellus Tavares added a comment -

          Just started reviewing :)

          Sent from GH.

          Show
          Marcellus Tavares added a comment - Just started reviewing :) Sent from GH .
          Hide
          Sharon Choi added a comment -

          PASSED Manual Testing following the steps in the description.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal ee-6.2.x EE GIT ID: b3a8bbc1600838b1c69064bf84de44a89fbc3444.
          Plugins ee-6.2.x EE GIT ID: 0b0c1bf1c6e892e3501af98ac596af3ff63e18bb.
          Tomcat 7.0 + MySQL 5. Portal master GIT ID: 61058da8d9d95da84e425fb49c6b3bc6e79d3d95.
          Plugins master GIT ID: 2bba6ba1792de4d5994dfb49c46e5165501067de.

          Asset Publisher integration with calendar events has been implemented successfully. Calendar events with tags now display in the Asset Publisher portlet, and everything seems to be working correctly without errors on the console.

          Show
          Sharon Choi added a comment - PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 7.0 + MySQL 5. Portal ee-6.2.x EE GIT ID: b3a8bbc1600838b1c69064bf84de44a89fbc3444. Plugins ee-6.2.x EE GIT ID: 0b0c1bf1c6e892e3501af98ac596af3ff63e18bb. Tomcat 7.0 + MySQL 5. Portal master GIT ID: 61058da8d9d95da84e425fb49c6b3bc6e79d3d95. Plugins master GIT ID: 2bba6ba1792de4d5994dfb49c46e5165501067de. Asset Publisher integration with calendar events has been implemented successfully. Calendar events with tags now display in the Asset Publisher portlet, and everything seems to be working correctly without errors on the console.
          Hide
          Joseph Chin added a comment - - edited

          PASSED Manual Testing following the steps in the description.

          Fixed on:
          Tomcat 7.0.42 + MySQL 5.5. Portal 6.2.0 CE GA1.
          Plugins 6.2.x GIT ID: f2037ddb7e3b2d357ef2ed676d3537dcf9b9d52f.
          Tomcat 7.0.42 + MySQL 5.5. Portal 6.2.10 EE GA1.
          Plugins ee-6.2.10 GIT ID: d8a7e697e776b53d59ef49c52f0ef3324c54a2a2.

          Asset Publisher does not integrate with Calendar events.

          Show
          Joseph Chin added a comment - - edited PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 7.0.42 + MySQL 5.5. Portal 6.2.0 CE GA1. Plugins 6.2.x GIT ID: f2037ddb7e3b2d357ef2ed676d3537dcf9b9d52f. Tomcat 7.0.42 + MySQL 5.5. Portal 6.2.10 EE GA1. Plugins ee-6.2.10 GIT ID: d8a7e697e776b53d59ef49c52f0ef3324c54a2a2. Asset Publisher does not integrate with Calendar events.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 18 weeks, 4 days ago

                Development

                  Structure Helper Panel