[MGNLUI-7692] Action bar dissapears when auto-refreshing Created: 12/Dec/22  Updated: 14/Dec/22  Resolved: 14/Dec/22

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

Type: Bug Priority: Neutral
Reporter: Jonathan Ayala Assignee: Roman Kovařík
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
duplicate
duplicates TASKS-18 Appearance of notification empties Ta... 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
Date of First Response:
Team: Nucleus
Work Started:

 Description   

Steps to reproduce

  1. Access demo author with superuser
  2. In a different window (incognito) access demo author with peter
  3. Open tasks app with peter
  4. Open pages app with superuser and publish a page

Expected results

The new task appears in tasks app of peter

Actual results

The new task appears in tasks app of peter but the action bar disappears

Workaround

Refresh the window

Development notes

There's an exception thrown when the issue is reproduced:

ERROR info.magnolia.ui.framework.ContextProperty$Impl 12.12.2022 15:53:28 -- Failed to dispatch context property change: Failed to create instance of [class info.magnolia.ui.availability.rule.AccessGrantedRule]
info.magnolia.objectfactory.MgnlInstantiationException: Failed to create instance of [class info.magnolia.ui.availability.rule.AccessGrantedRule]
	at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:138) ~[magnolia-core-6.2.26.jar:?]
	at info.magnolia.ui.framework.ioc.UiComponentProvider.lambda$newInstanceWithParameterResolvers$3(UiComponentProvider.java:137) ~[magnolia-ui-framework-6.2.26.jar:?]
	at info.magnolia.ui.framework.ioc.UiComponentProvider.provideInCurrentScope(UiComponentProvider.java:177) ~[magnolia-ui-framework-6.2.26.jar:?]
	at info.magnolia.ui.framework.ioc.UiComponentProvider.newInstanceWithParameterResolvers(UiComponentProvider.java:137) ~[magnolia-ui-framework-6.2.26.jar:?]
	at info.magnolia.ui.framework.ioc.UiComponentProvider.newInstance(UiComponentProvider.java:128) ~[magnolia-ui-framework-6.2.26.jar:?]
	at info.magnolia.ui.availability.DefaultAvailabilityChecker.isAvailable(DefaultAvailabilityChecker.java:80) ~[magnolia-ui-framework-6.2.26.jar:?]
	at info.magnolia.ui.availability.DefaultAvailabilityChecker.lambda$isAvailable$1(DefaultAvailabilityChecker.java:64) ~[magnolia-ui-framework-6.2.26.jar:?]
	...
Caused by: info.magnolia.objectfactory.MgnlInstantiationException: Failed to resolve param [2] of type [interface info.magnolia.context.Context]
	at info.magnolia.objectfactory.ObjectManufacturer.resolveParameters(ObjectManufacturer.java:146) ~[magnolia-core-6.2.26.jar:?]
	at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:91) ~[magnolia-core-6.2.26.jar:?]
	at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:134) ~[magnolia-core-6.2.26.jar:?]
	... 251 more
Caused by: java.lang.NullPointerException
	at info.magnolia.ui.framework.ioc.UiComponentContextParameterResolver.lookup(UiComponentContextParameterResolver.java:109) ~[magnolia-ui-framework-6.2.26.jar:?]
	at info.magnolia.ui.framework.ioc.UiComponentContextParameterResolver.resolveParameter(UiComponentContextParameterResolver.java:100) ~[magnolia-ui-framework-6.2.26.jar:?]
	at info.magnolia.objectfactory.ObjectManufacturer.resolveParameter(ObjectManufacturer.java:160) ~[magnolia-core-6.2.26.jar:?]
	at info.magnolia.objectfactory.ObjectManufacturer.resolveParameters(ObjectManufacturer.java:140) ~[magnolia-core-6.2.26.jar:?]
	at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:91) ~[magnolia-core-6.2.26.jar:?]
	at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:134) ~[magnolia-core-6.2.26.jar:?]
	... 251 more


 Comments   
Comment by Roman Kovařík [ 14/Dec/22 ]

Discovery:
https://git.magnolia-cms.com/projects/MODULES/repos/tasks/browse/tasks-app/src/main/java/info/magnolia/task/app/TaskDataSourceObservation.java#123 needs to happen inside of UI#access.

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