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
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: