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

Choose dialog of a content app fails with NPE if no tree view is defined

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.3.12, 5.4.3
    • 5.3.11
    • app
    • Basel 13
    • 5

    Description

      Problem Statement: content apps can also manage list based data. A list of countries for example. This works until the content should be referenced in another app. Then the choose dialog fails to open because it expects the tree view.

      Justification: I came across this problem in several situations where developers try to do the next steps with content apps. It is hopefully not hard to fix

      Solution: If it is only a configuration issue then the at least the error message should give more information why the call failed.

      Original report by Tom
      When no "Tree View" is defined in an App's "contentViews", only a "List View" (as often happen in structured data), it ends with a NPE because magnolia always try to load the "Tree View" at first.

      When Adding a "Tree View" everything is working, but we do not want a Tree View, since in the Edtior can move Nodes into nodes, which should not be possible.

      Stacktrace: https://gist.github.com/p4elkin/d40c12c10c699c851663

      Checklists

        Acceptance criteria

        Attachments

          1. screen1.png
            screen1.png
            206 kB
          2. screen2.png
            screen2.png
            438 kB
          3. screen3.png
            screen3.png
            167 kB
          4. screen4.png
            screen4.png
            202 kB
          5. screen5.png
            screen5.png
            213 kB

          Issue Links

            Activity

              People

                cmeier Christoph Meier
                tomwespi Tom Wespi
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 1d 2h 34m
                      1d 2h 34m