Uploaded image for project: 'Content Translation Support'
  1. Content Translation Support
  2. MGNLCTS-151

Export translation file fails with pages using the new spa prototype feature

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.5.7
    • 2.5.5
    • 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 try to export the translation of a page with from that site I get the following error: exportTranslationError.log

      2022-04-27 13:35:06,9872022-04-27 15:35:06,767 ERROR tion.ui.action.TranslationFileDownloadDialogAction: An error occurred when executing the command downloadTranslationFile from catalog translation
      2022-04-27 13:35:06,987java.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 
      

        Acceptance criteria

              dai.ha Dai Ha
              tobias.kerschbaum Tobias Kerschbaum
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD