Bug #39173
closedCloning a locked report template via Hammer creates a locked clone
Description
Description of problem:
When a locked report template is cloned using Hammer, the cloned template remains locked.
However, when the same locked report template is cloned via the Web UI, the cloned template is created in an unlocked state.
For consistency and usability, cloning a template (regardless of method) should result in an unlocked template.
The same applies to webhook templates (ticket marked as duplicate).
How reproducible:
Always
Is this issue a regression from an earlier version:
No
Steps to Reproduce:
Identify an existing locked report template.
Clone the template using Hammer:
Actual behavior:
The cloned report template is created as locked when cloned via Hammer.
Expected behavior:
The cloned report template should be unlocked,
Business Impact / Additional info:
Users must manually unlock templates cloned via Hammer.
Inconsistent behavior between Hammer CLI and UI.
Affects automation and scripting workflows.
Open questions
Does this also affect other template types? Yes, webhooks
Will the CLI or API be changed? API will be changed
Updated by Lukáš Hellebrandt 4 months ago
- Subject changed from Cloning a locked report/webhook template via Hammer creates a locked clone to Cloning a locked report template via Hammer creates a locked clone
Updated by The Foreman Bot 4 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/10917 added
Updated by Oleh Fedorenko 4 months ago
- Related to Bug #39176: Can't clone locked Partition table in API 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 4 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|6095533efd44110e961236493add61841a33a229.