[MGNLUI-7040] Available languages in create page dialog are cached across sites Created: 21/Feb/22  Updated: 20/Jul/22  Resolved: 30/Mar/22

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

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Quach Hao Thien
Resolution: Fixed Votes: 0
Labels: VN-Maintenance, nucleus
Remaining Estimate: Not Specified
Time Spent: 6.5d
Original Estimate: Not Specified

Issue Links:
Problem/Incident
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
Date of First Response:
Epic Link: Nucleus Quality Maintenance
Sprint: Nucleus 6, Nucleus 7
Story Points: 3
Team: Nucleus

 Description   

Steps to reproduce

  1. login to admincentral on https://demoauthor.magnolia-cms.com/.magnolia/admincentral
  2. open the pages app
  3. select the /travel page
  4. click on "Add page" action
  5. enter a page name, select template "Basic Template" and confirm with "Next" button
  6. the "Page properties" dialog opens and shows localised fields like the page title and the language switch in the lower left corner of the dialog (so far everything as expected)
  7. cancel the dialog
  8. select the /sportstation page in the pages app browser
  9. click on "Add page" action
  10. enter a page name, select template "Basic Template" and confirm with "Next" button

Expected results

The "Page properties" dialog opens and does not provide a language switch and the fields are not shown to be localized.

Reloading the page and first selecting /sportstation and then /travel will show the "Page properties" dialog for both without language switch and without localized fields.

In the config /server/i18n/authoring@class the MultiSiteI18nAuthoringSupport is configured which should determine the available locales for each site individually.
In the configuration of the sportstation site i18n is disabled which
https://demoauthor.magnolia-cms.com/.magnolia/admincentral#app:configuration:browser;/modules/multisite/config/sites/sportstation/i18n@enabled:treeview:

Actual results

The "Page properties" dialog opens and shows localised fields like the page title and the language switch in the lower left corner of the dialog

Workaround

Reloading the page seems to clear the cached

Development notes

The problem seems to be the info.magnolia.ui.dialog.actions.OpenDialogAction where the value context is populated only once and then cached independent of the node in the valueContext.



 Comments   
Comment by Quach Hao Thien [ 22/Feb/22 ]

Discovery completed

LocaleContext should be populated in every time open dialog action being executed

Generated at Mon Feb 12 09:42:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.