<?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>topic Re: Webhook notification with wrong header in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-with-wrong-header/m-p/545300#M26025</link>
    <description>&lt;P&gt;That header name "X- ropbox-Signature" does look incorrect; it should be "X-Dropbox-Signature". I just tried this myself though, setting up a server to receive Dropbox webhook notifications, and I am receiving the correct "X-Dropbox-Signature" header name, not "X- ropbox-Signature", so there may be something on your webhook URI server corrupting that on the receiving side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you receiving these webhook notifications, and how are you printing out the headers? (The version of the Dropbox Java SDK you're using wouldn't be relevant as that SDK doesn't handle the receipt of webhook notifications; that would be done by your web framework.)&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2021 15:16:00 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-09-16T15:16:00Z</dc:date>
    <item>
      <title>Webhook notification with wrong header</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-with-wrong-header/m-p/545281#M26024</link>
      <description>&lt;P&gt;I'm using dropbox sdk java 4.0.1. I've configured my webhook url (in the app console) for receiving notification on my server. It works but I receive these headers in the notification:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;host my.machine&lt;BR /&gt;user-agent DropboxWebhooks/1.0&lt;BR /&gt;accept */*&lt;BR /&gt;accept-encoding gzip,deflate&lt;BR /&gt;&lt;STRONG&gt;X- ropbox-Signature&lt;/STRONG&gt; d4exxx65&lt;BR /&gt;content-type application/json&lt;BR /&gt;content-length 108&lt;/P&gt;&lt;P&gt;(I replaced sensitive data)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, the header name is wrong. Is it expected? &lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Am I doing something wrong?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 12:24:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-with-wrong-header/m-p/545281#M26024</guid>
      <dc:creator>luigiafassina</dc:creator>
      <dc:date>2021-09-16T12:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook notification with wrong header</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-with-wrong-header/m-p/545300#M26025</link>
      <description>&lt;P&gt;That header name "X- ropbox-Signature" does look incorrect; it should be "X-Dropbox-Signature". I just tried this myself though, setting up a server to receive Dropbox webhook notifications, and I am receiving the correct "X-Dropbox-Signature" header name, not "X- ropbox-Signature", so there may be something on your webhook URI server corrupting that on the receiving side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you receiving these webhook notifications, and how are you printing out the headers? (The version of the Dropbox Java SDK you're using wouldn't be relevant as that SDK doesn't handle the receipt of webhook notifications; that would be done by your web framework.)&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 15:16:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-with-wrong-header/m-p/545300#M26025</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-09-16T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook notification with wrong header</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-with-wrong-header/m-p/545317#M26026</link>
      <description>&lt;P&gt;I set the Webhook URI in the App Console. Then my server receives the request and I print it as&lt;/P&gt;&lt;PRE&gt;Collections.&lt;SPAN&gt;list&lt;/SPAN&gt;(request.getHeaderNames()).stream().forEach(h -&amp;gt; &lt;SPAN&gt;log&lt;/SPAN&gt;.info(h + &lt;SPAN&gt;" (" &lt;/SPAN&gt;+ &lt;SPAN&gt;request&lt;/SPAN&gt;.getHeader(h) + &lt;SPAN&gt;")"&lt;/SPAN&gt;))&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;but also reading as&lt;/P&gt;&lt;PRE&gt;String signature = request.getHeader("&lt;SPAN&gt;X-Dropbox-Signature&lt;/SPAN&gt;")&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;is empty.&lt;/P&gt;&lt;P&gt;I'm going to check my code but a part this I should do nothing before...&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 16:18:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-with-wrong-header/m-p/545317#M26026</guid>
      <dc:creator>luigiafassina</dc:creator>
      <dc:date>2021-09-16T16:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook notification with wrong header</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-with-wrong-header/m-p/545351#M26027</link>
      <description>&lt;P&gt;There doesn't appear to be anything wrong in these lines, but it's possible the header name is getting corrupted elsewhere in the stack, before the value gets to your code.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 18:04:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Webhook-notification-with-wrong-header/m-p/545351#M26027</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-09-16T18:04:46Z</dc:date>
    </item>
  </channel>
</rss>

