-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
None
-
None
-
-
Empty show more show less
-
UI Framework 16, UI Framework 17
-
5
If user language is not available in Site configuration then FormView.getPropertyValue fails on NPE.
Caused by: java.lang.NullPointerException at info.magnolia.ui.framework.databinding.view.FormPresenter.getBoundPropertyValue(FormPresenter.java:94) ~[magnolia-ui-framework-6.2-SNAPSHOT.jar:?] at info.magnolia.ui.framework.databinding.view.FormView.getPropertyValue(FormView.java:179) ~[magnolia-ui-framework-6.2-SNAPSHOT.jar:?] at info.magnolia.ui.framework.databinding.ItemEditor.getPropertyValue(ItemEditor.java:49) ~[magnolia-ui-framework-6.2-SNAPSHOT.jar:?] at info.magnolia.ui.contentapp.action.ShowVersionAction.getVersion(ShowVersionAction.java:84) ~[magnolia-ui-framework-6.2-SNAPSHOT.jar:?] at info.magnolia.ui.contentapp.action.ShowVersionAction.execute(ShowVersionAction.java:72) ~[magnolia-ui-framework-6.2-SNAPSHOT.jar:?]
Problem is in ItemEditor#getPropertyValue method which resolves MgnlContext.getLocale() which doesn't have to be available for site (Authoring locale vs Content locale). This would be problem also on another places where MgnlContext.getLocale() is used.
Reproduce:
1. Log as Superuser and "Edit User Profile"
2. In "Preference" tab Switch language to something else than English/German, for example to Czech
3. Relogin
4. Open new Pages app
5. Publish "/travel/contact" page. So the version is created
6. Click "Show versions" action and select version and click Show
7. NPE is thrown
- relates to
-
MGNLUI-5661 Empty rename dialog in pages app
- Closed
-
MGNLUI-5652 Non-localised form properties are synchronised even when they shouldn't be
- Closed
-
PAGES-243 Can't create page/component if related website sub-tree is locale-agnostic (at least with DX)
- Closed