[PAGES-373] Legacy pages app does not refresh after editing content Created: 09/Dec/20  Updated: 22/Jan/21  Resolved: 21/Jan/21

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: 6.2.4
Fix Version/s: 6.2.5

Type: Bug Priority: Neutral
Reporter: Viet Nguyen Assignee: Federico Grilli
Resolution: Fixed Votes: 1
Labels: maintenance
Remaining Estimate: 0d
Time Spent: 6.5h
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causality
duplicate
is duplicated by PAGES-377 No refresh of page after saving a com... 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
Testcase included:
Yes
Sprint: Maintenance 40, Maintenance 41
Story Points: 5

 Description   

Steps to reproduce

  1.  Setup project with multi-tree languages support (each language has it's own branch in the content tree)
  2. When the current language is different to the logged in user's language
  3.  After adding / editing / deleting / reordering components on a page, changes are not directly visible as the content doesn't refresh (reload page).

.. Logs, screenshots, gifs...

Expected results

  • Refresh page after editing as usual

.. Justify non-trivial expectations with a link to a doc or a relevant discussion.

Actual results

  • System does not

Workaround

  • No

Development notes

Customer investigated the behaviour and figured out that it came in with the following commit:

https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/commits/88ee92b7f5084d86a7fd00202866c5cd75193f00

subAppContext.setAuthoringLocale(contextProvider.get().getLocale());

This has impact on line 272 in the following file:

https://git.magnolia-cms.com/users/apchelintcev/repos/pages/browse/magnolia-pages-app-compatibility/src/main/java/info/magnolia/pages/app/editor/PagesEditorSubApp.java

ObjectUtils.equals(authoringLocale, pageEditorPresenter.getStatus().getLocale())

It only happens in a project setup with multi tree (each language ha it's own branch in the content tree) and when the current language is different to the logged in user's language.

This issue might affect every project with newer Magnolia versions.


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