Error when Testing Permissions - An unexpected error occurred in Octopus v2019.3.4: "TypeError: Cannot read property 'indexOf' of null"

ruf-r
(Mark Walsh) #1

Hello, I’ve just upgraded to Octopus v2019.3.4 - when trying to Test Permissions of a particular user I get this:

An unexpected error occurred in Octopus v2019.3.4: "TypeError: Cannot read property 'indexOf' of null"

* in Unknown
* in div
* in section
* in t
* in div
* in t
* in div
* in div
* in n
* in n
* in t
* in div
* in div
* in MediaQuery
* in div
* in Unknown
* in t
* in withRouter()
* in main
* in t
* in Unknown
* in t
* in Connect(t)
* in Unknown
* in t
* in t
* in t
* in t
* in t
* in t
* in t
* in t
* in Unknown
* in r
* in t
* in t
* in t
* in t
* in t
* in t
* in t
* in withRouter(t)
* in t
* in Connect(t)
* in t
* in withRouter(Connect(t))
* in div
* in t
* in Connect(t)
* in t
* in t
* in t
* in t
* in t
* in t
* in t
* in t
* in t
* in t
* in Unknown
* in t

[HIDE FULL EXCEPTION](https://octopusdeploy.livinglens.tv/app#)

Octopus v2019.3.4

TypeError: Cannot read property 'indexOf' of null supportsRestriction (/app/areas/configuration/components/TestPermissions/PermissionTable.tsx:40:139) supportsRestriction (/app/areas/configuration/components/TestPermissions/PermissionTable.tsx:93:29) map (/app/areas/configuration/components/TestPermissions/PermissionTable.tsx:87:50) map (/app/areas/configuration/components/TestPermissions/PermissionTable.tsx:86:41) og (/node_modules/react-dom/cjs/react-dom.production.min.js:145:95) b.elementType;null!==a&& (/node_modules/react-dom/cjs/react-dom.production.min.js:174:122) hi (/node_modules/react-dom/cjs/react-dom.production.min.js:221:15) ii (/node_modules/react-dom/cjs/react-dom.production.min.js:222:280)

This is just for one particular user with restricted permissions - My user (admin) does load fine.

I’ve tried saving the user, reassigning them to another group but sadly nothing has worked thus far

Regards,
Mark

(Tina) #3

Hi Mark,
Thanks for reaching out. Sorry to hear you’re running into this error Testing User Permissions.

Fortunately this is a known bug and an issue has been logged. The issue has not yet been resolved, but you can track its progress here: https://github.com/OctopusDeploy/Issues/issues/5510

In the meantime you may want to try the current work around, which is to:
Export the user’s permissions to CSV, using the API endpoint ( /api/users/users-205/permissions/export{?spaces,includeSystem} )

I hope this helps and let us know if you have further questions or concerns.

Best Regards,
Tina