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

Submitting batch fails with pages using the new spa prototype feature

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • 3.4.5
    • Core
    • None

      We use the new spa prototype feature in our sales demo. 

      This results in the following configuration according to this documentation:

      https://docs.magnolia-cms.com/product-docs/6.2/Templating/Template-definition.html#_common_template_properties

      https://docs.magnolia-cms.com/product-docs/6.2/Templating/Site-definition/Template-prototype.html

       

      for the site:

       

      Sitename:
        [... normal stuff...] 
        templates:
          prototype:
            baseUrl: http://localhost:3000
            $type: spaPrototype
            dialog: headless-ecommerce:pages/Page
            routeTemplate: /{language}{{@path}}

       

      for the page template itself:

       

      title: bla
      $type: siteSpa
      areas:
        [... normal stuff...] 

       

       

       

      When I add a page defined like mentioned above in a translation batch and submit, it is failing with the following error message:

      2022-04-27 06:13:49,4502022-04-27 08:13:49,341 ERROR info.magnolia.commands.MgnlCommand : Execution is error, update to translation task item {}
      2022-04-27 06:13:49,451info.magnolia.translation.ext.core.exception.CommandException: An exception occurred while creating the translation submission
      2022-04-27 06:13:49,451 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:256) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?]
      2022-04-27 06:13:49,451 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.processResourceNodes(ExportTranslationCommand.java:179) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?]
      2022-04-27 06:13:49,451 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.generateTranslationSubmission(ExportTranslationCommand.java:156) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?]
      2022-04-27 06:13:49,451 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.executeOnItem(ExportTranslationCommand.java:128) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?]
      2022-04-27 06:13:49,451 at info.magnolia.translation.ext.core.command.AbstractTranslationCommand.execute(AbstractTranslationCommand.java:71) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?]
      2022-04-27 06:13:49,451 at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:80) ~[magnolia-core-6.2.18.jar:?]
      2022-04-27 06:13:49,451 at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:69) ~[magnolia-core-6.2.18.jar:?]
      2022-04-27 06:13:49,451 at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:110) ~[magnolia-module-scheduler-2.3.6.jar:?]
      2022-04-27 06:13:49,451 at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-2.3.2.jar:?]
      2022-04-27 06:13:49,451 at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) ~[quartz-2.3.2.jar:?]
      2022-04-27 06:13:49,451Caused by: java.lang.ClassCastException: class info.magnolia.module.site.templates.ConfiguredTemplateSettings cannot be cast to class info.magnolia.module.site.templates.ReferencingPrototypeTemplateSettings (info.magnolia.module.site.templates.ConfiguredTemplateSettings and info.magnolia.module.site.templates.ReferencingPrototypeTemplateSettings are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @4b1c0397)
      2022-04-27 06:13:49,452 at info.magnolia.translation.finder.DialogBasedPropertiesToTranslateFinder.getDialogFromPrototypeTemplate(DialogBasedPropertiesToTranslateFinder.java:144) ~[magnolia-content-translation-2.5.5.jar:?]
      2022-04-27 06:13:49,452 at info.magnolia.translation.finder.DialogBasedPropertiesToTranslateFinder.determineDialogNames(DialogBasedPropertiesToTranslateFinder.java:125) ~[magnolia-content-translation-2.5.5.jar:?]
      2022-04-27 06:13:49,452 at info.magnolia.translation.ext.core.finder.DialogBasedPropertiesToTranslateFinderExt.getPropertiesBasedOnDialogNames(DialogBasedPropertiesToTranslateFinderExt.java:98) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?]
      2022-04-27 06:13:49,452 at info.magnolia.translation.ext.core.finder.DialogBasedPropertiesToTranslateFinderExt.getPropertiesToTranslate(DialogBasedPropertiesToTranslateFinderExt.java:86) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?]
      2022-04-27 06:13:49,452 at info.magnolia.translation.finder.AdaptivePropertiesToTranslateFinder.getPropertiesToTranslate(AdaptivePropertiesToTranslateFinder.java:55) ~[magnolia-content-translation-2.5.5.jar:?]
      2022-04-27 06:13:49,452 at info.magnolia.translation.io.ExportVisitor.visit(ExportVisitor.java:95) ~[magnolia-content-translation-2.5.5.jar:?]
      2022-04-27 06:13:49,452 at info.magnolia.jcr.util.NodeUtil.visit(NodeUtil.java:659) ~[magnolia-core-6.2.18.jar:?]
      2022-04-27 06:13:49,452 at info.magnolia.translation.ext.core.io.ContentTransporterExt.exportContent(ContentTransporterExt.java:120) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?]
      2022-04-27 06:13:49,452 at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:221) ~[magnolia-content-translation-support-ext-core-3.4.4.jar:?]
      2022-04-27 06:13:49,452 ... 9 more
      2022-04-27 06:13:49,4522022-04-27 08:13:49,341 ERROR info.magnolia.module.scheduler.CommandJob : Cannot execute command [exportTranslationCommand] for job [UI Action triggered execution of [workflowTranslation:exportTranslationCommand] by user [jl3r2p5kplieoo3t]. (1)] in catalog [workflowTranslation] 

       

        Acceptance criteria

              tmiyar Teresa Miyar
              tobias.kerschbaum Tobias Kerschbaum
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD