Error detail, message empty on CF10 CF11

Description

CF10 + CF11 pass exception struct as object, so that's why the error detail and message fields are empty in ExceptionBean

Original code

Activity

Show:
Luis Majano
February 27, 2016, 10:36 PM

Sana, can you expand further on this ticket, I don't get the issue, do you have a test case so I can reproduce.

Sana Ullah
February 27, 2016, 11:00 PM

Luis,

in case of any exception then method receive errorStruct param and type is not struct inside ExceptionBean.cfc

Issue with CF10 , CF11

Sana Ullah
March 10, 2016, 1:07 PM

Please would you explain why duplicate removed, I rolled back to original code for the time-being in my branch.

Brad Wood
March 10, 2016, 6:28 PM

I think the duplicate loses data because it casts the actual Java exception to a simple struct. I explained it on a pull request or issue recently, but it's not the one linked here so I'm not sure where it was. If you search the mailing list, this thread shows problems people were having with duplicate:

https://groups.google.com/d/topic/coldbox/yVZnyOyMOHU/discussion

We removed the duplicate the past because it caused issues, so I'm sure putting it back in with most likely bring those issues back.

Sana Ullah
March 23, 2016, 10:17 PM
Edited

Its not fixed, not sure how to convince both of you. So I am attaching screen shot.

Also I will add test case in test-harness to reproduce it for you.

test case added
https://github.com/ColdBox/coldbox-platform/pull/259

Fixed

Assignee

Sana Ullah

Reporter

Sana Ullah

Labels

None

Components

Fix versions

Affects versions

Priority

Blocker
Configure