abpframework / eShopOnAbp

Reference microservice solution built with the ABP Framework and .NET, runs on Kubernetes with Helm configuration, includes API Gateways, Angular and ASP.NET Core MVC applications, PostgreSQL and MongoDB databases
https://www.eShopOnAbp.com/
MIT License
664 stars 259 forks source link

Admin user sync problem #242

Closed gterdem closed 1 month ago

gterdem commented 1 month ago

https://github.com/abpframework/eShopOnAbp/blob/94cbef9f05ad286ee8065c5ea268002d49a1cf80/services/identity/src/EShopOnAbp.IdentityService.Application/UserLoggedInEventHandler.cs#L63

UserManager throws null pointer exception because the adminUser navigation collections are null (Roles, OUs etc) when retrieving with: https://github.com/abpframework/eShopOnAbp/blob/94cbef9f05ad286ee8065c5ea268002d49a1cf80/services/identity/src/EShopOnAbp.IdentityService.Application/UserLoggedInEventHandler.cs#L62

This causes retrying to handle the same even over and over with a memory leak.