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

NPE in UIPermissionsManagerImpl when using iSyllabus link tool

    XMLWordPrintable

    Details

    • Type: (Deprecated) Contributed Patch
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 10.0
    • Fix Version/s: None
    • Component/s: Forums Tool, Linktool
    • Labels:
      None

      Description

      Test plan: Can be reproduced with any tool containing the ckeditor, just using announcements as an example.

      1. Create a course site with forums, resources, and assignments, and announcements.
      2. As an instructor user navigate to the announcements tool and click add.
      3. Click the link tool button.
      4. Click browse server.

      The following stack trace appears in catalina.out:

      ERROR http-bio-8080-exec-1 org.sakaiproject.component.app.messageforums.ui.UIPermissionsManagerImpl -
      java.lang.NullPointerException
      at org.sakaiproject.component.app.messageforums.ui.UIPermissionsManagerImpl.getContextId(UIPermissionsManagerImpl.java:1435)
      at org.sakaiproject.component.app.messageforums.ui.UIPermissionsManagerImpl.getTopicItemsByUser(UIPermissionsManagerImpl.java:1252)
      at org.sakaiproject.component.app.messageforums.ui.UIPermissionsManagerImpl.isRead(UIPermissionsManagerImpl.java:559)
      at org.sakaiproject.component.app.messageforums.entity.TopicEntityProviderImpl.getEntities(TopicEntityProviderImpl.java:348)
      at org.sakaiproject.entitybroker.impl.EntityBrokerManagerImpl.internalGetEntities(EntityBrokerManagerImpl.java:590)
      at org.sakaiproject.entitybroker.impl.EntityBrokerManagerImpl.getEntitiesData(EntityBrokerManagerImpl.java:442)
      at org.sakaiproject.entitybroker.impl.EntityBrokerImpl.getEntities(EntityBrokerImpl.java:295)
      at org.sakaiproject.connector.fck.ConnectorHelper.getForumTopicReferences(ConnectorHelper.java:288)
      at org.sakaiproject.connector.fck.FCKConnectorServlet.getForumsAndThreads(FCKConnectorServlet.java:917)
      at org.sakaiproject.connector.fck.FCKConnectorServlet.doGet(FCKConnectorServlet.java:300)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
      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.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      at java.lang.Thread.run(Thread.java:695)

      I am attaching a patch for trunk to fix this.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                maintenanceteam Core Team
                Reporter:
                ktakacs Kevin Takacs
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration