[MAGNOLIA-8759] Saving multiField with locale composed by lang + country yields strange JCR naming Created: 13/Feb/23  Updated: 15/Feb/23  Resolved: 15/Feb/23

Status: Closed
Project: Magnolia
Component/s: i18n
Affects Version/s: 6.2.28
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Roberto Gaona Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2023-02-13-09-11-43-901.png     File textImage.yaml    
Issue Links:
causality
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
Team: Nucleus

 Description   

Steps to reproduce

This can be reproduced on our demo page:

  1. Add en_GB locale to Site Definition
    https://demoauthor.magnolia-cms.com/.magnolia/admincentral#app:site:browser;/travel/i18n/locales/en_GB:null:
  2. Add third Tab with jcrMutliField to the Component (in this case: textImage.yaml)
    https://demoauthor.magnolia-cms.com/.magnolia/admincentral#app:resources:browser;/mtk2/dialogs/components/textImage.yaml::
    Attached definition of the component.
  3. Edit "Travel Home"-Template 
    1. change language to English (United Kingdom).  
    2. add "Text and Image"-Component. 
    3. got to the third Tab and add one Image
  4. see the result in JCR App{}

Expected results

Data is stored on properly named nodes without issue

Actual results

Nodes name concatenates the locale + country consecutively and returns error when trying to save more times.

Workaround

Development notes


Generated at Mon Feb 12 04:35:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.