Skip to content

GetUsers in Dnn.PersonaBar.Extensions UserController no longer returns user profile picture URL #5629

@mwigley-trilogy

Description

@mwigley-trilogy

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:
image

image

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

Does not return an avatar:
image

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions