<cfdump> to file does not append to output

Description

When outputting to a file with <cfdump> the previous values get overwritten instead of being appended unlike ACF.
For e.g. the following lines in Lucee

<cfdump var="line 1" output="cflog.txt">
<cfdump var="line 2" output="cflog.txt">

outputs as

string line 2

whereas in ACF the output is

line 1
****************************************************************
line 2
****************************************************************

Activity

Show:

harkirat singh 13 July 2018 at 12:43
Edited

Thanks
I would suggest adding in a line like ACF for the format="text" to differentiate the outputs e.g.

 

Pothys - MitrahSoft 13 July 2018 at 07:35

Hi ,

Yeah Sorry, I actually I searched Checked file in Temp path inACF it's my mistake. You are right ACF appends the text content. Lucee overwrites the text file content. I've added the fix for that. Now the format HTML, Text appends the file content instead of overwritten. , fix may come with Latest version of lucee ASAP

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

harkirat singh 12 July 2018 at 01:08

This should be a simple change in core/src/main/java/resource/library/tag/Dump.cfc
Lines 152-155 where it says file action="write" only needs to be changed to file action="append"

David Raschper 11 July 2018 at 07:45

Hi,
i can confirm .

In Lucee (5.2.7.63) i get:

On Adobe 2016:

Fixed

Details

Assignee

Reporter

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

Fix versions

Affects versions

Priority

Created 9 July 2018 at 17:16
Updated 4 September 2018 at 19:26
Resolved 14 August 2018 at 10:07