Skip to content

Need a complete fix for broken GetUserByName #36208

@wxiaoguang

Description

@wxiaoguang

See #24026 (comment)

That change is wrong:

  • Before GetUserByName can be used to get a org owner.
  • After: it's expected that only Individual can be found.
    • But the new logic is also wrong, Individual is 0 then it takes no effect.
    • So the bug of bug makes the existing code still can use GetUserByName to find an org
    • But all other types can also be found by GetUserByName

Also, GetUserOrOrgByName is not right, no type check.


And more related bugs:

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions