[MULTISITE-34] MultiSiteManager#getAssignedSite always returns the Default site for locale prefixed uri's Created: 23/Dec/14  Updated: 12/Jan/15  Resolved: 23/Dec/14

Status: Closed
Project: Magnolia Multisite Module
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.8, 1.1.3

Type: Bug Priority: Neutral
Reporter: Philip Mundt Assignee: Philip Mundt
Resolution: Fixed Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLETK-129 ETKSiteManager#getAssignedSite always... Closed
dependency
is depended upon by MGNLDIFF-82 i18n aware comparison doesn't work in... Closed
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   

The DIFF between versions of a foreign language page on a multi-site instance fails because MultiSiteManager#getAssignedSite always returns the default site when the URI it is evaluating has a locale prefix such as "/fr/somenode".

This is because none of the default rules used in getAssignedSite() handles URI's with this locale prefix, and so it falls back to returning the default site.

This is a backport issue for MGNLETK-129.



 Comments   
Comment by Christopher Zimmermann [ 12/Jan/15 ]

Im not sure why this ticket is not showing the GIT commit.
They are here: https://git.magnolia-cms.com/gitweb/?p=enterprise/multisite.git;a=commitdiff;h=fee14431c5bd6673a58aaf6a0931cc87b726b012

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