Royal-Society-of-New-Zealand / NZ-ORCID-Hub

The home of development for the New Zealand ORCID Hub
MIT License
13 stars 8 forks source link

User's with tokens from different organisations are giving "HUB doesnt have data" #758

Closed rpaw053 closed 5 years ago

rpaw053 commented 5 years ago

Example is of a user in the production Hub with a token from the Society and another from their home organisation.  

When the Society attempts to view their record under https://orcidhub.org.nz/admin/viewmembers/ the Hub is warning:

> Warning! ORCID HUB doent have data related to this researcher

The Society token at least is good as shown by a cURL, so not clear why this is failing

[ORCIDHUB-491] created by jgus614

rpaw053 commented 5 years ago

Done changes. (Github: https://github.com/Royal-Society-of-New-Zealand/NZ-ORCID-Hub/pull/742 )

by rpaw053

rpaw053 commented 5 years ago

Hub was not able to find the user from viewmembers page (i.e. incorrect record retrieval condition for the user belonging to multiple organisation). I have temporarily fixed it in prod and will be properly pushing it in next merges.

 


Another issue that was discovered is to handle the exception on viewmembers page for a user who has an expired token.

by rpaw053