<?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 Header request attributes not being passed with NiFi as api gateway in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393130#M248347</link>
    <description>&lt;P&gt;We are using nifi as api gateway. Whenever we pass any attributes in request header it should be captured as http.headers.xxxx in flowfile but when checked in flowfile ; header value is coming in small case though we have passed it in caps. In our implementation we have 2 instances of nifi running. One instance doesn't have any issue where as other has .&lt;/P&gt;
&lt;P&gt;Please help if there is any configuration I'm missing.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 12:19:22 GMT</pubDate>
    <dc:creator>Chetan_mn</dc:creator>
    <dc:date>2024-09-06T12:19:22Z</dc:date>
    <item>
      <title>Header request attributes not being passed with NiFi as api gateway</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393130#M248347</link>
      <description>&lt;P&gt;We are using nifi as api gateway. Whenever we pass any attributes in request header it should be captured as http.headers.xxxx in flowfile but when checked in flowfile ; header value is coming in small case though we have passed it in caps. In our implementation we have 2 instances of nifi running. One instance doesn't have any issue where as other has .&lt;/P&gt;
&lt;P&gt;Please help if there is any configuration I'm missing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 12:19:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393130#M248347</guid>
      <dc:creator>Chetan_mn</dc:creator>
      <dc:date>2024-09-06T12:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Header request attributes not being passed with NiFi as api gateway</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393250#M248397</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109475"&gt;@Chetan_mn&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Details are very beneficial in getting assistance in the community.&lt;BR /&gt;&lt;BR /&gt;Why different NiFi instance would produce two different FlowFile attribute contents, makes no sense to me.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1. Are these two instance of NiFi just&amp;nbsp; 2 nodes in the same NiFi&amp;nbsp; cluster?&lt;BR /&gt;2. What version(s) of NiFi are being used?&lt;BR /&gt;3. What processor is being used to your http requests?&amp;nbsp; I am assuming the &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.27.0/org.apache.nifi.processors.standard.HandleHttpRequest/index.html" target="_blank"&gt;HandleHttpRequest&lt;/A&gt; processor.&lt;BR /&gt;4. How is the HTTP processor configured?&lt;BR /&gt;5. Can you share a sample http request?&lt;BR /&gt;6. What is the source generating the request?&amp;nbsp; Is it an automated process?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 20:22:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393250#M248397</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-09-09T20:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Header request attributes not being passed with NiFi as api gateway</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393279#M248415</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Let me re frame my question like this.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="172596351627675552290015234241.jpg" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41727iEDC2E9704A9A8EF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="172596351627675552290015234241.jpg" alt="172596351627675552290015234241.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When API call is made to nifi where handleHttprequest accepts http requests,&lt;/P&gt;&lt;P&gt;There are few attributes in request header (Example: "displayName"). These&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requests are received at handleHttprequest processor. When I check attributes of&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flowfile, I could see "http.headers.displayname" . Letter 'N' turned into lower case.&lt;/P&gt;&lt;P&gt;But I need this to be in original form( http.headers.diplayName).&lt;/P&gt;&lt;P&gt;We are currently on 2.0 M2.&amp;nbsp; Is there any configuration I'm missing due to which&lt;/P&gt;&lt;P&gt;Request headers are turning into small case.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="17259636137353263954944195229608.jpg" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41728i6AFC73E8A9B19B5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="17259636137353263954944195229608.jpg" alt="17259636137353263954944195229608.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 10:26:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393279#M248415</guid>
      <dc:creator>Chetan_mn</dc:creator>
      <dc:date>2024-09-10T10:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Header request attributes not being passed with NiFi as api gateway</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393433#M248453</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109475"&gt;@Chetan_mn&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;While I do not have an install currently of Technical Preview NiFi 2.0 milestone2 release, I used a NiFi 1.18 to build a simple dataflow using HandleHTTPRequest.&lt;BR /&gt;&lt;BR /&gt;I then setup an invokeHTTP processor to send a message to&amp;nbsp; to that api endpoint using the PATCH http method. I also include a couple custom headers:&lt;BR /&gt;&lt;BR /&gt;displayName=Display1&lt;BR /&gt;outerID=123456aBcD&lt;BR /&gt;&lt;BR /&gt;When I inspected the received FlowFile from HandleHTTPRequest, I see the FlowFile attributes created from the headers look correct:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1726174713292.png" style="width: 698px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41755iB25E5A8EF64DF5DF/image-dimensions/698x221?v=v2" width="698" height="221" role="button" title="MattWho_0-1726174713292.png" alt="MattWho_0-1726174713292.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I suggest you try using an InvokeHTTP processor to test your HandleHTTPRequest processor in Apache NiFi 2.0.0-M2&amp;nbsp; to make sure your issue is not the result of some external manipulation of the headers before they are received by the HandleHTTPRequest processor.&lt;BR /&gt;&lt;BR /&gt;The headers are just create as FlowFile Attribute property names.&amp;nbsp; I am curious how the all lowercase of these property names are impacting your dataflow?&lt;BR /&gt;&lt;BR /&gt;Are the values for your headers being modified?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, 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&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 21:03:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393433#M248453</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-09-12T21:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Header request attributes not being passed with NiFi as api gateway</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393505#M248464</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I tried with invoke http. I made call to handleHttprequest . Issue still present. Doesn't look like any other&lt;/P&gt;&lt;P&gt;External factors are affecting the header case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our implementation we read those flowfile attributes (which came as headers)&lt;/P&gt;&lt;P&gt;In execute scripts. Which are giving error now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 07:33:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393505#M248464</guid>
      <dc:creator>Chetan_mn</dc:creator>
      <dc:date>2024-09-16T07:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Header request attributes not being passed with NiFi as api gateway</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393586#M248484</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109475"&gt;@Chetan_mn&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I loaded up the latest NiFi-2.0.0-M4 (milestone 4 release).&lt;BR /&gt;Loaded up my flow definition used in my NiFi 1.23 version.&lt;BR /&gt;&lt;BR /&gt;All seems to work fine sending headers with mix case and seeing the correct attributes created with those mix case headers on FlowFile generated by HandleHTTPRequest processor.&lt;BR /&gt;InvokeHTTP:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1726585335926.png" style="width: 718px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41781i5A9703816D2AE20D/image-dimensions/718x637?v=v2" width="718" height="637" role="button" title="MattWho_0-1726585335926.png" alt="MattWho_0-1726585335926.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You'll see two custom headers (displayName and outerID) added above as dynamic properties.&lt;BR /&gt;&lt;BR /&gt;HandleHTTPRequest processor:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_1-1726585431368.png" style="width: 715px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41782i559EA48398926E99/image-dimensions/715x636?v=v2" width="715" height="636" role="button" title="MattWho_1-1726585431368.png" alt="MattWho_1-1726585431368.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I "List Queue" on the connection containing the "Success" relationship from HandleHTTPRequest processor and "view details" the queued FlowFile, the FlowFile attributes look correct.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_2-1726585571571.png" style="width: 413px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41783i97C610BB985146F4/image-dimensions/413x489?v=v2" width="413" height="489" role="button" title="MattWho_2-1726585571571.png" alt="MattWho_2-1726585571571.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_3-1726585646508.png" style="width: 711px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41784i1FF1782259ABC2B7/image-dimensions/711x967?v=v2" width="711" height="967" role="button" title="MattWho_3-1726585646508.png" alt="MattWho_3-1726585646508.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Are you saying you see different?&lt;BR /&gt;Try using NiFi 2.0.0-M4 (latest) to see if experience is same.&lt;BR /&gt;&lt;BR /&gt;At what point in your dataflow are you checking the validating the FlowFile Attributes.&lt;BR /&gt;Is your custom script maybe handling them wrong?&lt;BR /&gt;I am not seeing an issue in the HandleHTTPRequest processor with regards to HTTP Header handling.&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, 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&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 15:10:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Header-request-attributes-not-being-passed-with-NiFi-as-api/m-p/393586#M248484</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-09-17T15:10:55Z</dc:date>
    </item>
  </channel>
</rss>

