]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix error while accessing roles tab when policy attached
authorAfreen <afreen23.git@gmail.com>
Tue, 6 Feb 2024 09:43:58 +0000 (15:13 +0530)
committerAfreen <afreen23.git@gmail.com>
Mon, 4 Mar 2024 09:13:45 +0000 (14:43 +0530)
commitf7cf5c69f0e9a87ae616d550129c28b9e917209e
tree83f7d20b96304bf9924f4b4961842588ee59d163
parent931b9f1764377a263e582e1ef42245645ccd9314
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>
(cherry picked from commit 5247d7d19455a5ab7d1bb56b9586c6b08843b15d)

 Conflicts:
src/pybind/mgr/dashboard/controllers/rgw.py
src/pybind/mgr/dashboard/frontend/src/app/shared/models/crud-table-metadata.ts
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