Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7069

Groovy scripts no longer have access to date utilities

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0, 1.11.1
    • Extensions
    • None

    Description

      As of NiFi 1.10 (via NIFI-5254), the version of Groovy included with NiFi is 2.5.0. There was a breaking change in that version where the date utilities (such as GDK java.util.Date.parse()) were moved into a separate module that is not included by default with the groovy-all module.

      This module is now missing from the NiFi Groovy components and thus any script using those classes/methods will fail: http://groovy-lang.org/releasenotes/groovy-2.5.html#Groovy2.5releasenotes-Breakingchanges

      The dateutil (and possibly other) Groovy modules should be included as dependencies in the groovy bundles (nifi-groovyx-bundle, nifi-scripting-bundle, possibly the groovy plugin for unit tests, etc.)

      Attachments

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              mattyb149 Matt Burgess
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m