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.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | load-gigya-user-by-raas-extra-mapping-2926298-5.patch | 3.57 KB | eyal shalev |
Comments
Comment #2
eyal shalevComment #3
eyal shalevComment #4
gg24 commentedSeems the indentation is not as per standards.
Indentation is not as per standard.
Comment #5
eyal shalevFixed the indentation
FYI - the indentation issue exists in the original code - I just didn't want to update it as well.