[MGNLEE-791] Locale not supported by REST content delivery module Created: 16/Jun/23  Updated: 16/Jun/23

Status: Open
Project: Magnolia DX Core
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Eduard Lehel Reichenberger Assignee: Unassigned
Resolution: Unresolved 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
Environment:

Edition Magnolia DX Core
Version (bundle) 6.2.15

Environment

Operating system Linux 5.4.0-126-generic (amd64)
Java version Ubuntu 11.0.16 (build 11.0.16+8-post-Ubuntu-0ubuntu120.04)
Application server Apache Tomcat/9.0.43
Database PostgreSQL 12.12 (Ubuntu 12.12-0ubuntu0.20.04.1)
Java DB Driver PostgreSQL JDBC Driver 42.2.12
Repository Jackrabbit 2.20.4


Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLEE-792 Implementation Sub-task To Do  
MGNLEE-793 Review Sub-task To Do  
MGNLEE-794 Pre-Integration QA Sub-task To Do  
MGNLEE-795 QA Sub-task To Do  
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

 Description   

Steps to reproduce

  1. Create locale en_NO or en_PT for example in multisite configuration. Site is loaded correctly with correct locale.
  2. Call rest endpoint with lang=en_PT and I get back Bad Request: "error":  {"code": "badRequest","message": "Language parameter: en-PT is not allowed"}

Expected results

Rest delivery endpoint should check valid locales in multisite configuration instead of LocaleUtils


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