Dnn.platform: Delete User throws error in dev tools console

Created on 16 Oct 2020  路  3Comments  路  Source: dnnsoftware/Dnn.Platform

Description of bug

Deleting a user in the persona bar (Manage > Users) throws a console error.

Steps to reproduce

  1. Add a new user via Manage > Users
  2. Add new user to a security role (e.g., Administrators) via Manage > Users
  3. Remove new user from security role via Manage > Roles
  4. Delete user via Manage > Users

Current behavior

Makes persona bar blank and throws console errors.

Expected behavior

Soft deletion of user with no errors or unexpected disappearance of Users module in persona bar.

Screenshots

image

Error information

Invariant Violation: Minified React error #152; visit https://reactjs.org/docs/error-decoder.html?invariant=152&args[]=t for the full message or use the non-minified dev environment for full errors and additional helpful warnings. 
    at http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:424
    at i (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:527)
    at http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:52043
    at Ea (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:58906)
    at xa (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:63098)
    at La (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:62796)
    at Ia (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:66630)
    at Gi (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:90674)
    at Vi (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:91058)
    at xs (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:97945)
_i @ export-bundle.js?cdv=36:107
n.callback @ export-bundle.js?cdv=36:107
oi @ export-bundle.js?cdv=36:107
ri @ export-bundle.js?cdv=36:107
Ni @ export-bundle.js?cdv=36:107
Fi @ export-bundle.js?cdv=36:107
(anonymous) @ export-bundle.js?cdv=36:107
t.unstable_runWithPriority @ export-bundle.js?cdv=36:116
Ps @ export-bundle.js?cdv=36:107
xs @ export-bundle.js?cdv=36:107
ks @ export-bundle.js?cdv=36:107
Es @ export-bundle.js?cdv=36:107
Zi @ export-bundle.js?cdv=36:107
enqueueSetState @ export-bundle.js?cdv=36:107
v.setState @ export-bundle.js?cdv=36:91
l.onStateChange @ export-bundle.js?cdv=36:52
notify @ export-bundle.js?cdv=36:52
t.notifyNestedSubs @ export-bundle.js?cdv=36:52
l.onStateChange @ export-bundle.js?cdv=36:52
m @ export-bundle.js?cdv=36:52
t @ export-bundle.js?cdv=36:76
(anonymous) @ export-bundle.js?cdv=36:127
dispatch @ export-bundle.js?cdv=36:52
(anonymous) @ VM6491:20
success @ sf.js?cdv=36:51
i @ jquery.js?cdv=36:3
fireWith @ jquery.js?cdv=36:3
A @ jquery.js?cdv=36:11
(anonymous) @ jquery.js?cdv=36:11
load (async)
send @ jquery.js?cdv=36:11
ajax @ jquery.js?cdv=36:11
rawCall @ sf.js?cdv=36:89
call @ sf.js?cdv=36:100
post @ sf.js?cdv=36:104
value @ VM6491:20
(anonymous) @ VM6491:20
(anonymous) @ export-bundle.js?cdv=36:127
(anonymous) @ VM6491:20
(anonymous) @ util.js?cdv=36:132
dispatch @ jquery.js?cdv=36:6
q.handle @ jquery.js?cdv=36:6
export-bundle.js?cdv=36:107 Uncaught Invariant Violation: Minified React error #152; visit https://reactjs.org/docs/error-decoder.html?invariant=152&args[]=t for the full message or use the non-minified dev environment for full errors and additional helpful warnings. 
    at http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:424
    at i (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:527)
    at http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:52043
    at Ea (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:58906)
    at xa (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:63098)
    at La (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:62796)
    at Ia (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:66630)
    at Gi (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:90674)
    at Vi (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:91058)
    at xs (http://dnn980rc1.loc/DesktopModules/admin/Dnn.PersonaBar/scripts/exports/export-bundle.js?cdv=36:107:97945)
(anonymous) @ export-bundle.js?cdv=36:107
i @ export-bundle.js?cdv=36:107
(anonymous) @ export-bundle.js?cdv=36:107
Ea @ export-bundle.js?cdv=36:107
xa @ export-bundle.js?cdv=36:107
La @ export-bundle.js?cdv=36:107
Ia @ export-bundle.js?cdv=36:107
Gi @ export-bundle.js?cdv=36:107
Vi @ export-bundle.js?cdv=36:107
xs @ export-bundle.js?cdv=36:107
ks @ export-bundle.js?cdv=36:107
Es @ export-bundle.js?cdv=36:107
Zi @ export-bundle.js?cdv=36:107
enqueueSetState @ export-bundle.js?cdv=36:107
v.setState @ export-bundle.js?cdv=36:91
l.onStateChange @ export-bundle.js?cdv=36:52
notify @ export-bundle.js?cdv=36:52
t.notifyNestedSubs @ export-bundle.js?cdv=36:52
l.onStateChange @ export-bundle.js?cdv=36:52
m @ export-bundle.js?cdv=36:52
t @ export-bundle.js?cdv=36:76
(anonymous) @ export-bundle.js?cdv=36:127
dispatch @ export-bundle.js?cdv=36:52
(anonymous) @ VM6491:20
success @ sf.js?cdv=36:51
i @ jquery.js?cdv=36:3
fireWith @ jquery.js?cdv=36:3
A @ jquery.js?cdv=36:11
(anonymous) @ jquery.js?cdv=36:11
load (async)
send @ jquery.js?cdv=36:11
ajax @ jquery.js?cdv=36:11
rawCall @ sf.js?cdv=36:89
call @ sf.js?cdv=36:100
post @ sf.js?cdv=36:104
value @ VM6491:20
(anonymous) @ VM6491:20
(anonymous) @ export-bundle.js?cdv=36:127
(anonymous) @ VM6491:20
(anonymous) @ util.js?cdv=36:132
dispatch @ jquery.js?cdv=36:6
q.handle @ jquery.js?cdv=36:6

Additional context

Simply adding a new user via Manage > Users and subsequently deleting the user does not result in this unexpected behavior.

Affected version

  • [ ] 10.00.00 alpha build
  • [x] 09.08.00 release candidate
  • [ ] 09.07.02 latest supported release

Affected browser

  • [x] Chrome
  • [ ] Firefox
  • [ ] Safari
  • [ ] Internet Explorer 11
  • [ ] Microsoft Edge (Classic)
  • [ ] Microsoft Edge Chromium
AE > PersonaBar Ext > Roles.Web AE > PersonaBar Ext > Users.Web Medium High Ready for Development Bug help wanted

All 3 comments

The decoded error message is

t(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.

I took a look at this for about 2 hours and could not get any more details than just what @bdukes just found. This may be related to modules not reloading when we switch pages in the Persona Bar. I am not saying it's fine, just that the workaround is just to reload the page. I'd like to iron it out but not sure where to even begin without more clues...

I changed the milestone to future:patch because I was not able to figure this one out quickly and well it's easy to workaround by just refreshing the page, we will revisit this when able to not block releasing 9.8.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Roylej picture Roylej  路  3Comments

mnouraei picture mnouraei  路  5Comments

david-poindexter picture david-poindexter  路  4Comments

kbratuysuz picture kbratuysuz  路  3Comments

moorecreative picture moorecreative  路  4Comments