Uploaded image for project: 'Freeze'
  1. Freeze
  2. FREEZE-12

freezeToggle in userMenu - NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • DX Core 6.2.29

    Description

      Steps to reproduce

      1. Create /freeze-configuration light-module
      2. Add decoration for userMenu.yaml
      3. Add toggleFreeze with jcrCommandAction
      4. After reloading try to click new Freeze button while:
        • inside the Pages app with selected node
        • inside the Pages app w/o selected node
        • all applications are closed (in admincentral root)

      /freeze-configuration/decorations/admincentral/dialogs/userMenu.yaml

       

      actions:
        toggleFreeze:
          label: Toggle Freeze
          $type: jcrCommandAction
          icon: icon-publish
          command: toggleGlobalFreeze
          catalog: freeze
          asynchronous: true

      Tried adding 

      availability:
        nodes: false
        root: true 

      or

      availability:
        nodes: false
        root: true
        rules:
          JcrRootRuleDefinition:
            class: info.magnolia.ui.availability.rule.JcrRootRuleDefinition 

      First configuration works only when any page in app is selected
      Second throws NPE (NullPointerException)
      Third sometimes throws a.u.c.b.a.ActionbarPresenter: Action toggleFreeze defined in group publish not found

       

       

       

      Expected results

      Button should work w/o context of the apps

      Actual results

      The only way to fire this command from userMenu is to select node in application

       

      Module version: magnolia-freeze 2.0

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              awarinner Andrew Warinner
              NDQ Mykola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD