Preserve case breaks cfdump in Lucee 5.2

Description

When doing a simple <cfdump var="1"> it doesn't output anything. In the console we get Uncaught TypeError: Cannot read property 'TITLE' of undefined at parseDumpJSON

I see the <cfdump> output is completely different from the previous stable version.

Environment

Ubuntu & Windows

Attachments

1
  • 12 May 2017, 09:50 am

Activity

Pothys - MitrahSoft 
15 May 2017 at 11:48

I've fixed the issue on dump when preserve case is enabled for serializeJSON. This issue couldn't be able to reproduce with lucee express, but could able to see the issue with installed version of lucee.

Pull request: https://github.com/lucee/Lucee/pull/235

Michael Vornkahl  
12 May 2017 at 09:51

I've made a test file and appended it above.
Hope it will help.

Michael

Jonathan van Zuijlekom 
12 May 2017 at 09:26
(edited)

I found the issue, it's the Preserve case setting.

The dumpData is declared in headless camelCase, which is outputted in UPPERCASE and used in the javascript as such. To fix, declare the variables inside dumpData in uppercase.

Pothys - MitrahSoft 
11 May 2017 at 13:16
(edited)

Hi , & ,
Are you testing it with a simple file or in your application file? because i couldn't able to see the issue with a test file which just have dump code as i mentioned in my previous comment. There should be some other thing which causes this problem.

If you're using upgraded/downgraded versions of lucee, can you please check the code with fresh copy of lucee 5.2.2.4 express & post the result back here? This will help us a lot to find the issues.

Thanks

Joel Stobart 
11 May 2017 at 11:56

FYI - I have the same problem

Fixed

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

Sprint

Affects versions

Created 10 May 2017 at 09:17
Updated 14 June 2017 at 20:23
Resolved 19 May 2017 at 19:26