]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Internal Server Error while accessing the RGW roles tab when policy... fix-64270
authorAfreen <afreen23.git@gmail.com>
Tue, 6 Feb 2024 09:43:58 +0000 (15:13 +0530)
committerAfreen <afreen23.git@gmail.com>
Wed, 7 Feb 2024 15:52:01 +0000 (21:22 +0530)
commitf80b1249edb2e003a9c2e026cd38c0d36651e047
treef412cd5d8c6a43e6af19b4b13c19bb545b9a857f
parent31717ac36c0409c1f185d17012a7af071b0cefd8
mgr/dashboard: Internal Server Error while accessing the RGW roles tab when policy are attached to roles

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