-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
-
False
-
0
-
-
Description of problem:
How reproducible:
Always
Is this issue a regression from an earlier version:
No
Steps to Reproduce:
1. Prepare Satellite 6.18/stream and fetch the ID of any job-template to clone, for example "Ansible Roles - Ansible Default"
2.
- curl -X POST -k -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'Authorization: Basic YWRtaW46Y2hhbmdlbWU=' -i 'https://example.redhat.com/api/job_templates/235/clone' --data '{"name": "Cloned Template Name"}'
.
.
{
"error": {"id":235,"errors":
,"full_messages":["This template is locked. Please clone it to a new template to customize."]}
3.
Actual behavior:
JobTemplate clone fails with "This template is locked. Please clone it to a new template to customize"
Expected behavior:
JobTemplate clone works without any errors
Business Impact / Additional info:
Also, tried passing data like below in curl command and it also fails with same error,
--data '{"job_template": {"name": "Cloned Template Name"}}'
QE Tracker for https://issues.redhat.com/browse/SAT-34617