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

Tag protection feature does not work if content contains XML comments or CDATA blocks

    • Critical
    • The tag protection feature was not working properly if the content contains XML comments or CDATA blocks.

       

      Importing such content lead to frontend errors:

      <trans-unit id="2">
      <source xml:lang="en">Dies &lt;!--&lt;strong id="123"&gt;ist &amp;lt; ein&lt;/strong&gt;--&gt; &amp;quot;Test mit Kommentaren und CDATA: &lt;![CDATA[ TEST ]]&gt;.</source>
      <seg-source><mrk mid="0" mtype="seg">Dies &lt;!--&lt;strong id="123"&gt;ist &amp;lt; ein&lt;/strong&gt;--&gt; &amp;quot;Test mit Kommentaren und CDATA: &lt;![CDATA[ TEST ]]&gt;.</mrk></seg-source>
      <target xml:lang="de"><mrk mtype="seg" mid="0">This &lt;!--&lt;strong id="123"&gt;is &amp;lt; a&lt;/strong&gt;--&gt; &amp;quot;test with comments and CDATA: &lt;![CDATA[ TEST ]]&gt;.</mrk></target>
      </trans-unit>
      

          [TRANSLATE-2464] Tag protection feature does not work if content contains XML comments or CDATA blocks

          Marc Mittag [Administrator] made changes -
          Start Date [Gantt] New: 23/Apr/24 5:00 AM
          Aleksandar Mitrev made changes -
          Status Original: Final pull request made [ 10005 ] New: Done [ 10000 ]
          Marc Mittag [Administrator] made changes -
          Workflow Original: MittagQI Workflow [ 30952 ] New: MittagQI Workflow with Peer [ 36515 ]
          Thomas Lauria made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Test Ready [ 10005 ]
          Thomas Lauria made changes -
          Status Original: Selected for Development [ 10100 ] New: In Progress [ 3 ]
          Thomas Lauria made changes -
          Status Original: Open [ 10002 ] New: Selected for Development [ 10100 ]
          Thomas Lauria made changes -
          ChangeLog Description New: The tag protection feature was not working properly if the content contains XML comments or CDATA blocks.
          Fix Version/s New: translate5 - 5.1.3 [ 11602 ]
          Thomas Lauria made changes -
          Link New: This issue causes TS-906 [ TS-906 ]
          Thomas Lauria created issue -

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

              Created:
              Updated:
              Resolved: