ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14.11k stars 3.43k forks source link

Frontend UI Fails to display role permissions of a Workflow template when assigning all roles to an individual user. #15541

Open USB-Coffee opened 2 months ago

USB-Coffee commented 2 months ago

Please confirm the following

Bug Summary

After setting additional roles/permissions on a workflow template the page resets to display "No Role Found, please add roles to populate this list" however there are roles assigned. The roles are still in place in the back end as the users can still access the workflow as normal.

AWX version

AWX 24.6.1

Select the relevant components

Installation method

kubernetes

Modifications

no

Ansible version

AWX 24.6.1

Operating system

Ubuntu 22.04 LTS

Web browser

Chrome

Steps to reproduce

Log In as global administrator Locate an existing workflow template with roles assigned and click the Access tab Click the Add button Select Users Select a normal user Tick Admin, Execute, Read, Approve Click Save

Expected results

List of roles under access tab correctly lists all roles applied to the workflow tempalte

Actual results

List turns blank image

Browser console shows 500 errors acessing https://awx.hostname.com/api/v2/workflow_job_templates/232/access_list/?order_by=first_name&page=1&page_size=5

Additional information

Was mentioned by another user in July with less detail but closed with no explanation. #15372 I am able to reproduce this now. Would be nice if others can confirm. Deployment method awx-operator 2.19.1

lucasvivian commented 3 days ago

Thank you to open another issue by this problem. Still happen with me. Using the same version as you.