Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-7692

Action bar dissapears when auto-refreshing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Neutral
    • None
    • 6.2.26
    • None
    • None

    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
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rkovarik Roman Kovařík
                jayala Jonathan Ayala
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Bug DoR
                    Task DoD