Problem

After implementing the gigya raas solution, our watchdog log was overflowed with the following 3 messages (in sequance):

  • Access mode app
  • errorcode :
  • Response from gigya callId : ********************************apicall:getUserInfo,Error:

These errors are caused when the gigya module tries to load a gigya user with the drupal user id, this happens whenever the login mode is not Drupal, and you try to display a user entity.

Proposed resolution

The gigya_user_view function has the account uid as the gigya user id hardcoded and ignores raas mappings.
My solution is to try to load the gigya UID from the raas extra mapping variable and only if it fails, use the account uid.

Comments

Eyal Shalev created an issue. See original summary.

eyal shalev’s picture

Status: Active » Needs review
StatusFileSize
new3.59 KB
eyal shalev’s picture

Issue summary: View changes
gg24’s picture

Status: Needs review » Needs work
  1. +++ b/gigya.module
    @@ -900,35 +900,50 @@ function gigya_user_view($account, $view_mode) {
    +      $bio         = $_gigya_user->getUserInfo();
    

    Seems the indentation is not as per standards.

  2. +++ b/gigya.module
    @@ -900,35 +900,50 @@ function gigya_user_view($account, $view_mode) {
    +          $account->content['gigya'][$network['provider']]        = array(
    

    Indentation is not as per standard.

eyal shalev’s picture

Status: Needs work » Needs review
StatusFileSize
new3.57 KB

Fixed the indentation

FYI - the indentation issue exists in the original code - I just didn't want to update it as well.