Issue #3536828: Handle unknown users and unreachable drupal.org

Fixes the fatal "Call to a member function __isset() on null" in DOUserInfoRetriever::isValidUser().

  • getUserInformation() returns NULL for unknown users, and also when the drupal.org request fails; failures are not cached so the next request retries.
  • isValidUser() returns FALSE instead of dereferencing NULL, so the form shows the validation message (this also covers drupal.org being down, as noted in comment #7).
  • Adds unit tests for unknown user, known user and API failure.

Merge request reports

Loading
Loading