Actions
Bug #39176
closedCan't clone locked Partition table in API
Description
When I attempt to clone a partition table using API, I get an error suggesting to first unlock the template. That doesn’t make sense, cloning is specifically for creating an unlocked copy that I can edit.
This operation isn’t available in Hammer and it behaves correctly in WebUI.
Steps to reproduce:
- Have a Satellite with some locked partition table
- Using hammer partition-table list get an ID of some partition table
curl -H 'Content-Type: application/json' -uadmin:changeme -k -X POST https://$(hostname)/api/v2/ptables/163/clone -d '{"ptable": {"name": "test34"}}' { "error": {"id":163,"errors":{"base":["This template is locked. Please clone it to a new template to customize."]},"full_messages":["This template is locked. Please clone it to a new template to customize."]} }
Actual outcome:
Unable to clone template
Expected outcome:
Able to clone template and cloned template is unlocked
Updated by Oleh Fedorenko 4 months ago
- Project changed from Templates to Foreman
- Category set to Templates
Updated by Oleh Fedorenko 4 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/10918 added
Updated by Oleh Fedorenko 4 months ago
- Related to Bug #39173: Cloning a locked report template via Hammer creates a locked clone added
Updated by Oleh Fedorenko 4 months ago
- Related to Bug #39175: Cloning a locked webhook template via Hammer creates a locked clone added
Updated by Lukáš Hellebrandt 3 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|401a94f8407a10fe8fc0b82cba3ed14570488df8.
Actions