]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Fri, 9 Feb 2024 12:38:04 +0000 (18:08 +0530)
commita51bab5f99d7e2ca32ce2a2691e22cd813fbfafc
tree271df5e50515e58c7d03a1553e0d2af6c50bc304
parent1d5317f27d6c31124cf2b87f98c68e00b826238c
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/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