"Element NAME is undefined in CFLOGIN" error after CF10 upgrade
After a recent upgrade from CF9 to CF10 I am seeing the following error in a couple of legacy applications:
Element NAME is undefined in CFLOGIN
The login code in the Application.cfm looks like this:
<cfapplication name="SampleApplication"
clientmanagement="No"
loginstorage="session"
sessionmanagement="Yes"
setclientcookies="No"
sessiontimeout="#CreateTimeSpan(0, 0, 30, 0)#" />
<!--- Login --->
<cflogin applicationtoken="SampleApplication" idletimeout="300">
<!--- Construct roles --->
<cfset roles = "" >
<cfif ListFind( administrators, CFLogin.name ) >
<cfset roles = ListAppend( roles, "admin" ) >
</cfif>
<cfif ListFind( editors, CFLogin.name ) >
<cfset roles = ListAppend( roles, "edit" ) >
</cfif>
<!--- If no roles specified, send user up one level --->
<cfif roles EQ "" >
<cflocation url="../index.cfm" addtoken="no" />
</cfif>
<!--- Login user --->
<cfloginuser name="#CFLogin.name#" password="#CFLogin.password#" roles="#roles#" />
</cflogin>
Anonymous access is disabled for the directories, so my understanding is that when the CFLogin expires, the <cflogin> block runs again, and that CFLogin.name should be populated with the username supplied by the client. I've just started troubleshooting, but I'm just wondering if anyone else has run into this or has any suggestions.
