tracker issue : CF-3845479

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

Error in AdminAPI

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 10/30/2014

Components: Administrator, Admin API

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final / CF11 Update5

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Platforms All

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Repro (https://github.com/daccfml/scratch/blob/master/blogExamples/coldfusion/bugs/adminapi/securityObjectBug.cfm):
{code}
administrator = new CFIDE.adminapi.administrator();
administrator.login("12345678", "apiuser");
try {
    writeOutput("isAdminUser() according to administrator object: ");
    writeOutput("#administrator.isAdminUser()#<br>");
} catch (any e){
    writeDump([e.type,e.message,e.detail]);
}
security = new CFIDE.adminapi.Security();
writeOutput("security object exists: " & structKeyExists(variables, "security") & "<br>");
writeOutput("isAdminUser() method in security object exists: " & structKeyExists(security, "isAdminUser") & "<br>");
writeOutput("isAdminUser() method in security object is a function: " & isCustomFunction(security.isAdminUser) & "<br>");
writeDump(var=getMetadata(security.isAdminUser), label="metadata for security.isAdminUser");

writeOutput("isAdminUser() according to security object: ");
writeOutput("#security.isAdminUser()#<br>");
{code}

Error:

Variable SECURITY is undefined.

The error occurred in base.cfc: line 27
-1 : Unable to display error's location in a CFML template.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3845479

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

This issue is fixed and fix will be available in the upcoming update of ColdFusion 11.
Comment by Nimit S.
10373 | January 27, 2015 07:44:18 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
10374 | February 20, 2015 09:22:01 AM GMT
Confirmed fixed, cheers.
Comment by External U.
10375 | February 21, 2015 08:03:10 PM GMT