Title:
Unable to use Datasource.cfc in Admin API - The current user is not authorized to invoke this method
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Gavin Baumanis / Gavin Baumanis (GavinBaumanis)
Created: 04/22/2013
Components: Security
Versions: 10.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: Final /
Priority/Frequency: Critical / All users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 2
Hi Everyone,
I am having some issues accessing the methods in the datasource.cfc in the adminAPI.
I can successfully load the administrator CFC and am told that I have successsfuly logged in;
But when I try to subsequently USE the datasource.cfc I get an error that the current user is unable to access the method.
/* Create an Admin API object and call the login method */
var local = {};
local.adminObj = createObject("component", "cfide.adminapi.administrator");
/* Enter your password for the CF Admin */
/* if you dump this - TRUE is returned */
local.adminObj.login(adminPassword="my_admin _user_password");
/* Create an object of datasource component */
local.dsnObj = createObject("component", "cfide.adminapi.datasource");
writeDump(local.dsnObj.getDataSources());
I tried creating separate admin users and passwords - thinking that perhaps a recent hotfix had stopped the "admin" user from being allowed to use the adminAPI - but changing to a new admin user yielded the same results.
I could login to the admin API with the new username and password - but could not access any methods of the datasource.cfc after that.
13:09:56.056 - cfadminapiSecurityError Exception - in E:/cf10_final/cfusion/wwwroot/CFIDE/adminapi/accessmanager.cfc : line 48
The current user is not authorized to invoke this method.
13:09:56.056 - cfadminapiSecurityError Exception - in E:/cf10_final/cfusion/wwwroot/CFIDE/adminapi/accessmanager.cfc : line 48
The current user is not authorized to invoke this method.
13:09:56.056 - java.io.FileNotFoundException - in C:/ColdFusion10/cfusion/wwwroot/WEB-INF/exception/errorcontext.cfm : line 44
E:/cf10_final/cfusion/wwwroot/CFIDE/adminapi/accessmanager.cfc (The system cannot find the path specified)
I am assuming some sort of hard-coded path error / issue?
I do not have an "E" drive.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3546323
External Customer Info:
External Company:
External Customer Name: GavinBaumanis
External Customer Email:
External Test Config: CF10 Enterprise - latest hotfix applied.
Attachments:
Comments: