Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-15597

Setting schedule: tool property always causes an exception.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.3
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
      None

      Description

      There is a property called "schedule" defined in the tool properties of sakai.schedule. If this value is set the following exception is always thown.

      org.sakaiproject.portal.api.PortalHandlerException: java.lang.NullPointerException
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:891)
      caused by: java.lang.NullPointerException
      at org.sakaiproject.util.MergedListEntryProviderFixedListWrapper.<init>(MergedListEntryProviderFixedListWrapper.java:65)
      at org.sakaiproject.calendar.tool.CalendarAction.initState(CalendarAction.java:7570)
      at org.sakaiproject.cheftool.VelocityPortletPaneledAction.initState(VelocityPortletPaneledAction.java:273)
      at org.sakaiproject.cheftool.ToolServlet.prepState(ToolServlet.java:488)
      at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:218)
      at org.sakaiproject.cheftool.VelocityPortletPaneledAction.doGet(VelocityPortletPaneledAction.java:1005)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      at org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:56)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      It seems to me that the issue is caused org.sakaiproject.calendar.tool.CalendarAction.setPrimaryCalendarReferenceInState where the value of org.sakaiproject.calendar.tool.CalendarActionState.primaryCalendarReference is not set if the tool property has any value.

      The thing I don't know is what the semantics of this field is. I'll add a patch that assumes it to be either a calendar id, or a full reference.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ncaidin Neal Caidin
                  Reporter:
                  roland Roland Groen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code