Uploaded image for project: 'Content Translation Extended (CTX)'
  1. Content Translation Extended (CTX)
  2. EXCONTRANS-386

Unable to submit a document for translation

XMLWordPrintable

      Steps to reproduce

      1. From Pages App choose any page and click on 'Add to translation batch'
      2. Create New Batch or Choose existing batch, choose languages that need to be translated to, and Save changes
      3. Go to 'Translation Extend' App and choose the newly created batch and click on 'Submit Batch'

      Submit batch fails with an error.

      While debugging the jar we found that it's breaking while unzipping the xlf file. We can see the xlf document is getting zipped in a temp folder and while unzipping it below error is thrown. I am attaching the xlf file as well.

      Fatal Error] :1:1: Premature end of file.
      2022-11-11 15:44:24,690 ERROR a.translation.ext.core.helper.XliffTransporterImpl: Cannot convert to Document:
      org.xml.sax.SAXParseException: Premature end of file.
          at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) ~[?:1.8.0_301]
          at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) ~[?:1.8.0_301]
          at info.magnolia.translation.ext.core.helper.DocumentParser.parse(DocumentParser.java:88) ~[magnolia-content-translation-support-ext-core-2.9.8.jar:?]
          at info.magnolia.translation.ext.core.helper.XliffTransporterImpl.export(XliffTransporterImpl.java:84) [magnolia-content-translation-support-ext-core-2.9.8.jar:?]
          at info.magnolia.translation.ext.core.command.ExportTranslationCommand.exportDocument(ExportTranslationCommand.java:284) [magnolia-content-translation-support-ext-core-2.9.8.jar:?]
          at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:243) [magnolia-content-translation-support-ext-core-2.9.8.jar:?]
          at info.magnolia.translation.ext.core.command.ExportTranslationCommand.processResourceNodes(ExportTranslationCommand.java:179) [magnolia-content-translation-support-ext-core-2.9.8.jar:?]
          at info.magnolia.translation.ext.core.command.ExportTranslationCommand.generateTranslationSubmission(ExportTranslationCommand.java:156) [magnolia-content-translation-support-ext-core-2.9.8.jar:?]
          at info.magnolia.translation.ext.core.command.ExportTranslationCommand.executeOnItem(ExportTranslationCommand.java:128) [magnolia-content-translation-support-ext-core-2.9.8.jar:?]
          at info.magnolia.translation.ext.core.command.AbstractTranslationCommand.execute(AbstractTranslationCommand.java:63) [magnolia-content-translation-support-ext-core-2.9.8.jar:?]

      Expected results

      Translation batch should be successfully submitted

      Actual results

      Submit batch fails with an error.

      Workaround

      No workaround

      Development notes

        Acceptance criteria

          1. error_logs.txt
            56 kB
          2. fr_FR.xlf
            10 kB
          3. Screenshot_15.png
            Screenshot_15.png
            7 kB
          4. translationBatches.AP-FR1.xml
            4 kB
          5. website.global.your-avis.avis-loyalty.xml
            135 kB

              rdrangovski Riste Drangovski
              nexus-avis Tech Team
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD