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

Update FlowConfiguration.xsd TimePeriod to match FormatUtils

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.7.1, 1.1.1
    • 0.8.0, 1.2.0, 0.7.3
    • Core Framework
    • None

    Description

      The framework FormatUtils time duration parser has been updated to support new terms such as "weeks". But when using those new terms, we get ERROR messages in the nifi-bootstrap.log.

      cvc-pattern-valid: Value '4 weeks' is not facet-valid with respect to pattern '\d+\s*(ns|nano|nanos|nanoseconds|ms|milli|millis|milliseconds|s|sec|secs|seconds|m|min|mins|minutes|h|hr|hrs|hours|d|day|days)' for type 'TimePeriod'.
      cvc-type.3.1.3: The value '4 weeks' of element 'flowFileExpiration' is not valid.

      FlowConfiguration.xsd TimePeriod pattern should be updated to match FormatUtils.

      Add to FlowConguration.xsd:
      nanosecond
      millisecond
      second
      minute
      hour
      w
      wk
      wks
      week
      weeks

      Add to FormatUtils.java
      nanosecond
      millisecond

      Attachments

        Activity

          People

            mosermw Michael W Moser
            mosermw Michael W Moser
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: