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

EvaluateXPath processor produces empty string sets for valid XPaths

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.1
    • Fix Version/s: None
    • Component/s: Extensions
    • Labels:
    • Flags:
      Important

      Description

      I have found that valid XPath expressions apparently produce empty strings in EvaluateXPath processor which can be observed in the attached screenshots. I am using nifi 1.7.1 and jdk1.8.0_181.jdk. Any help would be appreciated!

      The source of the XML files is a GetFile Processor or a GenrateFlowFile Processor.

      I have also tested it with an InvokeHTTP processor where it works fine. However this does not solve it for me as I am dealing with physical XML files here. However this little detail might be interesting for the error finding process.

        Attachments

        1. EvaluateXPath_Test_template.xml
          15 kB
          Christof Dilcher
        2. EvaluateXPath_Template.png
          188 kB
          Christof Dilcher
        3. EvaluateXPath_ProcessorConfiguration_empty_string_set.png
          120 kB
          Christof Dilcher
        4. EvaluateXPath_FlowFile_Attributes_empty_string_set.png
          121 kB
          Christof Dilcher
        5. EvaluateXPath_Template_empty_string_set.xml
          20 kB
          Christof Dilcher
        6. EvaluateXPath_ExampleXML_empty_string_set.xml
          0.4 kB
          Christof Dilcher

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              christof Christof Dilcher
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: