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

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

      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

        Acceptance criteria

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

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

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