Project

General

Profile

Actions

Bug #39309

closed

Missing validation to prevent CC deletion when used by ACS

Added by Vladimir Sedmik 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Category:
Content Credentials
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Description of problem:

When deleting a ContentCredential used by a Product or Repository, the user is blocked from the deletion with appropriate error message (like “Cannot delete record because of dependent root_repositories”).

This does not apply when the ContentCredential is used by an ACS (the CC is deleted immediately), which is little inconsistent with the previous behaviour.

How reproducible:
Always

Is this issue a regression from an earlier version:
No, it’s reproducible in the old page too.

Steps to Reproduce:

Create a ContentCredential od Cert type.
Create an ACS using the credential from 1.
Delete the Content Credential.

Actual behavior:
Deletion succeeds.

Expected behavior:
It should fail with an error message like “Cannot delete record because of dependent ACSes”

Actions #1

Updated by The Foreman Bot 2 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/11737 added
Actions #2

Updated by The Foreman Bot 2 months ago

  • Fixed in Releases Katello 4.21.0 added
Actions #3

Updated by Vladimir Sedmik 2 months ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Quinn James about 2 months ago

  • Target version changed from Katello 5.0.0 to Katello 4.21.0
Actions #5

Updated by Quinn James about 2 months ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF