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

Multiple choice question answers and feedback fields for all questions do not update URL if images used when using import from site

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.9.0, 10.0
    • Fix Version/s: 10.1
    • Labels:
      None
    • Environment:
    • Previous Issue Keys:
      SAM-2055

      Description

      For tests that use images in resources in site1, when using import from site (from Site Info) in site2, choosing "replace my data" , selecting Resources and Tests & Quizzes, updates the URLs for the questions to use the folder in site2 except for Multiple Choice answers and all feedback fields that use images.

      To reproduce:
      In site1 create an assessment with a multiple choice question
      Upload an image to use in the question text and for each answer
      Publish the assessment

      In site2, click on Site Info and make sure you have added Resources and Tests & Quizzes to the site
      Then click "Import from site" and select site1
      Select Resources and Tests & Quizzes

      Verify the image exists in site2 under Resources

      Edit the test
      Look at the source for the image in the question - it is pointing to the current site (site2)
      Look at the source for the answer images - they're pointing to site1

      You can also go in as the student (make sure student is not in site1) and take the assessment. The answer images do not show up.

      ----------------------------------
      I tested matching, and the answer URLs get updated. All images used in the question text for different question types get updated.

      Sites tested:
      QA3-0130 101 B Fall 2010
      http://qa3-us.sakaiproject.org:8086/portal/site/82dd4e17-b2d4-4dc5-8db9-55caed9123d4
      2.9.0-rc02 QA on Oracle - Built: 10/24/12 11:19 - Sakai tags/2.9.0-rc02 (Kernel 1.3.0-rc02)- Server qa3-us

      Test: "Multiple Choice - QA3 - SiteB"

      Site import: QA3-0130 101 D Fall 2010
      http://qa3-us.sakaiproject.org:8086/portal/site/e7294166-4bba-4b94-8a9d-eb3c17e97956

      Question source:
      <img alt="" src="http://qa3-us.sakaiproject.org:8086/access/content/group/e7294166-4bba-4b94-8a9d-eb3c17e97956/lion.png" style="width: 137px; height: 131px;" />

      Answer source (pointing to first site):
      <img alt="" src="http://qa3-us.sakaiproject.org:8086/access/content/group/82dd4e17-b2d4-4dc5-8db9-55caed9123d4/lion.png" style="width: 137px; height: 131px;" />

      ------------

      Longsight: Sakai - 2.9.x (rc02) 01/25/2013 - Sakai 2.9.1-rc02 (Kernel 1.3.1-rc02)- Server qa29
      LS0130 101 C Spring 2012
      https://qa29.longsight.com/portal/site/407209d8-5c96-4e67-bd1a-b00b9e4fdc9b

      Site Import: LS0130 101 D Spring 2012
      https://qa29.longsight.com/portal/site/601b573c-744d-4b8f-8336-69a84477f3b5

      ------------
      Also tested on
      http://nightly2.sakaiproject.org:8082
      Built: 01/30/13 08:00 - Sakai Revision: 119270 (Kernel 1.4.0-SNAPSHOT)

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  ncaidin Neal Caidin
                  Reporter:
                  agschmidt Andrea Schmidt
                  Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration