[EXCONTRANS-372] Translation batch fails when using a locale with country as source language Created: 20/Apr/22 Updated: 03/May/22 Resolved: 03/May/22 |
|
| Status: | Resolved |
| Project: | Content Translation Extended (CTX) |
| Component/s: | Core |
| Affects Version/s: | 3.4.4 |
| Fix Version/s: | 3.4.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Teresa Miyar | Assignee: | Teresa Miyar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Description |
|
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:?]
|