<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: nifi 2.0 bug with InvokeHTTP procdessor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/nifi-2-0-bug-with-InvokeHTTP-procdessor/m-p/381586#M244345</link>
    <description>&lt;P&gt;If you were able to delete it, then it almost sounds like that attribute might have been something from the 1.X versions and not something new in the 2.X version.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 19:26:11 GMT</pubDate>
    <dc:creator>joseomjr</dc:creator>
    <dc:date>2024-01-02T19:26:11Z</dc:date>
    <item>
      <title>nifi 2.0 bug with InvokeHTTP procdessor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/nifi-2-0-bug-with-InvokeHTTP-procdessor/m-p/381585#M244344</link>
      <description>&lt;P&gt;There is a bug with the InvokeHTTP processor in version 2.0. I carried over my flows from version 1.23, which I upgraded to 1.24, and then I exported the flows as processing groups and imported them into version 2.0.&amp;nbsp; These flows worked fine, previously. In one, I have an InvokeHTTP processor that is sending the document to a Tika server for processing.&amp;nbsp; In version 2.0 there is a new property in this processor that was added. I did not put it there. The documentation makes no mention of it.&lt;BR /&gt;&lt;BR /&gt;The property was `Proxy Type` and it's value was `http`. I tried to set it as an empty string, but I continued to get a failure. The error I was getting was:&lt;BR /&gt;&lt;SPAN&gt;18:17:26 UTC ERROR InvokeHTTP[id=dfae880c-b84a-3f2c-f1d9-941b8fc625eb] Request Processing failed: FlowFile[filename=random_20210909a.docx]: java.lang.IllegalArgumentException: Unexpected char 0x20 at 5 in header name: Proxy Type&lt;/SPAN&gt;&lt;BR /&gt;Even after setting this property to an empty string, the error persisted.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I remedied the situation by deleting the property altogether. After deleting the property, the flow continued to work as before.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 18:58:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/nifi-2-0-bug-with-InvokeHTTP-procdessor/m-p/381585#M244344</guid>
      <dc:creator>arutkwccu</dc:creator>
      <dc:date>2024-01-02T18:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: nifi 2.0 bug with InvokeHTTP procdessor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/nifi-2-0-bug-with-InvokeHTTP-procdessor/m-p/381586#M244345</link>
      <description>&lt;P&gt;If you were able to delete it, then it almost sounds like that attribute might have been something from the 1.X versions and not something new in the 2.X version.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 19:26:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/nifi-2-0-bug-with-InvokeHTTP-procdessor/m-p/381586#M244345</guid>
      <dc:creator>joseomjr</dc:creator>
      <dc:date>2024-01-02T19:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: nifi 2.0 bug with InvokeHTTP procdessor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/nifi-2-0-bug-with-InvokeHTTP-procdessor/m-p/381591#M244348</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107729"&gt;@arutkwccu&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105558"&gt;@joseomjr&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;NiFi components evolve from release to release.&amp;nbsp; as part of their evolution the components may have default properties added or removed.&lt;BR /&gt;&lt;BR /&gt;That is the case here with invokeHTTP processor.&amp;nbsp; The property "&lt;SPAN&gt;Proxy Type" idd exist as a property in &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.24.0/org.apache.nifi.processors.standard.InvokeHTTP/index.html" target="_self"&gt;Apache NiFi 1.24 invokeHTTP&lt;/A&gt; processor and had a default&amp;nbsp;value of "http".&lt;BR /&gt;&lt;BR /&gt;This property was removed in &lt;A href="https://nifi.apache.org/documentation/nifi-2.0.0-M1/components/org.apache.nifi/nifi-standard-nar/2.0.0-M1/org.apache.nifi.processors.standard.InvokeHTTP/index.html" target="_self"&gt;Apache NIFi 2.0.0-M1 invokeHTTP&lt;/A&gt; processor.&lt;BR /&gt;&lt;BR /&gt;In this specific example:&lt;BR /&gt;- Earlier version of Apache NIFi 1.x invokeHTTP processor&amp;nbsp;supported configuring proxy properties directly in the processor.&amp;nbsp; Later version of Apache NiFi allowed those same configuration to be abstracted to a&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-proxy-configuration-nar/1.24.0/org.apache.nifi.proxy.StandardProxyConfigurationService/index.html" target="_blank"&gt;StandardProxyConfigurationService&lt;/A&gt;&amp;nbsp;controller service (for ease of reuse), but also kept the original direct properties in the processor to avoid upgrade issues for user upgrading within a minor release change.&amp;nbsp; As Apache NiFi 2.0.0-M1 is a major release, clean-up is happening here to remove the deprecated config methods for the newer controller service config method.&lt;BR /&gt;&lt;BR /&gt;When a NiFi loads the flow.json.gz from another NiFi it loads the same class and reads in all the configured properties.&amp;nbsp; For any configured property where the current version does not have the same property, the property is added as a custom dynamic property.&amp;nbsp; This may render your component invalid until manual correction is made (in your case deleting this dynamic property).&amp;nbsp; &amp;nbsp;Apache NiFi has always functioned in this way and it is not a bug.&amp;nbsp; It is not possible for NiFi framework to know what "dynamic" properties should&amp;nbsp;or should&amp;nbsp;not be added to component, it simply reads what is found in the flow.json.gz being loaded.&amp;nbsp; Validating your dataflows post any upgrade (not just major version changes like Apache NiFi 1.x to 2.x) is a necessary step.&lt;BR /&gt;&lt;BR /&gt;This specific migration is mentioned in the &lt;A href="https://cwiki.apache.org/confluence/display/NIFI/Migrating+Deprecated+Components+and+Features+for+2.0.0#MigratingDeprecatedComponentsandFeaturesfor2.0.0-Migration.11" target="_self"&gt;Migrating Deprecated Components and Features&lt;/A&gt; guide.&lt;BR /&gt;&lt;BR /&gt;You'll know right away if a property is not a default property but rather a "dynamic" custom property when you see it.&amp;nbsp; Only dynamic properties will present the trashcan icon to the right of it allowing you to delete it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this adds clarity here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Mat&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 20:43:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/nifi-2-0-bug-with-InvokeHTTP-procdessor/m-p/381591#M244348</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-02T20:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: nifi 2.0 bug with InvokeHTTP procdessor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/nifi-2-0-bug-with-InvokeHTTP-procdessor/m-p/381593#M244350</link>
      <description>&lt;P&gt;Thank you for the advisement. I understand what you are saying.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 20:58:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/nifi-2-0-bug-with-InvokeHTTP-procdessor/m-p/381593#M244350</guid>
      <dc:creator>arutkwccu</dc:creator>
      <dc:date>2024-01-02T20:58:45Z</dc:date>
    </item>
  </channel>
</rss>

