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

update links in html content when importing content or duplicating sites

    XMLWordPrintable

    Details

    • Type: (Deprecated) Contributed Patch
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Incorporated
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Kernel
    • Labels:
      None
    • Previous Issue Keys:
      KNL-961

      Description

      I believe this is related to KNL-737 and SAK-16568. I'm not sure if there is another solution in the works, but we simply followed the paradigm started in SAK-16568, by implementing updateEntityReferences() in the CHS. It simply searches and replaces the site ids in html content. Which perhaps is not enough based on KNL-737. But this patch works for us, and would at least have the recursion and other bits done, which might be a good starting place for more work.

      We have folks using this in conjunction with SAK-22561 in order to expose html content as web content tool. A lot of folks author this content using the entity picker or link feature in fckeditor and hence get deep access link with the siteid that need to be fixed when copying.

      In addition we discovered a rather nasty to track down issue in transferCopyEntitiesRefMigrator(), it appears import and duplicate where giving us different results because the cleanup that is called from the import only messes up the cache, the fix was to simply clean out the cache at the end of that method.

      We went through quite a bit of testing with this fix on some pretty substantially sized content, its currently in production.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  k1team KERNEL TEAM (Inactive)
                  Reporter:
                  jbush John Bush
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code