-
Type:
Bug
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: Package Ex and Re-Import
-
High
-
FIX: translator package reimport may lead to exceptions due to tag-errors in diffing to evaluate track-changes
-
Emptyshow more show less
PROBLEM
Reimporting a translator-package lead to invalid Markup causing the TagSequence to fail on parsing it for AutoQA. The invalid markup consisted of overlapping TrackChanges and Terminology tags. The Problem seems to be, that the diffing-algorithm - which is regex-based - cannot care about overlapping tags
SOLUTION
Since the problem happened only with overlapping Trackchanges & Terminology the problem boils down to, that at the time of diffing no terminology-tags are needed to be present anyway (the terminology is renewed in a following Auto-QA step anyway). So a solution could be, to strip terminology from the provided targets in MittagQI\Translate5\Task\Reimport\SegmentProcessor\SegmentContent\ContentDefault::updateTarget.
- it must be ensured, this fixes the problem
- it must be ensured, Terminology is reapplied in later steps
A Unit-Test shall be written to test the SegmentUpdate / DiffTagger for various scenarios