Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organizations ->access blank after add "Workflow admin" role #15636

Open
5 of 11 tasks
sli68 opened this issue Nov 14, 2024 · 0 comments
Open
5 of 11 tasks

Organizations ->access blank after add "Workflow admin" role #15636

sli68 opened this issue Nov 14, 2024 · 0 comments

Comments

@sli68
Copy link

sli68 commented Nov 14, 2024

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

AWX version: 24.3.1
After configuring user with "Organization Workflow Admin" role, the "Organization->Access" page will be blank. shown as below
image

AWX version

24.3.1

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

Firefox, Chrome, Edge

Steps to reproduce

  1. Click Access-->Organizations-->select Organization
  2. click Access Tab
  3. click Add button
  4. Click Users -> click Next button
  5. select user --> click Next button
  6. check "Workflow Admin"
  7. click Save button
  8. Access page will display blank
  9. the error logs:
    File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/models/rbac.py", line 605, in get_role_from_object_role
    return getattr(object_role.content_object, role_name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'Organization' object has no attribute 'workflow_job_template_admin_role'

Expected results

Access page should list all users, which have permission to associated to this origaniztion

Actual results

The Access page empty

Additional information

File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/models/rbac.py", line 605, in get_role_from_object_role
return getattr(object_role.content_object, role_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Organization' object has no attribute 'workflow_job_template_admin_role'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant