Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-1183

trace refers to data about it's own arguments scope when var parameter is associated with arguments

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.3.0.003
    • Fix Version/s: 3.3.0.004, 3.2.1.005
    • Labels:
    • Environment:

      Windows XP Pro, Resin, Apache

      Description

      I'm running 3.3.0.003 but I'm using the code that fixed this issue https://issues.jboss.org/browse/RAILO-1175

      tI got the code from here: http://dev.railo.ch/download/trace.cfm.zip

      In all the cases I've tried, trace() works fine, except for when var equals 'arguments' or a key of arguments.

      For example:

      <cfset a=[

      {this:"bus", that:"truss"}

      ,

      {this:"jeep", that:"creep"}

      ,

      {this:"suv", that:"dmv"}

      ]>

      <cfoutput>#trace('a',"","Information","",true)#</cfoutput>
      <cfset someFunc(a)>

      <cffunction name = "someFunc" output = "true" returntype = "void">
      <cfargument name="vault" type="array" required="true">
      #trace('arguments',"","Information","",true)#
      #trace('arguments.vault',"","Information","",true)#
      <cfreturn>
      </cffunction>

      Gives this output:

      INFO - [CFTRACE 10:05:41:279][16 ms (1st trace)][D:\!devWebRoot\BESTBoaz2\zz\testq.cfm @ line: 11]
      a
      Array
      1
      Struct
      THAT
      string truss
      THIS
      string bus
      2
      Struct
      THAT
      string creep
      THIS
      string jeep
      3
      Struct
      THAT
      string dmv
      THIS
      string suv
      INFO - [CFTRACE 10:05:41:279][0 ms (16)][D:\!devWebRoot\BESTBoaz2\zz\testq.cfm @ line: 12]
      arguments
      Scope Arguments
      var 1
      string arguments
      text 2
      string
      type 3
      string Information
      category 4
      string
      inline 5
      boolean true
      abort 6
      boolean false
      INFO - [CFTRACE 10:05:41:295][16 ms (32)][D:\!devWebRoot\BESTBoaz2\zz\testq.cfm @ line: 12]
      arguments.vault
      Empty:null

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                tomlenz Thomas Lenz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: