[MGNLCTS-116] Export not working if dialogs defined using UI6 Created: 24/Jun/20  Updated: 05/Nov/20  Resolved: 27/Oct/20

Status: Closed
Project: Content Translation Support
Component/s: None
Affects Version/s: 2.4.2
Fix Version/s: 2.5

Type: Bug Priority: Major
Reporter: Teresa Miyar Assignee: Federico Grilli
Resolution: Fixed Votes: 1
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: 13m
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Relates
relates to EXCONTRANS-340 New components from light modules or ... Resolved
duplicate
is duplicated by MGNLCTS-118 Export not working if dialogs defined... Closed
relation
is related to MGNLCTS-123 Migrate TranslationFileFormatOptionGr... Open
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
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:
Epic Link: Migrate apps to new UI framework
Sprint: Maintenance 30
Story Points: 3

 Description   

If you try to export  a translation in the Content translation app, regardless of the chosen format (excel, xliff, cvs, ..), and if the dialogs are defined with the Magnolia 6 UI framework, you get an error: "Export of translation file failed"

This is not happening if the dialogs are defined using Magnolia 5 UI framework

Steps to reproduce

  • Create a page in the pages app
  • Add a dialog defined using UI6, for example:
    form:
      properties:
        text:
          $type: textField
          label: Body
          defaultValue: testing
          rows: 5
          maxLength: 300
    
  • Go to the Content translation app, select the page and click on "Export translation"

Expected results
The file should be exported with no error
 
Actual results
The file is not exported and you get an error, find the full error attached.

ERROR tion.ui.action.TranslationFileDownloadDialogAction: An error occurred when executing the command downloadTranslationFile from catalog translation
java.lang.ClassCastException: info.magnolia.ui.dialog.ConfiguredFormDialogDefinition cannot be cast to info.magnolia.ui.dialog.definition.FormDialogDefinition

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