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

                 Key: MAGNOLIA-2080
                 URL: http://jira.magnolia.info/browse/MAGNOLIA-2080
             Project: Magnolia
          Issue Type: Improvement
          Components: admininterface
    Affects Versions: 3.5.4
            Reporter: Ryan Gardner
            Assignee: Philipp Bracher
         Attachments: jcrQueryDisplayErrors.patch

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. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to