Velocity
  1. Velocity
  2. VELOCITY-553

Posibility to configure ReportInvalidReferences to don't report report variables,properties and method which exist, but only have null value

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.5
    • Fix Version/s: 2.x
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      any

      Description

      ReportInvalidReferences has very big imperfection, it report by default all variables, properties and method which has null value.
      This may cause many problems for developer.

      I for example need only validate template without any data, only check which contain right variables, properties or method (which exist), it's value is not important for me.

      I tried use my own ReferenceInsertionEventHandler for replace null value with "" (empty String) but Velocity call InvalidReference handler before ReferenceInsertionEventHandler.

      I suggest configuration options for this (repor or doesn't report null value)

        Activity

        Tomáš Procházka created issue -
        Will Glass-Husain made changes -
        Field Original Value New Value
        Fix Version/s 1.6 [ 12310290 ]
        Nathan Bubna made changes -
        Fix Version/s 1.7 [ 12313453 ]
        Fix Version/s 1.6 [ 12310290 ]
        Renato Steiner made changes -
        Attachment InvalidEventHandlerTestCase.java.patch [ 12434384 ]
        Nathan Bubna made changes -
        Fix Version/s 2.0 [ 12310291 ]
        Fix Version/s 1.7 [ 12313453 ]
        Mark Thomas made changes -
        Workflow jira [ 12405620 ] Default workflow, editable Closed status [ 12551698 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551698 ] jira [ 12552569 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Tomáš Procházka
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development