rwth-acis / moodle-data-proxy

3 stars 1 forks source link

[BUG] course_updates_since and get_users_by_field throwing exceptions in some cases #54

Closed FBasels closed 2 years ago

FBasels commented 2 years ago

Bug-related issues need to report how, when (how often) and where an issue occurs. To answer these questions, the following sections are defined:

  1. Summary - In some cases these to functions throw exceptions depending on the response from Moodle
  2. Bug Details
    1. What? - The two functions core_user_get_users_by_field and core_course_get_updates_since do not cover cases in which a) a user is requested with an invalid userID and b) in which the moodle response does not contain the keyword "instances", e.g., due to invalid token
    2. Where? - core_user_get_users_by_field and core_course_get_updates_since
    3. When?/How often? - Everytime an invalid userID is used or the token is invalid, e.g., if the tokenuser is not in the moodlecourse