Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.1.2.005
    • Fix Version/s: 4.2.0.001, 4.1.2.006
    • Labels:
      None

      Description

      G'day guys:
      Hey, Ryan Guill spotted this one, but I came up with the repro so I'm raising it. The repro sums it up:

      <cfset foo = function(){return true;}> <!---fine--->
      <cfset foo = function(){return true;} > <!--- not fine --->
      <cfset foo = function(){return true;} /><!--- not fine --->
      <cfset foo = function(){return true;}/> <!--- fine--->
      

      Note that a trailing space after the closing brace causes a compile error:

      Railo 4.1.2.005 Error (template)
      Message tag [cfset] is not closed
      Pattern <cfset [noname"any"]>
      Documentation Define a CFML variable. If the variable exists, cfset resets it to the specified value.

      Optional:

      • noname (any): Content of the tag set
        Stacktrace The Error Occurred in
        C:\webroots\railo-express-4.1.x-jre-win64\webapps\www\shared\junk\junk.cfm: line 2
        1: <cfset foo = function() {return true;}> <!--fine-->
        2: <cfset foo = function(){return true;}

        > <!--- not fine --->
        3: <cfset foo = function()

        {return true;} /><!--- not fine --->
        4: <cfset foo = function(){return true;}

        /> <!--- fine--->

      Java Stacktrace tag [cfset] is not closed
      at railo.transformer.cfml.tag.CFMLTransformer.createTemplateException(CFMLTransformer.java:1101):1101
      at railo.transformer.cfml.tag.CFMLTransformer.tag(CFMLTransformer.java:560):560

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                adamcameroncf Adam Cameron
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: