RequestContext incompatible with CF8

Description

The RequestContext uses a ternary expression which was not introduced until CF9. Loading up a sample app results in..

====================================================
Invalid token ? found on line 851 at column 79.

The CFML compiler was processing:

An expression beginning with len, on line 851, column 50.This message is usually caused by a problem in the expressions structure.
An expression beginning with (, on line 851, column 48.This message is usually caused by a problem in the expressions structure.
A script statement beginning with viewToRender on line 851, column 33.
A script statement beginning with { on line 847, column 93.
A script statement beginning with if on line 847, column 25.
A cfscript tag beginning on line 839, column 10.
A cfscript tag beginning on line 839, column 10.

The error occurred in C:\inetpub\wwwroot\ChannelBranding\cfc\com\coldbox\coldbox_3.7.0\system\web\context\RequestContext.cfc: line 851
Called from C:\inetpub\wwwroot\ChannelBranding\cfc\com\coldbox\coldbox_3.7.0\system\web\services\RequestService.cfc: line 251
Called from C:\inetpub\wwwroot\ChannelBranding\cfc\com\coldbox\coldbox_3.7.0\system\web\services\RequestService.cfc: line 209
Called from C:\inetpub\wwwroot\ChannelBranding\cfc\com\coldbox\coldbox_3.7.0\system\web\services\ExceptionService.cfc: line 39
Called from C:\inetpub\wwwroot\ChannelBranding\cfc\com\coldbox\coldbox_3.7.0\system\Coldbox.cfc: line 350
Called from C:\inetpub\wwwroot\ChannelBranding\cfc\com\coldbox\coldbox_3.7.0\system\Coldbox.cfc: line 382
Called from C:\inetpub\wwwroot\ChannelBranding\Application.cfc: line 104
849 : arguments.formats = "";
850 : // Determine view from incoming or implicit
851 : viewToRender = ( len( arguments.formatsView ) ? arguments.formatsView : replace( reReplaceNoCase( getCurrentEvent() , "([:.]*):", "" ) , ".", "/" ) );
852 : // Rendering switch
853 : switch( instance.context.format ){

Status

Assignee

Luis Majano

Reporter

Jason Durham

Labels

None

Components

Affects versions

3.7.0

Priority

Critical
Configure