tracker issue : CF-4141282

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

Cannot use Admin API with CLI

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): David Epler / David Epler (David Epler)

Created: 04/18/2016

Components: CLI

Versions: 2016

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF2016_Final / 2018,0,0,305080

Priority/Frequency: Normal / Some users will encounter

Locale/System: ALL / Windows 7 SP1 64-bit

Vote Count: 1

Problem Description:
When trying to invoke subsequent calls to Admin API after logging in, it fails when the attached code is run with CLI instead of a browser. The call to CFIDE.adminapi.administrator.login() returns true, but does not seem to persist the credentials through whatever mechanism is being used.


Steps to Reproduce:
But file into coldfusion wwwroot. run through browser, it functions correctly. Run file from CLI interface and will generate stack dump.

Actual Result:
Stack dump from execution

Apr 17, 2016 13:29:05 PM Error [main] -
coldfusion.runtime.CustomException:
        at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142)
        at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3685)
        at cfaccessmanager2ecfc293914889$funcCHECKADMINROLES.runFunction(/CFIDE/adminapi/accessmanager.cfc:57)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:492)
        at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
        at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:388)
        at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
        at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:339)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:234)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:650)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:439)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:409)
        at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3091)
        at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3068)
        at cfdatasource2ecfc1271717786$funcGETDATASOURCES.runFunction(/CFIDE/adminapi/datasource.cfc:61)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:492)
        at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
        at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:425)
        at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:388)
        at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
        at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:339)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:234)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:650)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:439)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:409)
        at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3091)
        at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3068)
        at cftest2dadminapi2ecfm2076618288.runPage(C:\ColdFusion2016\cfusion\wwwroot\test-adminapi.cfm:9)
        at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:251)
        at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)
        at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)
        at coldfusion.tools.CLI.compileAndRun(CLI.java:315)
        at coldfusion.tools.CLI.main(CLI.java:189)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at coldfusion.tools.CLIInvoker.main(CLIInvoker.java:145)

Expected Result:
It should work and produce a text dump of datasource.


Any Workarounds:
None.

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

Watson Bug ID:	4141282

External Customer Info:
External Company:  
External Customer Name: David Epler
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

  1. April 18, 2016 00:00:00: 1_test-adminapi.cfm

Comments:

+1 - Management of CF Admin settings, via Admin API, is a very good use-case for CLI (IMO).
Vote by External U.
3049 | April 20, 2016 02:25:37 AM GMT