dnnsoftware / Dnn.AdminExperience

DNN (formerly DotNetNuke) Combined Admin Experience
MIT License
17 stars 39 forks source link

Cannot search delete users #1071

Closed valadas closed 5 years ago

valadas commented 5 years ago

Description of bug

In the users module when viewing deleted users, search does not work and returns nothing.

Steps to reproduce

List the steps to reproduce the behavior:

  1. Open the users module
  2. Set the show dropdown to Deleted Users
  3. Try to search for a user that exists

Current result

No users returned

Expected result

Should be able to return results

Error log

No errors logged

Additional context

This was found after investigating possible side-effects of #1065 when privacy settings are on. When on, those settings add some items in this dropdown and we where worried that search may not work for some types. Ends up that all the new types work perfectly but deleted users.

I think but have not investigated a lot yet, that the problem is that the stored procedure for the search checks for IsDeleted in the Users table instead of the PortalUsers table.

Which brings me to the question of why is this duplicated, do we need IsDeleted in both tables? How does this duplication affect hard deletes, and how does it affect the new privacy settings for users that request removal with mutiple possible removal options.

@donker if you have any more insight on this, please add comments here.

All this being said, #1065 is already merged and I think it brings us in a better situation than before, just loggin this issue so we can fix the last type for deleted users at some point.

Affected version