[RESPDAM-18] i18n Fields cannot be saved properly Created: 27/Nov/19  Updated: 14/Feb/22  Resolved: 29/Apr/20

Status: Closed
Project: DAM Focal
Component/s: None
Affects Version/s: 1.1.4
Fix Version/s: 1.1.6

Type: Bug Priority: Neutral
Reporter: Thomas Peintner Assignee: Adrien Manzoni
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: 0d
Time Spent: 1h
Original Estimate: Not Specified

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
Date of First Response:
Sprint: Sprint 5

 Description   

Magnolia DX Version: 6.1.1
Dam Responsive-Image Version: 1.1.4

 

How to reproduce:
Upload an image in the assets-app. Before saving switch language. e.g. from english to german.

FocalAreasFieldTransformer throws an java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long in line 62. Thus i18n-fields like title, description ... are not saved except in the default language.

dam-images-responsive configuration:

'config':
    jcr:primaryType: 'mgnl:content'
    'variationSets':
        'dam':
            'cubic':
               'minHeight': '2000'
               'minWidth': '2000'
               'ratio': '1/1'
   'editorConfig':
      'maxHeight': '1080'
      'maxWidth': '1920'

 

 



 Comments   
Comment by Kathrin Kaufleitner [ 14/Feb/20 ]

A lot of our customers fall for this bug as they expect the fields to be saved correctly even if they switch the language without saving the other translation first. So in the worst case example a customer thought he would have translated the alternative text of all newly uploaded images correctly. Unfortunately because of that bug nothing was saved.

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