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

Data Model Elements are being initialized with an empty string

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2, 2.3
    • Fix Version/s: 2.2.1
    • Component/s: SCORM
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull Master Branch:
      master_MDL-30579

      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).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    9/Jan/12