-
8000
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix 500 error when creating a job schedule #5084
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
Fix 500 error when creating a job schedule #5084
Conversation
- 500 error occurs when a non-admin user attempts to add an invalid credential during schedule creation - This change checks that the user can add the object to serializer.validated_data, instead of serializer.initial_data - The invalid credential field is purged in .validated_data, so the request passes through cleanly - Fix for awx issue ansible#4147
Build succeeded.
|
Build failed (gate pipeline). For information on how to proceed, see
|
regate |
Build failed (gate pipeline). For information on how to proceed, see
|
regate |
Build failed (gate pipeline). For information on how to proceed, see
|
regate |
Build succeeded (gate pipeline).
|
Remove test button from logging settings screen
fix for issue #4147
A 500 error occurs when a non-admin user attempts to add an invalid credential during schedule creation.
This one-line change checks that the user can add the object to
serializer.validated_data
, instead ofserializer.initial_data
.The invalid credential field is purged in
serializer.validated_data
, so the request passes through cleanly.SUMMARY
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION