Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-373

Legacy pages app does not refresh after editing content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.5
    • 6.2.4
    • None
    • Yes
    • Maintenance 40, Maintenance 41
    • 5

      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.

        Acceptance criteria

              fgrilli Federico Grilli
              viet.nguyen Viet Nguyen
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 6.5h
                    6.5h