Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-1886

Error on refreshing GroupShare TMs when a used TM should be deleted

    XMLWordPrintable

Details

    • High

    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.

      Attachments

        Activity

          People

            Ines-Paul Ines-Paul Baumann (Inactive)
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: