Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects versions: 6.2
    • Fix versions: None
    • Components: Translation
    • Labels:
      None
    • Sprint:

      Description

      Seems like java 9 introduced a bug in its management of XML indentation.

      As explained in this post:
      http://java9.wtf/xml-transformer/

      The behavior of OutputKeys.INDENT=yes was changed for something that looks wrong.

      For example, look at the change here for W_Store_Trl_es_CO.xml

      This changed the exported xml from:

        <value column="WebParam2" original="&lt;h1&gt;Web Store&lt;/h1&gt;"><![CDATA[<h1>Tienda Web</h1>]]></value>
      

      to

        <value column="WebParam2" original="&lt;h1&gt;Web Store&lt;/h1&gt;">
         <![CDATA[<h1>Tienda Web</h1>]]>
        </value>
      

      This new "indentation" behavior of java 9 sounds wrong, for example as discussed here:
      https://github.com/nashwaan/xml-js/issues/14

      CDATA is not a tag and can be used inline in text

      The undesired data-corrupted result is, for example when importing that W_Store_Trl_es_CO.xml file in iDempiere, the record looks like this:

      SELECT webparam2 FROM w_store_trl WHERE w_store_id=11
      

      expected value:

      <h1>Tienda Web</h1>
      
      [newline]
         <h1>Tienda Web</h1>
        [newline]
      

        Attachments

          Activity

            People

            • Assignee:
              carlosruiz_globalqss Carlos Ruiz
              Reporter:
              carlosruiz_globalqss Carlos Ruiz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: