Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.6
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP SP2

      Description

      There is an issue with the new supported feature of assigning null-values to velocity variables. The following scenarios illustrate the error. The configuration parameter "directive.set.null.allowed" must be set to "true".

      Scenario 1 (correct behaviour outside macro):

      #set ($test = "test")
      $test
      #set ($test = $null)
      $test

      yields to the output:

      test
      $test

      Scenario 2 (erroneous behaviour using macro):

      #macro (test)
      #set ($test = "test")
      $test
      #set ($test = $null)
      $test
      #end

      #test()

      yields to the output:

      test
      test

      and the varibale test has not been resetted to null which is the error.

        Activity

        jukefox created issue -
        jukefox made changes -
        Field Original Value New Value
        Description There is an issue with the new supported feature of assigning null-values to velocity variables. The following scenarios illustrate the error. The configuration parameter <i>directive.set.null.allowed</i> must be set to <i>true</i>.

        Scenario 1 (correct behaviour outside macro):
        <pre>
        #set ($test = "test")
        $test
        #set ($test = $null)
        $test
        </pre>
        yields to the output:
        <pre>
        test
        $NULL
        </pre>
        Scenario 2 (erroneous behaviour using macro):
        <pre>
        #macro (test)
            #set ($test = "test")
            $test
            #set ($test = $null)
            $test
        #end

        #test()
        </pre>
        yields to the output:
        <pre>
        test
        test
        </pre>
        and the varibale test has not been resetted to null which is the error.
        There is an issue with the new supported feature of assigning null-values to velocity variables. The following scenarios illustrate the error. The configuration parameter _directive.set.null.allowed_ must be set to _true_.

        Scenario 1 (correct behaviour outside macro):
        {code:title=Bar.java|borderStyle=solid}
        #set ($test = "test")
        $test
        #set ($test = $null)
        $test
        {code}
        yields to the output:
        {code|borderStyle=solid}
        test
        $NULL
        {code}
        Scenario 2 (erroneous behaviour using macro):
        {code|borderStyle=solid}
        #macro (test)
            #set ($test = "test")
            $test
            #set ($test = $null)
            $test
        #end

        #test()
        {code}
        yields to the output:
        {code|borderStyle=solid}
        test
        test
        {code}
        and the varibale test has not been resetted to null which is the error.
        jukefox made changes -
        Description There is an issue with the new supported feature of assigning null-values to velocity variables. The following scenarios illustrate the error. The configuration parameter _directive.set.null.allowed_ must be set to _true_.

        Scenario 1 (correct behaviour outside macro):
        {code:title=Bar.java|borderStyle=solid}
        #set ($test = "test")
        $test
        #set ($test = $null)
        $test
        {code}
        yields to the output:
        {code|borderStyle=solid}
        test
        $NULL
        {code}
        Scenario 2 (erroneous behaviour using macro):
        {code|borderStyle=solid}
        #macro (test)
            #set ($test = "test")
            $test
            #set ($test = $null)
            $test
        #end

        #test()
        {code}
        yields to the output:
        {code|borderStyle=solid}
        test
        test
        {code}
        and the varibale test has not been resetted to null which is the error.
        There is an issue with the new supported feature of assigning null-values to velocity variables. The following scenarios illustrate the error. The configuration parameter "directive.set.null.allowed" must be set to "true".

        Scenario 1 (correct behaviour outside macro):

        #set ($test = "test")
        $test
        #set ($test = $null)
        $test

        yields to the output:

        test
        $NULL

        Scenario 2 (erroneous behaviour using macro):

        #macro (test)
            #set ($test = "test")
            $test
            #set ($test = $null)
            $test
        #end

        #test()

        yields to the output:

        test
        test

        and the varibale test has not been resetted to null which is the error.
        jukefox made changes -
        Description There is an issue with the new supported feature of assigning null-values to velocity variables. The following scenarios illustrate the error. The configuration parameter "directive.set.null.allowed" must be set to "true".

        Scenario 1 (correct behaviour outside macro):

        #set ($test = "test")
        $test
        #set ($test = $null)
        $test

        yields to the output:

        test
        $NULL

        Scenario 2 (erroneous behaviour using macro):

        #macro (test)
            #set ($test = "test")
            $test
            #set ($test = $null)
            $test
        #end

        #test()

        yields to the output:

        test
        test

        and the varibale test has not been resetted to null which is the error.
        There is an issue with the new supported feature of assigning null-values to velocity variables. The following scenarios illustrate the error. The configuration parameter "directive.set.null.allowed" must be set to "true".

        Scenario 1 (correct behaviour outside macro):

        #set ($test = "test")
        $test
        #set ($test = $null)
        $test

        yields to the output:

        test
        $test

        Scenario 2 (erroneous behaviour using macro):

        #macro (test)
            #set ($test = "test")
            $test
            #set ($test = $null)
            $test
        #end

        #test()

        yields to the output:

        test
        test

        and the varibale test has not been resetted to null which is the error.
        Will Glass-Husain made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.6 [ 12310290 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12430649 ] Default workflow, editable Closed status [ 12551966 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551966 ] jira [ 12552710 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            jukefox
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development