[MGNLCTS-151] Export translation file fails with pages using the new spa prototype feature Created: 27/Apr/22  Updated: 29/Jun/22  Resolved: 03/Jun/22

Status: Closed
Project: Content Translation Support
Component/s: None
Affects Version/s: 2.5.5
Fix Version/s: 2.5.7

Type: Bug Priority: Neutral
Reporter: Tobias Kerschbaum Assignee: Dai Ha
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: Text File exportTranslationError.log    
Issue Links:
Problem/Incident
causality
relation
is related to EXCONTRANS-373 Submitting batch fails with pages usi... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLCTS-155 Fix Sub-task Completed Dai Ha  
MGNLCTS-157 Review Sub-task Completed Jesus Alonso  
MGNLCTS-158 piQA Sub-task Completed Jaroslav Simak  
MGNLCTS-159 QA Sub-task Completed Chuong Doan Huy  
MGNLCTS-160 Integrate Sub-task Completed Dai Ha  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: External SPA Backlog
Sprint: DevX 11
Story Points: 3
Team: DeveloperX

 Description   

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 


 Comments   
Comment by Tobias Kerschbaum [ 27/Apr/22 ]

same problem?!?!

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