-
Bug
-
Resolution: Fixed
-
Major
-
3.4.4
-
None
Getting the following exception when defining a source locale as en_US:
2022-04-20 19:11:17,645 INFO info.magnolia.module.scheduler.CommandJob : Starting job [UI Action triggered execution of [workflowTranslation:exportTranslationCommand] by user [superuser]. (10)]... 2022-04-20 19:11:17,698 ERROR info.magnolia.commands.MgnlCommand : Execution is error, update to translation task item {} info.magnolia.translation.ext.core.exception.CommandException: An exception occurred while creating the translation submission at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:256) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.translation.ext.core.command.ExportTranslationCommand.processResourceNodes(ExportTranslationCommand.java:179) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.translation.ext.core.command.ExportTranslationCommand.generateTranslationSubmission(ExportTranslationCommand.java:156) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.translation.ext.core.command.ExportTranslationCommand.executeOnItem(ExportTranslationCommand.java:128) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.translation.ext.core.command.AbstractTranslationCommand.execute(AbstractTranslationCommand.java:71) [magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:80) [magnolia-core-6.2.15.jar:?] at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:69) [magnolia-core-6.2.15.jar:?] at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:110) [magnolia-module-scheduler-2.3.5.jar:?] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.3.2.jar:?] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?] Caused by: java.lang.IllegalArgumentException: Invalid locale format: en-US at org.apache.commons.lang3.LocaleUtils.parseLocale(LocaleUtils.java:158) ~[commons-lang3-3.11.jar:3.11] at org.apache.commons.lang3.LocaleUtils.toLocale(LocaleUtils.java:126) ~[commons-lang3-3.11.jar:3.11] at info.magnolia.translation.ext.core.io.ContentTransporterExt.exportContent(ContentTransporterExt.java:90) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:221) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] ... 9 more 2022-04-20 19:11:17,700 ERROR info.magnolia.module.scheduler.CommandJob : Cannot execute command [exportTranslationCommand] for job [UI Action triggered execution of [workflowTranslation:exportTranslationCommand] by user [superuser]. (10)] in catalog [workflowTranslation] 2022-04-20 19:11:17,745 ERROR ext.core.app.batch.action.SubmitBatchCommandAction: SubmitBatchCommandAction is error {} info.magnolia.translation.ext.core.exception.CommandException: An exception occurred while creating the translation submission at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:256) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.translation.ext.core.command.ExportTranslationCommand.processResourceNodes(ExportTranslationCommand.java:179) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.translation.ext.core.command.ExportTranslationCommand.generateTranslationSubmission(ExportTranslationCommand.java:156) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.translation.ext.core.command.ExportTranslationCommand.executeOnItem(ExportTranslationCommand.java:128) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.translation.ext.core.command.AbstractTranslationCommand.execute(AbstractTranslationCommand.java:71) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:80) ~[magnolia-core-6.2.15.jar:?] at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:69) ~[magnolia-core-6.2.15.jar:?] at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:110) ~[magnolia-module-scheduler-2.3.5.jar:?] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-2.3.2.jar:?] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) ~[quartz-2.3.2.jar:?] Caused by: java.lang.IllegalArgumentException: Invalid locale format: en-US at org.apache.commons.lang3.LocaleUtils.parseLocale(LocaleUtils.java:158) ~[commons-lang3-3.11.jar:3.11] at org.apache.commons.lang3.LocaleUtils.toLocale(LocaleUtils.java:126) ~[commons-lang3-3.11.jar:3.11] at info.magnolia.translation.ext.core.io.ContentTransporterExt.exportContent(ContentTransporterExt.java:90) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?] at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:221) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?]
Acceptance criteria