Failed to fetch user info; Cannot read property 'extension' of undefined.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 554
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 14
Description
Reproduce.
1: Create a new group in pai-group.
2: Aks a user in the group to login.
3: Bypassing our group management api, remove the group from dashbord or with kubectl.
Now the user with the deleted group will still exists in pai-user-v2 namespace. And when going to the job list page, webportal will get all user info from api. Then the issue will occur.
Problem API: https://github.com/microsoft/pai/blob/master/src/rest-server/src/routes/v2/user.js#L35
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/rest-server/src/routes/v2/user.js#L35 and reproduce the listed sequence: remove a group outside the group management API, then open the job list page. Trace the user-info request for the remaining user and verify that the completed behavior handles the deleted group without the reported property error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, kubernetes
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100