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

DateTime API Endpoints don't respect RFC 3339

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • Core Framework
    • None

    Description

      Hi,

      the endpoint /flow/process-group/id is supposed to return lastRefreshed as part of ProcessGroupFlowDTO as a DateTime, as indicated here:
      lastRefreshed string (date-time) optional The time the flow for the process group was last refreshed.

      as it currently stands, what I am getting doesn't look like a timestamp:
      "lastRefreshed":"14:02:46 AEDT"

      I'm not sure how much of the overall API is affected

      Edit:
      Actually, it seems every date a "date-time" is created we expect the format "HH:mm:ss z".
      As per the OpenAPI specs, if a field is annotated "date-time", it should respect the RFC 3339 convention (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stephane.maarek@gmail.com Stephane Maarek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: