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

Inconsistent behaviour when site policy not accepted

XMLWordPrintable

    • MOODLE_401_STABLE

      The web service behavior when accessing a user's data who has not agreed to a required policy is inconsistent.

      1. Enable a site policy with core policy handler by setting a policy URL
      2. Create a new user (in the example below, user id is 7)
      3. Enrol this user to a course
      4. Gather token (in the example below, 98dbee3c9d4d7dc3920ece696650a073 is a valid token for the user)

      Then, compare the outputs of the following commands:

      Expected behaviour: a sitepolicynotagreed exception should be displayed for each query, instead of returning an incorrect result (empty course list even though user is enrolled to some courses) or a errorcoursecontextnotvalid exception.

            Unassigned Unassigned
            fynngodau Fynn Godau
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.