[MGNLREST-779] Localised content is not returned when using header Created: 19/Dec/23  Updated: 19/Dec/23

Status: Open
Project: Magnolia REST Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Jonathan Ayala Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

Steps to reproduce in travel demo

  1. Add the attached pages delivery endpoint to one of the light modules
  2. Make sure the endpoint is available in public instance
  3. Send anonymous request by setting header Accept-Language to en and de .rest/delivery/pages/travel/about/careers/customer-experience-agent

Expected results

Responses are returned in the corresponding language (property title) as explained in the docs

Actual results

Response when Accept-Language is set to de is returned in English.

Workaround

Development notes



 Comments   
Comment by Marvin Kerkhoff [ 19/Dec/23 ]

Just to add some more information: The issue seemed to be within the cache policy. If i exclude uris from this server cache it works without issue. The problem is that a request without URL change but with a change in the language header will not be handled as a seperate cache entry within magnolia. You always get the first requested entry from the cache.

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