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

Duplicate site with a site-wide External Tool and tool is misconfigured in new site

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Incorporated
    • Affects Version/s: 11.4
    • Fix Version/s: None
    • Component/s: BasicLTI
    • Labels:
      None
    • Test Plan:
      Hide

      To replicate you'll have to use a webservice copySite but setup the tool and template first.

      1) Login as admin

      2) Administration Workspace -> External Tools -> create new LTI 1.1 tool

      Leave Site ID Empty so it will be available in all sites

      Using as a sample site: http://ltiapps.net/test/tc.php

      • Enter a tool Title (LTI Apps)
      • Enter Button Text (LTI Apps)
      • URL http://ltiapps.net/test/tc.php as the URL (with the key and secret from that site)
      • Key from that site is jisc.ac.uk
      • Secret from that site is secret

      3) Create new course or project site, add this External Tool setup in 2 during the site setup (Under External Tools)

      Use the sample PHP script or some other method to call the webservice "copySite" to make a copy of this site.

      Expected: There should be some way to copy the tools data
      Actual: Only basic content is available

      Show
      To replicate you'll have to use a webservice copySite but setup the tool and template first. 1) Login as admin 2) Administration Workspace -> External Tools -> create new LTI 1.1 tool Leave Site ID Empty so it will be available in all sites Using as a sample site: http://ltiapps.net/test/tc.php Enter a tool Title (LTI Apps) Enter Button Text (LTI Apps) URL http://ltiapps.net/test/tc.php as the URL (with the key and secret from that site) Key from that site is jisc.ac.uk Secret from that site is secret 3) Create new course or project site, add this External Tool setup in 2 during the site setup (Under External Tools) Use the sample PHP script or some other method to call the webservice "copySite" to make a copy of this site. Expected: There should be some way to copy the tools data Actual: Only basic content is available

      Description

      If an external tool is added to a duplicate site the settings don't seem to copy with the copySite websevice. It seems like the webservice doesn't have a method to deep copy content. See the test plan for more information.

      <?php
      $login = new SoapClient('https://trunk-mysql.nightly.sakaiproject.org/sakai-ws/soap/login?wsdl');
      $session = $login->loginPOST('admin', 'admin');
      $soap = new SoapClient('https://trunk-mysql.nightly.sakaiproject.org/sakai-ws/soap/sakai?wsdl');
      $ret = $soap->copySite($session, '00b289d4-ca79-4bc4-aed2-2913f5fb237d', 'xxxx1', 'TestCopy', 'Desc', 'Short', null, null, true, 'Student', true, true, null, 'course');
      ?>
      

      I believe the fix for this may involve getting a webservice to the new methods added in SAK-33524 such as importToolContent
       

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    farreri Miguel Pellicer
                    Reporter:
                    ottenhoff Sam Ottenhoff
                  • Votes:
                    1 Vote for this issue
                    Watchers:
                    6 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration