[MAGNOLIA-8306] User locale doesn't support java8 format Created: 09/Feb/22  Updated: 29/Mar/22  Resolved: 22/Feb/22

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

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Quach Hao Thien
Resolution: Fixed Votes: 0
Labels: VN-Maintenance, VN-Testing, nucleus
Remaining Estimate: Not Specified
Time Spent: 1d 3.5h
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLUI-6247 Make the LocaleSelectionSupport exten... Closed
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:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Epic Link: Java8 locales
Sprint: Nucleus 4, Nucleus 4
Story Points: 2
Team: Nucleus

 Description   

Steps to reproduce

  1. Go to https://demopublic.magnolia-cms.com/.magnolia/admincentral#app:jcr-browser-app:browser;/admin/tina/language::  as superuser
  2. Switch to users workspace, go to admin/tina/language
  3. Change it to a locale-country format (zh-CN)
  4. Log out
  5. Log in as tina

Expected results

The admincentral is switched to Chinese language. 

Actual results

java.lang.IllegalArgumentException: Invalid locale format: zh-CN
 

Workaround

Use java7 format (zh_CN).

Development notes


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