Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Matthew Clemente / Matthew Clemente (Matthew Clemente)
Created: 03/16/2016
Components: Language
Versions: 11.0
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2012 Server x64
Vote Count: 0
Problem Description: Member functions do not work on the arrays returned by getMetaData.
Steps to Reproduce:
index.cfm:
<cfset testobj =CreateObject("component","test")>
<cfdump var="#testobj.returnProperties()#">
___
test.cfc:
component accessors=true {
property name="id" default="0";
property name="name" default="";
public any function init() {
return this;
}
public any function returnProperties( ) {
var obj = getMetaData(this);
var dummyarray = [];
//returns an array without error
//return obj.properties;
//returns length of array without error
//return arraylen(obj.properties);
//returns an array without error
//return obj.functions;
//returns length of array without error
//return arraylen(obj.functions);
//returns struct without error
//return obj.extends;
//returns struct key list without error
//return obj.extends.keyList();
//fails
return obj.properties.len();
}
}
Actual Result: 500 - Internal server error.
Expected Result: 2
Any Workarounds: Not using member functions
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4129321
External Customer Info:
External Company:
External Customer Name: Matthew Clemente
External Customer Email:
External Test Config: My Hardware and Environment details:
Version 11,0,07,296330
Tomcat Version 7.0.64.0
Edition Developer
Operating System Windows Server 2012 R2
OS Version 6.3
Update Level C:/ColdFusion11/cfusion/lib/updates/chf11000007.jar
Adobe Driver Version 5.1.3 (Build 000094)
Java Version: 1.8.0_66
Attachments:
Comments: