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

Merging of term tagger result and track changes content leads to several errors

    XMLWordPrintable

Details

    Description

      When using multibyte characters like greek, the merge back of the text with track changes into the content coming from the termtagger leads to destroyed characters and therefore dataloss.

      See red squares in the screenshot one.

      A similar errors happens in french with the usage of ' apostrophe. Since before termtagging the character exists as HTML Entity ' and after tagging as plain ' character, the track changes data can not be restored to the tagged content. Therefore we lose the track changes tags and the deleted content.

      follow up errors

      One follow up error was the following.

      [19-Nov-2018 15:06:21 Europe/Vienna] exception 'QueryPath\Exception' with message 'Fehlender Parent' in /var/www/translate5/library/querypath/src
      /QueryPath/DOMQuery.php:1469
      Stack trace:
      #0 /var/www/translate5/application/modules/editor/Models/Segment.php(493): QueryPath\DOMQuery->replaceWith('')
      #1 /var/www/translate5/application/modules/editor/Models/Segment.php(388): editor_Models_Segment->stripTermTagsAndTrackChanges('\xCE\x97 ConfidentialTerm \x
      CF\x80\xCE\xB1\xCF\x81...')
      #2 /var/www/translate5/application/modules/editor/Models/Segment.php(401): editor_Models_Segment->isDataModified()
      #3 /var/www/translate5/application/modules/editor/Controllers/SegmentController.php(293): editor_Models_Segment->restoreNotModfied()
      #4 /var/www/translate5/library/zend/Zend/Controller/Action.php(516): Editor_SegmentController->putAction()
      #5 /var/www/translate5/library/ZfExtended/Controllers/AAARestController.php(288): Zend_Controller_Action->dispatch('putAction')
      #6 /var/www/translate5/library/zend/Zend/Controller/Dispatcher/Standard.php(308): ZfExtended_RestController->dispatch('putAction')
      #7 /var/www/translate5/library/zend/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(REST_Controller_Request_Http), Object(Zend_Controller_Response_Http))
      #8 /var/www/translate5/library/zend/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
      #9 /var/www/translate5/library/zend/Zend/Application.php(382): Zend_Application_Bootstrap_Bootstrap->run()
      #10 /var/www/translate5/library/ZfExtended/BaseIndex.php(167): Zend_Application->run()
      #11 /var/www/translate5/public/index.php(35): ZfExtended_BaseIndex->startApplication()

      Attachments

        Issue Links

          Activity

            People

              tlauria Thomas Lauria
              tlauria Thomas Lauria
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: