Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1805678

Summary: Locked provisioning template should not be allowed to add audit comment
Product: Red Hat Satellite Reporter: Anand Agrawal <aagrawal>
Component: Provisioning TemplatesAssignee: Oleh Fedorenko <ofedoren>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.7.0CC: ehelms, mhulan, ofedoren
Target Milestone: 6.7.0Keywords: Triaged, UserExperience
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: foreman-1.24.1.16-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 13:38:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anand Agrawal 2020-02-21 11:15:39 UTC
Description of problem:

GoTo Hosts -> Provisioning Template -> Select/Click a provisioning template (Locked) -> Add audit comment. This is successful. It should not allow to add the audit comment on the locked template.

Version-Release number of selected component (if applicable):
6.7

How reproducible:
Always

Steps to Reproduce:
1. GoTo Hosts -> Provisioning Template 
2. Select/Click a provisioning template (Locked) 
3. Add audit comment

Actual results:
Successfully updated template name

Expected results:
Unable to save
This template is locked. Please clone it to a new template to customize.

Additional info:

This is working as expected in case of report template with a similar feature. 

However, a suggestion is to disable the "Audit Comment" textbox if the template is locked.

Comment 3 Oleh Fedorenko 2020-02-24 15:37:52 UTC
Created redmine issue https://projects.theforeman.org/issues/29143 from this bug

Comment 4 Bryan Kearney 2020-02-24 17:03:27 UTC
Upstream bug assigned to ofedoren

Comment 5 Bryan Kearney 2020-02-24 17:03:29 UTC
Upstream bug assigned to ofedoren

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

Comment 12 Bryan Kearney 2020-04-14 13:38:41 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, 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-2020:1454