Details
Assignee
Michael OffnerMichael OffnerReporter
Jedihomer TownendJedihomer TownendPriority
MajorNew 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
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Jedihomer Townend
Jedihomer TownendPriority
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 8 August 2017 at 17:01
Updated 14 August 2017 at 20:18
I have an application where the display is built using cfimport.
On one page I have a name lookup which shows some text. It's possible that the datasource does not exist, so I try catch the query and return a failed to fetch string when it errors.
There is a problem that when queryExecute is try/catched it re-writes or jumbles up the output.
Attached is an app that shows the problem. When it does not error it should show 'Hello World' then an ordered list. If the code runs with a try/catched queryExecute then the 'Hello World' appears at the bottom of the page with broken HTML.
So far, I can only replicate this with queryExecute. If you replace that line with a throw; or 1/0 then the try/catch and output operates as normal.
If the cfimport tags are replaced with normal cfinclude calls then the page displays as normal.
It just appears to be queryExecute when try/catched within cfimport tags (an open and closing tag)