tracker issue : CF-4203124

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: ternary with implicit, in attribute value, throws ArrayIndexOutOfBoundsException

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): Aaron Neff / ()

Created: 07/23/2018

Components: Language

Versions: 2016,11.0,13.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2018.0.0.310739 /

Priority/Frequency: Normal / Some users will encounter

Locale/System: / Platforms All

Vote Count: 0

Issue: If an attribute value contains a ternary having a struct/array literal, ArrayIndexOutOfBoundsException is thrown

Repro 1:

1) Create empty mypage.cfm
2) Create index.cfm containing <cfmodule template="mypage.cfm" foo="#true?true:{}#">
3) Run index.cfm

Actual Result: java.lang.ArrayIndexOutOfBoundsException

Expected Result: no exception

Repro 2:

1) Create index.cfm containing:
-----------
<cffunction name="myFunction"></cffunction>
<cfinvoke method="myFunction" myArg="#true?true:[]#">
-----------

Actual Result: java.lang.ArrayIndexOutOfBoundsException

Expected Result: no exception

Attachments:

Comments: