-
-
Notifications
You must be signed in to change notification settings - Fork 773
GetUsers in Dnn.PersonaBar.Extensions UserController no longer returns user profile picture URL #5629
Description
Description of bug
Dnn.Platform\Dnn.AdminExperience\Dnn.PersonaBar.Extensions\Components\Users\UsersController.cs
GetUsers() used to return an AvatarUrl, but this was broken by 40b2a89
in 2020.
The issue is that the code uses automagic hydration to copy the data from the database, so the constructor never gets called when hitting the UsersController GetUsers endpoint.
I've got a fix coming soon for this.
Steps to reproduce
I don't know how easy this is to reproduce outside Evoq. In Evoq you can reproduce it by opening the 'Users' list and seeing that there are no user avatars visible:

Or alternatively, just inspect the API results - see that a call to e.g.:
http://engage-9-11.dnndev.me/API/PersonaBar/Users/GetUsers?searchText=&filter=0&pageIndex=0&pageSize=10&sortColumn=&sortAscending=false
Current behavior
Avatar url is not returned by GetUsers
Expected behavior
Avatar URL should be returned by Get Users
Screenshots
Provided above
Affected version
Affects everything from 9.11.0, might have been in some 9.10 versions too - didn't occur in the one version I tested though.
Affected browser
All.

