Dec 19 2007

cf admin api

Published by jfrank at 4:43 pm under coldfusion

Cookie name “CFAUTHORIZATION_SPLAT SPLAT” is a reserved token
The error occurred in administrator.cfc: line 116

Today I ran into a weird bug in the cf admin api, if you attempt to perform a login such as this:

<cfscript>
loggedin = createObject(“component”,”cfide.adminapi.administrator”).login(‘dsafdsafsad’);
</cfscript>

It will bomb with the above error if your application name contains a space, the error is slightly different whether you use Application.cfc or <cfapplication> style.

The fix, thanks to Barney is to remove the space.

2 responses so far

2 Responses to “cf admin api”

  1. Euniceon 20 Jul 2011 at 12:54 pm

    Hi there,

    I am running into the same issue. May I know how do you remove the space? Thanks!

    Error Message:
    The string COOKIE.CFAUTHORIZATION_Yuni Test CFC is not a valid ColdFusion variable name.

  2. jfrankon 09 Dec 2011 at 2:20 pm

    you go change the application name

Trackback URI | Comments RSS

Leave a Reply