Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Jake Hand / Jake Hand (Jake Hand)
Created: 01/27/2015
Components: Security
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Most users will encounter
Locale/System: English / Linux CentOS 6.4
Vote Count: 0
Problem Description:
When using the CF Administrator API our scripts that interact with datasource.cfc fail with this error: coldfusion.runtime.StructBean$FieldAccessException : Java bean field access exception.An exception occurred while calling the get or the put function. FieldName is DATASOURCES. Possible cause ''. The cause of this exception was that: coldfusion.security.SecurityManager$UnauthenticatedCredentialsException.
We made sure our script is running the Administrator.login() method prior to interacting with datasource.cfc. Also, the same script works on previous versions of ColdFusion.
Steps to Reproduce:
Make sure you have CF Administrator authentication enabled within ColdFusion, then try running the following test code within the server's CFIDE system directory:
<cfscript>
adminObj = createObject("component","CFIDE.adminapi.administrator");
adminObj.login("Admin!Pass1","admin");
dsObj = createObject("component", "CFIDE.adminapi.datasource");
datasource = dsObj.getDatasources(dsnname="ExistingDSN");
sReturn = StructNew();
sReturn.database = "#datasource.database#";
sReturn.username = "#datasource.username#";
sReturn.host = "#datasource.host#";
sReturn.port = "#datasource.port#";
</cfscript>
<cfdump var="#sReturn#">
Actual Result: Request fails with this error: coldfusion.runtime.StructBean$FieldAccessException : Java bean field access exception.An exception occurred while calling the get or the put function. FieldName is DATASOURCES. Possible cause ''. The cause of this exception was that: coldfusion.security.SecurityManager$UnauthenticatedCredentialsException.
Expected Result: Successfully dump DSN details
Any Workarounds: You can disable CF Administrator Authentication, and the code will work. This obviously isn't acceptable for production environments though. Please advise.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3928707
External Customer Info:
External Company:
External Customer Name: Jake
External Customer Email:
External Test Config: My Hardware and Environment details:
- CentOS 6 64-bit
- CF 11 64-bit Update 3 (11,0,03,292480)
- Apache 2.4
Attachments:
- January 30, 2015 00:00:00: 1_cfdsn.cfc
Comments: