microsoft / microsoft/pai

Failed to fetch user info; Cannot read property 'extension' of undefined.

Open
#4,653 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

known issue pai-dev
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.