Project

General

Profile

bug #5104

prevent MarkerTypes from being deleted when there are Marker entities using that type

Added by Andreas Kohlbecker almost 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
07/22/2015
Due date:
% Done:

100%

Severity:
normal
Found in Version:

Description

In the taxeditor it is possible to delete MarkerTypes even if this type is in use. Missing marker types are causing in further consequence a lot of problems.

The cdmlib should provide a mechanism that prevents from deleting MarkerTypes that are in use.

Makers without MarkerType should not be allowed!


Related issues

Copied to Edit - bug #6231: Correctly handle failed term deletions in the editor Worksforme 12/01/2016

Associated revisions

Revision 06cfae86 (diff)
Added by Katja Luther over 3 years ago

fix #5104 and #5328

History

#1 Updated by Andreas Müller almost 4 years ago

This should be handled for ALL term types, not only marker types.

I wonder why hibernate is not aware of the term being used and does not throw an exception.

#2 Updated by Katja Luther over 3 years ago

  • Target version changed from Unassigned CDM tickets to Release 3.12
  • Priority changed from New to Highest

#3 Updated by Katja Luther over 3 years ago

  • Status changed from New to In Progress

fixed with r26304, but have to fix the test.

#4 Updated by Katja Luther over 3 years ago

  • Status changed from In Progress to Resolved
  • Assignee changed from k.luther - to Andreas Kohlbecker

test fixed r26650

#5 Updated by Andreas Kohlbecker over 2 years ago

  • Description updated (diff)
  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Private changed from Yes to No

Deletion is prevented at the persistence level, but the MarkerType is deleted from the session in the editor. That is it disappears from the list of MarkerTypes in the MarkerType editor. After reconnecting the TaxEditor to the cdm instance the marker type becomes visible again. I am creating a new issue for that, this one is actually solved.

#6 Updated by Andreas Kohlbecker over 2 years ago

  • Copied to bug #6231: Correctly handle failed term deletions in the editor added

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)