tracker issue : CF-3043014

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

Bug 85490:(Watson Migration Closure)It looks like the admin API uses the application name to name a variable

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/

Reporter/Name(from Bugbase): Mark Mandel / Mark Mandel (mark.mandel)

Created: 01/03/2011

Components: Administrator, Administrator Console

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

It looks like the admin API uses the application name to name a variable.Since an application name can contains any manner of spaces, dashes, etc, it is very easy to break a simple admin API login.Simple workaround is to change the application name, but in some cases, that isn't possible.
Method:

<cfapplication name="foo-admin"><cfscript>   admin = new cfide.adminapi.administrator();   admin.login(url.username, url.password);</cfscript>
Result:

The string COOKIE.CFAUTHORIZATION_foo-admin is not a valid ColdFusion variable name.Valid variable names must start with a letter and can only contain letter, numbers, and underscores. The error occurred in E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\adminapi\administrator.cfc: line 117-1 : Unable to display error's location in a CFML template.

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

Watson Bug ID:	3043014

External Customer Info:
External Company:  
External Customer Name: Mark Mandel
External Customer Email: 3EA9517D445A9E8999201549
External Test Config: 01/03/2011

Attachments:

Comments: