Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1726288 - Can edit template inputs of locked template through CLI and API
Summary: Can edit template inputs of locked template through CLI and API
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Reporting
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: 6.9.0
Assignee: Justin Sherrill
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-02 13:53 UTC by Lukáš Hellebrandt
Modified: 2021-04-21 13:12 UTC (History)
7 users (show)

Fixed In Version: foreman-2.3.0-0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:11:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 28210 0 Normal Closed Can edit template inputs of locked template through CLI and API 2021-01-13 17:25:00 UTC
Foreman Issue Tracker 30843 0 Normal Closed seeding fails with 'This template is locked. Please clone it to a new template to customize.' 2021-01-13 17:24:58 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:12:11 UTC

Description Lukáš Hellebrandt 2019-07-02 13:53:03 UTC
Description of problem:
When a template is locked, its inputs can't be edited in WebUI but they can be edited through CLI and API.

Version-Release number of selected component (if applicable):
Reproduced on Sat 6.6 snap 9

How reproducible:
Deterministic

Steps to Reproduce:
0. Have some locked template
1. $ hammer template-input create --template-id <id> --input-type user --name <newname>
Template input created

Actual results:
Template input added to the template

Expected results:
I shouldn't be able to edit anything in the template

Additional info:
This is probably because template-input is handled as a different entity than the template itself

Comment 3 Brad Buckingham 2019-07-02 17:08:36 UTC
Is this a regression from 6.5?

Comment 4 Lukáš Hellebrandt 2019-07-03 08:54:47 UTC
No.

Comment 5 Ondřej Pražák 2019-11-07 09:11:29 UTC
Created redmine issue https://projects.theforeman.org/issues/28210 from this bug

Comment 6 Bryan Kearney 2020-09-14 16:03:28 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/28210 has been resolved.

Comment 7 Justin Sherrill 2020-09-15 02:21:05 UTC
moving back to assigned since an issue was found with the original fix

Comment 8 Bryan Kearney 2020-09-15 04:03:29 UTC
Upstream bug assigned to jsherril

Comment 9 Bryan Kearney 2020-09-15 04:03:31 UTC
Upstream bug assigned to jsherril

Comment 10 Bryan Kearney 2020-09-15 20:03:41 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30843 has been resolved.

Comment 11 Lukáš Hellebrandt 2021-01-14 11:17:58 UTC
Verified with Sat 6.9 snap 8.0. Attempts to create/update/delete template inputs to a locked template now result in: "This template is locked. Please clone it to a new template to customize." or "Cannot delete template input as template is locked." respectively.

Comment 14 errata-xmlrpc 2021-04-21 13:11:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1313


Note You need to log in before you can comment on or make changes to this bug.