crash viewing debugging logs, with modern template and metrics and reference disabled

Description

if you disable the reference and metrics tab for the modern debugging template,
when you viewing a log under debugging logs in the administrator it shows a blank page.

via dev tools, I see the following following error, it isn't caught and displayed to the user

Lucee 5.3.1.38-SNAPSHOT Error (database)
Message column name [method] already exist
Stacktrace The Error Occurred in
C:\lucee\tomcat\lucee-server\context\context\admin\debug\Modern.cfc: line 746
744: <cfset local.q = 0>
745: <cfset local.totAvg = 0>
746: <cfset queryAddColumn(pages, "method")>
747: <cfset queryAddColumn(pages, "path")>
748: <cfloop query="pages">

called from /context/applogs/readDebug.cfm: line 54

https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/resource/context/admin/debug/Modern.cfc#L746

Environment

None

Activity

Show:

Michael Offner 18 February 2019 at 15:24

this commit (https://github.com/lucee/Lucee/commit/728b8ba69e453cf26c6c784a6a6319d5984b440c#diff-8ca929bec1d69c3a7c34a2396a167461) fixes the problem by adding a

<cfif !QueryColumnExists( pages, "method" )>

Michael Offner 18 February 2019 at 15:20
Edited

Link above is no longer correct because it points to the branch and not to that actual version, that one is the correct link
https://github.com/lucee/Lucee/blob/5.3.1.38/core/src/main/java/resource/context/admin/debug/Modern.cfc#L746

Duplicate

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 15 August 2018 at 11:19
Updated 18 February 2019 at 15:29
Resolved 18 February 2019 at 15:29

Flag notifications