Forums links to content do not migrate when using Import from Site > Merge/Replace

Description

SUMMARY

Testing link migration involves all 4 methods of re-using content: 1) Re-using materials during site creation; 2) Duplicating a site; 3) creating a new site, then using Import from Site > Merge; and 4) creating a new site, then using Import from Site > Replace.

When testing link migration in the Forums tool, the following problems with the 2 Importing from Site options were identified:

  • Import > Merge: LINKS WITHIN FORUMS DO NOT MIGRATE - STILL POINT TO ITEMS IN ORIGINATING SITE

  • Import > Replace: LINKS WITHIN FORUMS DO NOT MIGRATE - STILL POINT TO ITEMS IN ORIGINATING SITE

Links migrated as expected when Re-using materials or Duplicating a site (test results details below).

TESTING DETAILS

"Applies to links to assignments, forums, resources, and quizzes embedded in forum/topic long descriptions in originating site and assumes linked assn/forum has been posted in new site(s), i.e., it is no longer in Draft mode; conversations are not copied forward:

RESULTS OF LINK MIGRATION TO ASSIGNMENT(S) FROM FORUMS (ALL METHODS)

  • Re-use Materials: Link to assn migrates with brackets [] around text (expected)

  • Duplicate Site: Link to assn migrates with brackets [] around text (expected)

  • Import > Merge: ASSN LINK DOES NOT MIGRATE; NO BRACKETS; OPENS ASSN IN ORIGINATING SITE

  • Import > Replace: ASSN LINK DOES NOT MIGRATE; NO BRACKETS; OPENS ASSN IN ORIGINATING SITE"

RESULTS OF LINK MIGRATION TO FORUM > TOPIC(S) FROM FORUMS (ALL METHODS)

  • Re-use: Link to forum topic migrates with brackets [] around text (expected)

  • Duplicate: Link to forum topic migrates with brackets [] around text (expected)

  • Import > Merge: FORUM TOPIC LINK DOES NOT MIGRATE; NO BRACKETS; OPENS TOPIC IN ORIGINATING SITE

  • Import > Replace: FORUM TOPIC LINK DOES NOT MIGRATE; NO BRACKETS; OPENS TOPIC IN ORIGINATING SITE"

RESULTS OF LINK MIGRATION TO RESOURCE FROM FORUMS (ALL METHODS)

  • Re-use: Link to resources file migrates and opens file in new site (expected)

  • Duplicate: Link to resources file migrates and opens file in new site (expected)

  • Import > Merge: RESOURCES LINK DOES NOT MIGRATE; OPENS RESOURCE STORED IN ORIGINATING SITE

  • Import > Replace: RESOURCES LINK DOES NOT MIGRATE; OPENS RESOURCE STORED IN ORIGINATING SITE"

RESULTS OF LINK MIGRATION TO QUIZ FROM FORUMS (ALL METHODS)

  • Re-use: Link to quiz file migrates by removing link and adding brackets [] around text (expected)

  • Duplicate: Link to quiz file migrates by removing link and adding brackets [] around text (expected)

  • Import > Merge: QUIZ LINK DOES NOT MIGRATE; LINK (TO QUIZ IN ORIGINATING SITE) STILL ACTIVE; NO BRACKETS

  • Import > Replace: QUIZ LINK DOES NOT MIGRATE; LINK (TO QUIZ IN ORIGINATING SITE) STILL ACTIVE; NO BRACKETS"

Environment

None

Test Plan

None

Activity

Show:

Mark Golbeck August 27, 2024 at 8:15 AM

We're closing this Jira issue for now. We can reopen it if need be. Thank you.

Derek Ramsey April 21, 2016 at 4:41 PM

Replicated on 10x, 11x, trunk. Bumping priority.

Kenneth Aragon April 4, 2016 at 10:14 AM

I tested this on a vanilla 10.6 and was able to duplicate this behavior. Below is the stack I get in the logs when attempting to import forums and resources:

2016-04-04 08:11:09,455 WARN SiteImportThreada6a3fbca-ede7-4435-ad4b-b9bbcb3bae8e org.sakaiproject.site.tool.SiteAction - Error encountered while asking EntityTransfer to updateEntityReferences at site: a6a3fbca-ede7-4435-ad4b-b9bbcb3bae8e
java.lang.NullPointerException
at org.sakaiproject.component.app.messageforums.ui.DiscussionForumManagerImpl.getEventMessage(DiscussionForumManagerImpl.java:2416)
at org.sakaiproject.component.app.messageforums.ui.DiscussionForumManagerImpl.saveTopic(DiscussionForumManagerImpl.java:1229)
at org.sakaiproject.component.app.messageforums.ui.DiscussionForumManagerImpl.saveTopic(DiscussionForumManagerImpl.java:1203)
at org.sakaiproject.component.app.messageforums.ui.DiscussionForumManagerImpl.saveTopic(DiscussionForumManagerImpl.java:1198)
at org.sakaiproject.component.app.messageforums.ui.DiscussionForumManagerImpl.saveTopic(DiscussionForumManagerImpl.java:1179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy30.saveTopic(Unknown Source)
at org.sakaiproject.component.app.messageforums.DiscussionForumServiceImpl.updateEntityReferences(DiscussionForumServiceImpl.java:1342)
at org.sakaiproject.site.tool.SiteAction.updateEntityReferences(SiteAction.java:12676)
at org.sakaiproject.site.tool.SiteAction.importToolIntoSiteMigrate(SiteAction.java:10985)
at org.sakaiproject.site.tool.SiteAction.access$200(SiteAction.java:173)
at org.sakaiproject.site.tool.SiteAction$9.run(SiteAction.java:8687)

Won't Fix

Details

Assignee

Reporter

Affects versions

Priority

Created March 27, 2014 at 7:17 AM
Updated August 27, 2024 at 8:15 AM
Resolved August 27, 2024 at 8:15 AM