Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Adam Tuttle / Adam Tuttle (Adam Tuttle)
Created: 07/09/2015
Components: Language
Versions: 11.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / All users will encounter
Locale/System: ALL / Platforms All
Vote Count: 3
Given a query object:
tmp = queryExecute("select personId from Person limit 10");
you would expect to be able to run this code using member functions on the result:
people = valueList( tmp.personId ).listToArray();
But CF chokes on this during template compilation, throwing a very unhelpful error message:
> Invalid construct: Either argument or name is missing.
> When using named parameters to a function, each parameter must have a name.
We can see that the result of the call to valueList() is a string:
<cfdump var="#getMetaData( valueList(tmp.personId) ).getName()#" label="getMetaData( valueList ).getName()" />
==> java.lang.String
So it appears this is yet another member-function parsing issue.
At first this may seem like a duplicate of either of these issues:
https://bugbase.adobe.com/index.cfm?event=bug&id=3844976
https://bugbase.adobe.com/index.cfm?event=bug&id=3844972
But as one is for the append function specifically, and the other is for struct and array literals, it's possible that their fixes may not also fix this problem, so I decided it was best to log this separately.
Anywhere you're wrapping a java type in a coldfusion type (e.g. coldfusion.runtime.array), you should make sure the appropriate member functions work, and it's a shame that we seem to have to ask for each instance to be fixed as we find it, rather than you doing due diligence and finding all of the places that could be affected and fixing them.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4018933
External Customer Info:
External Company:
External Customer Name: Adam
External Customer Email:
External Test Config: CF11u4 (we refuse to use u5 as it breaks more than it fixes)
OSX 10.10.4
Attachments:
Comments: