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

Content viewer using old attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4.1
    • 0.5.0
    • Core Framework, Core UI
    • None
    • template attached

    Description

      The attached template allows you to quickly reproduce and observe the problem.

      The flow generates a flow file, replaces the text with a simple two line CSV, updates an attribute to add the mime.type of 'text/csv'. For the flow on the left if you view provenance events of the 3rd processor (update attribute) you will be able to view the content apparently by its auto detected type which is considered 'text/plain'. If however you use the flow on the right and view the content of provenance events for the fourth processor you'll see it is now using the supplied mime.type.

      What I suspect is happening is that the content viewer is being given access to the attributes of that flow file as they were before they were changed. It should be giving it access to the attributes after the change (at least in these cases, i can see when there is a before claim and an after claim that it would work differently)

      Attachments

        1. 0001-NIFI-1346.patch
          9 kB
          Matt Gilman
        2. content_viewer_looks_at_old_attributes (1).xml
          31 kB
          Joe Witt

        Issue Links

          Activity

            People

              mcgilman Matt Gilman
              joewitt Joe Witt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: