Project

General

Profile

Actions

Bug #39173

closed

Cloning a locked report template via Hammer creates a locked clone

Added by Lukáš Hellebrandt 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
Reporting
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

Related issues 2 (0 open2 closed)

Related to Foreman - Bug #39176: Can't clone locked Partition table in APIClosedLukáš HellebrandtActions
Related to Webhooks - Bug #39175: Cloning a locked webhook template via Hammer creates a locked cloneClosedLukáš HellebrandtActions
Actions #1

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
Actions #2

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
Actions #3

Updated by Oleh Fedorenko 4 months ago

  • Related to Bug #39176: Can't clone locked Partition table in API added
Actions #4

Updated by Oleh Fedorenko 4 months ago

  • Related to Bug #39175: Cloning a locked webhook template via Hammer creates a locked clone added
Actions #5

Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 3.19.0 added
Actions #6

Updated by Lukáš Hellebrandt 4 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF