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

Web services - CopySiteContent does not work with EntityTransferrer

    Details

    • 11 status:
      Resolved
    • Test Plan:
      Hide

      -Create a site A with several tools that include: content with links to resources in the same site, assignments embedded into lessons pages, uploaded resources and, in general, any tool which implements EntityTransferrer and EntityTransferrerRefMigrator interfaces.

      -Create a site B with the same set of tools (as copying content does not create the tools in target site).

      -Use a CXF client, like the one attached to this JIRA, to call copySiteContent WS in order to copy site A contents into site B.

      -Test that content in site B is correctly copied, including resources, updated links that now points to B's resources and assignments embedded in lessons that points to the migrated assignments in B.

      Show
      -Create a site A with several tools that include: content with links to resources in the same site, assignments embedded into lessons pages, uploaded resources and, in general, any tool which implements EntityTransferrer and EntityTransferrerRefMigrator interfaces. -Create a site B with the same set of tools (as copying content does not create the tools in target site). -Use a CXF client, like the one attached to this JIRA, to call copySiteContent WS in order to copy site A contents into site B. -Test that content in site B is correctly copied, including resources, updated links that now points to B's resources and assignments embedded in lessons that points to the migrated assignments in B.

      Description

      Currently, SiteAction code for migrating content between sites works in two different ways: first it migrates content from resources via contentHostingService and later it migrates the rest of the tools that implement EntityTransferrer and EntityTransferrerRefMigrator interfaces, using the methods that each tool provides.

      copySiteContent and copySiteContentForTool web services and their linked method transferCopyEntities are obsolete and doesn't support EntityTransferrer methods.

      This causes that only Resources content is guaranteed to be migrated. The rest of the tools behaves in a different manner. At least, Lessons and Syllabus does not work with these WS.

      SakaiScript.java must update the named methods to use the same code than in SiteAction.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  daniel.merino Daniel Merino Echeverría
                  Reporter:
                  daniel.merino Daniel Merino Echeverría
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration