CFDump crashes if '/' mapping is invalid

Description

If a mapping exists for '/', and this mapping is bogus... CFDump crashes with a nullPointer exception

To reproduce... create a mapping for '/' and associate it with a non-existent target (i.e. c:\not-a-real-directory)

run code which calls CFDump - it will crash with a nullPointer exception

remove the mapping (or change it to point to a real directory)... and the problem goes away

Environment

Windows 10 VM (VirtualBox), Java 8 (202)

Attachments

1
  • 23 Jul 2019, 05:02 pm

relates to

Activity

Show:

Tim Parker 15 August 2019 at 14:36

Your latest response indicates to me that you may be looking at something else here. The problem I encountered was NOT that the ‘/' mapping was input incorrectly or was somehow invalid syntactically - I had cloned a VM where ‘/’ was mapped to ‘/project1’, which was valid on the source - but the new VM has ‘/project2’ and no ‘/project1’, and the ‘/' mapping hadn’t been updated - CFDump crashed with an NPE every time I tried to use it.

Pothys - MitrahSoft 24 July 2019 at 15:52

Thanks for your info.
I checked with the mapping as per your comment. From lucee 5.3.2.77, It throws an error as "Page not found". But from lucee 5.3.4.6-snapshot, got null pointer exception.
Now I added a fix like we couldn't give the single virtual value like "\,/" & also can't leave the field as empty. I added alert for the user.

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

Tim Parker 23 July 2019 at 17:02

I’ve also reproduced this on Linux…

 

create your ‘/' mapping pointing to a directory that doesn’t exist

run any code which calls CFDump

Pothys - MitrahSoft 23 July 2019 at 16:35

Create a mapping for unlocated folder & access another cfm file that has dump placed with that. It executes without any error. If we access a mapping location with the virtual path means it shows an error with the file doesn't exist. I've two doubts with your created issue,

1. How did you access the file that has the code with cfdump?

2. Could you share your mapping details with the screenshot?

Details

Assignee

Reporter

Priority

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 18 July 2019 at 22:55
Updated 4 January 2022 at 11:21

Flag notifications