[LIVECOPY-262] Test Only - MasterLocale not part of Target Site Created: 11/Jun/21  Updated: 18/Aug/21  Resolved: 18/Aug/21

Status: Closed
Project: Live Copy
Component/s: None
Affects Version/s: 3.2.3
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Martin Schmid Assignee: Thuy To
Resolution: Won't Fix Votes: 1
Labels: VN-Testing, maintenance
Remaining Estimate: Not Specified
Time Spent: 7.5h
Original Estimate: Not Specified
Environment:

any


Issue Links:
Relates
relates to LIVECOPY-266 Impact defaultLocale on Authoring sup... 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)
Date of First Response:
Epic Link: Live Copy maintenance
Sprint: Content Mngmt 10
Story Points: 2

 Description   

Steps to reproduce

  1. create site A:
    1. default lang & fallback lang = fr,
    2. i18n langs = en, fr
  2. create site B:
    1. default lang & fallbacklang = es,
    2. i18n langs = en, es
    3. masterlocale = fr
  3. try to fetch the fallback locale:
    1. info.magnolia.livecopy.i18n.LiveCopyI18nContentSupport#getFallbackLocale (Version 3.2.3)
  4. the fallback locale returns fr instead of es, also for pages w/o fr content. 

Expected results

The fallback locale shoud only be the master locale, if those exists. if it's not, the default locale (aka fallback locale) should be returned. 

Actual results

once the master locale is set, the fallback locale is ignored. 

Workaround

n/a

Development notes

  1. Test at info.magnolia.livecopy.i18n.LiveCopyI18nContentSupport#getFallbackLocale if masterlocale is part of current site. 
  2. if yes: return masterlocale
  3. if not: return fallback locale
  4.  this has impact on the edit mode


 Comments   
Comment by Laura Delnevo [ 17/Aug/21 ]

This ticket will be resolved with LIVECOPY-266

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