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

Forums updateEntityReferences causes an NPE when importing

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.0, 12.1
    • Fix Version/s: 12.2, 19.0
    • Component/s: Forums Tool
    • Labels:
      None
    • 12 status:
      Resolved
    • Test Plan:
      Hide
      1. originating site create the following:
        1. A resource (file upload)
        2. Forums with some new topics
          1. The description of the forum and topics should have a link to the resource
      2. destination site
        1. perform a site import selecting the originating site
        2. select resources and forums
        3. Finish
      3. VERIFY the following
        1. the same foums
        2. the same topics
        3. the links in those forums and topics have been updated to the destination site
      Show
      originating site create the following: A resource (file upload) Forums with some new topics The description of the forum and topics should have a link to the resource destination site perform a site import selecting the originating site select resources and forums Finish VERIFY the following the same foums the same topics the links in those forums and topics have been updated to the destination site

      Description

      When importing forums that have topics the following exception is seen:

      24-May-2018 10:51:24.572 ERROR [pool-6-thread-4] org.sakaiproject.sitemanage.impl.SiteManageServiceImpl.updateEntityReferences Error encountered while asking Entity                                                                        Transfer to updateEntityReferences at site: 41592-2018SU
      java.lang.NullPointerException
              at org.sakaiproject.component.app.messageforums.ui.DiscussionForumManagerImpl.getEventMessage(DiscussionForumManagerImpl.java:2430)

      Turned off creating events during an import as well, as its probably not ideal to generate them during an import.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  ern Earle R Nietzel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code