]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix error while accessing roles tab when policy attached 55462/head
authorAfreen <afreen23.git@gmail.com>
Tue, 6 Feb 2024 09:43:58 +0000 (15:13 +0530)
committerAfreen <afreen23.git@gmail.com>
Thu, 8 Feb 2024 09:22:37 +0000 (14:52 +0530)
commit5247d7d19455a5ab7d1bb56b9586c6b08843b15d
tree56a65aea2a988abdc6541d2d49fb3a91fcfeb2ed
parentc1da4c673ca749fa2d76220da1ba5d69779cd7f1
mgr/dashboard: fix error while accessing roles tab when policy attached

Fixes https://tracker.ceph.com/issues/64270

Issue:
======
Accessing Object->Users-Roles tab causing 500 internal servor error.
This is due to the "PermissionPolicies" which are attached to role and
backend was not handling this field for rgw roles.

Fix:
====
Added "PermissionPolicies" as the valid field in backend and updated
frontend to render the attached policy in formatted JSON

Signed-off-by: Afreen <afreen23.git@gmail.com>
src/pybind/mgr/dashboard/controllers/rgw.py
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/crud-table/crud-table.component.html
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/crud-table/crud-table.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/models/crud-table-metadata.ts