Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2080

"JCR Queries" should display exception messages instead of blank results, and a row count for valid results

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.6
    • 3.5.4
    • admininterface
    • None

    Description

      The exceptions were all being caught and logged in the QueryUtil - and therefore were unavailable for the JCR Utils page to get them to display.

      I made another "exceptionThrowingQuery" method in the QueryUtil that throws exceptions, and called that method in the JCR Utils method. To avoid duplicate code, the query method now delegates the actual query to the exceptionThrowingQuery method and the traps the exception, logs it, and returns the Collections.EmptyList (identical behavior to what it was before)

      In addition, the size of the collection returned is now printed when results are returned. This can be helpful for knowing row counts... etc.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                gjoseph Magnolia International
                ryangardner Ryan Gardner
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD