-
Bug
-
Resolution: Fixed
-
Blocker
-
2.9.8
-
None
Steps to reproduce
- From Pages App choose any page and click on 'Add to translation batch'
- Create New Batch or Choose existing batch, choose languages that need to be translated to, and Save changes
- 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