Project

General

Profile

Bug #30317

Locked provisioning template should not be allowed to add audit comment

Added by Ondřej Pražák 5 months ago. Updated 3 months ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1815104

The bug is completely identical to:

https://bugzilla.redhat.com/show_bug.cgi?id=1805678

but for API (and possibly CLI).

Steps to Reproduce:

1. use API or Hammer to update a locked template and add a comment to it

Actual results:

notice the update is updated audit record regarding created audit comment is created

Expected results:

Error message should be retrieved saying that user is unable to update locked templates.

Associated revisions

Revision f1de761c (diff)
Added by Ondřej Pražák 5 months ago

Fixes #30317 - Do not add comment to locked template

History

#1 Updated by Ondřej Pražák 5 months ago

  • Assignee set to Ondřej Pražák
  • Category changed from TFTP to Templates
  • Subject changed from Locked provisioning template should not be allowed to add audit comment to Locked provisioning template should not be allowed to add audit comment

#2 Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7798 added

#3 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 2.2.0 added

#4 Updated by Ondřej Pražák 5 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman/pull/7975 added

Also available in: Atom PDF