[EXCONTRANS-399] Extended content translation issue Created: 28/Aug/23  Updated: 16/Jan/24  Resolved: 16/Jan/24

Status: Closed
Project: Content Translation Extended (CTX)
Component/s: Translations.com Translator
Affects Version/s: None
Fix Version/s: 3.4.7

Type: Bug Priority: Neutral
Reporter: Michael Schneider Assignee: Yen Lac Tue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 0.75d
Original Estimate: Not Specified

Attachments: PNG File image (2).png     PNG File image-2023-07-26-13-42-37-951.png     PNG File image-2023-07-26-13-42-59-484.png     File website.corp-website.platform.yaml    
Issue Links:
Cloners
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
Account: Magnolia Marketing (MGNLMARKETING)
Epic Link: Technical

 Description   

When Michi executing translation via extended content translation app for:

issue occurs both on PROD and on DEV, on DEV it could be replicated on this page:

https://author.dev.corp-webpre.magnolia-platform.com/.magnolia/admincentral#app:pages-app:detail;/corp-website/platform:edit

 

page is /corp-website/platform (export: website.corp-website.platform.yaml) this page as a 1 component 'comparison table' inside main area. component itself consist from multiple areas (columns and cells) and dialog on a cell area seems to be causing the issue. 

Definition of dialog for cell area:

label: Comparison table cell
form:
  properties:
    type:
      $type: switchableField
      label: Type
      field:
        $type: radioButtonGroupField
        layout: horizontal
        datasource:
          $type: optionListDatasource
          options:
            - name: headline
              value: headline
            - name: text
              value: text
      itemProvider:
        $type: jcrChildNodeProvider
      forms:
        - name: headline
          properties:
            headline:
              $type: textField
              label: Headline
              i18n: true
              rows: 3
        - name: text
          properties:
            abc:
              $type: richTextField
              label: Text
              i18n: true
footerLayout: 
  $type: defaultEditorActionLayout
  primaryActions:
    commit: commit
    cancel: cancel

In page editor this dialog is working correctly, also seems fine according to documentation. but when submitting batch for translation it fails with this error:

when removing dialog from cell area in definition, or just removing all its fields does solve the issue, but then comparison table will not get translated.

 

Error in log:

2023-07-25 14:22:25,577
2023-07-25 16:22:25,546 INFO info.magnolia.module.scheduler.CommandJob : Starting job [UI Action triggered execution of [workflowTranslation:exportTranslationCommand] by user [mschneider]. (0)]...
2023-07-25 14:22:26,081
2023-07-25 16:22:26,060 ERROR info.magnolia.commands.MgnlCommand : Execution is error, update to translation task item {}
2023-07-25 14:22:26,081info.magnolia.translation.ext.core.exception.CommandException: An exception occurred while creating the translation submission
2023-07-25 14:22:26,081 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:282) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,081 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.processResourceNodes(ExportTranslationCommand.java:180) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,081 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.generateTranslationSubmission(ExportTranslationCommand.java:157) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,081 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.executeOnItem(ExportTranslationCommand.java:129) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,081 at info.magnolia.translation.ext.core.command.AbstractTranslationCommand.execute(AbstractTranslationCommand.java:71) [magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,081 at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:80) [magnolia-core-6.2.36.jar:?]
2023-07-25 14:22:26,081 at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:69) [magnolia-core-6.2.36.jar:?]
2023-07-25 14:22:26,081 at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:110) [magnolia-module-scheduler-2.3.6.jar:?]
2023-07-25 14:22:26,081 at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.3.2.jar:?]
2023-07-25 14:22:26,081 at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?]
2023-07-25 14:22:26,081Caused by: java.lang.NullPointerException
2023-07-25 14:22:26,081 at java.util.concurrent.ConcurrentHashMap.get(Unknown Source) ~[?:?]
2023-07-25 14:22:26,082 at info.magnolia.config.registry.RegistryMap.getByStringKey(RegistryMap.java:79) ~[magnolia-configuration-6.2.36.jar:?]
2023-07-25 14:22:26,082 at info.magnolia.config.registry.AbstractRegistry.getProvider(AbstractRegistry.java:125) ~[magnolia-configuration-6.2.36.jar:?]
2023-07-25 14:22:26,082 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.getAreasFromRegistry(ExportTranslationCommand.java:565) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,082 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.getDialogNameByArea(ExportTranslationCommand.java:526) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,082 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.determineDialogName(ExportTranslationCommand.java:504) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,082 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.getPropertyFieldWebsite(ExportTranslationCommand.java:429) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,082 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.getMaxLengthFromBatch(ExportTranslationCommand.java:411) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,082 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.getMaxLength(ExportTranslationCommand.java:391) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,082 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.exportDocument(ExportTranslationCommand.java:354) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,082 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:274) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,082 ... 9 more
2023-07-25 14:22:26,082
2023-07-25 16:22:26,060 ERROR info.magnolia.module.scheduler.CommandJob : Cannot execute command [exportTranslationCommand] for job [UI Action triggered execution of [workflowTranslation:exportTranslationCommand] by user [mschneider]. (0)] in catalog [workflowTranslation]
2023-07-25 14:22:26,331
2023-07-25 16:22:26,179 ERROR ext.core.app.batch.action.SubmitBatchCommandAction: SubmitBatchCommandAction is error {}
2023-07-25 14:22:26,331info.magnolia.translation.ext.core.exception.CommandException: An exception occurred while creating the translation submission
2023-07-25 14:22:26,331 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:282) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,331 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.processResourceNodes(ExportTranslationCommand.java:180) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,331 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.generateTranslationSubmission(ExportTranslationCommand.java:157) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,331 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.executeOnItem(ExportTranslationCommand.java:129) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,331 at info.magnolia.translation.ext.core.command.AbstractTranslationCommand.execute(AbstractTranslationCommand.java:71) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,331 at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:80) ~[magnolia-core-6.2.36.jar:?]
2023-07-25 14:22:26,331 at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:69) ~[magnolia-core-6.2.36.jar:?]
2023-07-25 14:22:26,331 at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:110) ~[magnolia-module-scheduler-2.3.6.jar:?]
2023-07-25 14:22:26,331 at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-2.3.2.jar:?]
2023-07-25 14:22:26,331 at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) ~[quartz-2.3.2.jar:?]
2023-07-25 14:22:26,331Caused by: java.lang.NullPointerException
2023-07-25 14:22:26,331 at java.util.concurrent.ConcurrentHashMap.get(Unknown Source) ~[?:?]
2023-07-25 14:22:26,333 at info.magnolia.config.registry.RegistryMap.getByStringKey(RegistryMap.java:79) ~[magnolia-configuration-6.2.36.jar:?]
2023-07-25 14:22:26,333 at info.magnolia.config.registry.AbstractRegistry.getProvider(AbstractRegistry.java:125) ~[magnolia-configuration-6.2.36.jar:?]
2023-07-25 14:22:26,333 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.getAreasFromRegistry(ExportTranslationCommand.java:565) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,333 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.getDialogNameByArea(ExportTranslationCommand.java:526) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,333 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.determineDialogName(ExportTranslationCommand.java:504) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,333 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.getPropertyFieldWebsite(ExportTranslationCommand.java:429) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,333 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.getMaxLengthFromBatch(ExportTranslationCommand.java:411) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,333 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.getMaxLength(ExportTranslationCommand.java:391) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,333 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.exportDocument(ExportTranslationCommand.java:354) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,333 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:274) ~[magnolia-content-translation-support-ext-core-3.4.7.jar:?]
2023-07-25 14:22:26,333 ... 9 more 

Generated at Mon Feb 12 00:30:51 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.