Project

General

Profile

Actions

Bug #6045

closed

deleting a class fails

Added by m w over 10 years ago. Updated over 10 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When trying to delete a class from the puppetclasses screen, this error is produced and the class is not deleted:

PGError
ERROR: update or delete on table "puppetclasses" violates foreign key constraint "environment_classes_puppetclass_id_fk" on table "environment_classes" DETAIL: Key (id)=(1312) is still referenced from table "environment_classes".
app/controllers/puppetclasses_controller.rb:41:in `destroy'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #4379: Foreign key constraint error on deleting a classResolved02/18/2014Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

  • Is duplicate of Bug #4379: Foreign key constraint error on deleting a class added
Actions #2

Updated by Dominic Cleal over 10 years ago

  • Status changed from New to Duplicate

Thanks for the report, this is tracked under #4379.

Actions

Also available in: Atom PDF