Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30579

Data Model Elements are being initialized with an empty string

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2, 2.3
    • 2.2.1
    • SCORM
    • MOODLE_22_STABLE, MOODLE_23_STABLE
    • MOODLE_22_STABLE
    • master_MDL-30579
    • Hide

      It can be tested by running the SCORM Test Harness for DMI package - Data Model Implementation Test 1.
      1. Download the DMI Test package.
      2. Run the SCORM Test Harness for DMI as specified here - SCORM Test Harness
      3. Check the Log to make sure this error doesn't show:
      Evaluating GetValue("cmi.scaled_passing_score") - Expected: "" - LMS Returned: ""
      ERROR: Evaluating GetLastError("") - Expected: "403" - LMS Returned: "0"

      NOTE: Many other errors are reported by this test package - this patch only addresses the issues mentioned.

      Show
      It can be tested by running the SCORM Test Harness for DMI package - Data Model Implementation Test 1. 1. Download the DMI Test package . 2. Run the SCORM Test Harness for DMI as specified here - SCORM Test Harness 3. Check the Log to make sure this error doesn't show: Evaluating GetValue("cmi.scaled_passing_score") - Expected: "" - LMS Returned: "" ERROR: Evaluating GetLastError("") - Expected: "403" - LMS Returned: "0" NOTE: Many other errors are reported by this test package - this patch only addresses the issues mentioned.

    Description

      Data Model Elements are being initialized with an empty string. Thus, a 403 errorCode is not thrown (where it should be thrown).
      The following illustrates the above -

      Evaluating GetValue("cmi.scaled_passing_score") - Expected: "" - LMS Returned: ""
      ERROR: Evaluating GetLastError("") - Expected: "403" - LMS Returned: "0"

      403 error should have been thrown since, cmi.scaled_passing_score has not been initialized (Activity 1 - DMI Test package).

      Attachments

        Issue Links

          Activity

            People

              danmarsden Dan Marsden
              mayank_gupta2005 Mayank Gupta
              Dan Marsden Dan Marsden
              Aparup Banerjee Aparup Banerjee
              Rajesh Taneja Rajesh Taneja
              Dan Marsden, Matteo Scaramuccia, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Jan/12