Details
-
Bug
-
Resolution: Fixed
-
None
-
High
-
Empty show more show less
Description
problem
Assume a task with an associated GroupShare TM and that TM was deleted in GroupShare.
The next sync call will then try to delete the TM in translate5 too, which fails then since the TM is associated to a task. This constraint was implemented to prevent the deletion of TMs via the GUI which are in use by a task.
ERROR ZfExtended_Models_Entity_Exceptions_IntegrityConstraint: E1016 - Integrity Constraint Violation on saving/deleting editor_Models_LanguageResources_LanguageResource
in core.entity.editor_Models_LanguageResources_LanguageResource /var/www/translate5/library/ZfExtended/Models/Entity/Abstract.php (312)
solution
We just delete the associations before the delete of the languageresource it self. For GroupShare TMs this is completly OK, since the TM itself was already deleted in GroupShare. Therefore tasks with such TMs are getting Bad Gateways exceptions when not deleting the TM in translate5.