Uploaded image for project: 'Magnolia Personalization'
  1. Magnolia Personalization
  2. MGNLPN-574

NullPointer when directly deleting page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.1, 2.0.12
    • 2.0.11
    • None

      Steps to reproduce

      1.  Disable receivers https://demo.magnolia-cms.com/.magnolia/admincentral#app:configuration:browser;/modules/publishing-core/config/receivers/magnoliaPublic8080@enabled:treeview:
      2.  Delete a page https://demo.magnolia-cms.com/.magnolia/admincentral#app:pages-app:browser;/sportstation::

      Expected results

      Page is deleted and success message is shown.

      Actual results

      Page is deleted and exception is thrown.

      Workaround

      Use default variant aware column definition (if amount of pages is not huge and you are not affected with performance issue MGNLPN-560)

      Development notes

      Deletion trigger observation which rerenders the grid asynchronously (without a webcontext/request).
      CachingVariantAwareTitleColumnDefinition fails to access request.
      Checks if a simple check for null doesn't introduce a performance problem again for asynchronous requests.
      Can we cache in ValueProvider and flush if mgnl:variant is added (via observation)?

        Acceptance criteria

              rkovarik Roman Kovařík
              ccantalapiedra Carlos Cantalapiedra
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD