<?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 Downloading files through azure cdn is failing because url is double encoded when file name has spaces in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/downloading-files-through-azure-cdn-is-failing-because-url-is/m-p/314788#M1789</link>
    <description>&lt;P&gt;When the binary data store is set up to use Azure CDN and direct download is enabled, the nxfile servlet is redirecting to the wrong url when the filename has spaces in the name, causing the file to not be downloadable. This does not happen with file names that do not have spaces.&lt;/P&gt;
&lt;P&gt;Example of how to emulate below:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;a file is uploaded to nuxeo with the name "Hey this is some fake stuff for a fake word document.docx"&lt;/LI&gt;
&lt;LI&gt;try to download the file in the Nuxeo UI&lt;/LI&gt;
&lt;LI&gt;nuxeo nxfile gives a http 302 with the url : &lt;A href="http://&amp;lt;_some" target="test_blank"&gt;http://&amp;lt;_some&lt;/A&gt; azure urll&amp;gt;&amp;amp;rscd=attachment%3B%20filename%3DHey%20this%20is%
20some%20fake%20stuff%20for%20a%20fake%20word%20document.docx&amp;amp;sp=r&amp;amp;sr=b (note that spaces are encoded as %20)&lt;/LI&gt;
&lt;LI&gt;Nuxeo then tries to do a redirect to http://&lt;EM&gt;&amp;lt;&lt;EM&gt;some azure url&lt;/EM&gt;&amp;gt;&lt;/EM&gt;&amp;amp;rscd=attachment%3B%2520filename%3DHey%2520this%2520is%
20some%2520fake%2520stuff%2520for%2520a%2520fake%2520word%2520document.docx&amp;amp;sp=r&amp;amp;sr=b (note that the %20 is now encoded as %2520&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If we manually change the %2520 to %20 in the url, the file is downloadable. This was tested in nuxeo version FT8.2. Is anyone else seeing this issue?&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2016 16:14:05 GMT</pubDate>
    <dc:creator>minh_nguyen</dc:creator>
    <dc:date>2016-05-03T16:14:05Z</dc:date>
    <item>
      <title>Downloading files through azure cdn is failing because url is double encoded when file name has spaces</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/downloading-files-through-azure-cdn-is-failing-because-url-is/m-p/314788#M1789</link>
      <description>&lt;P&gt;When the binary data store is set up to use Azure CDN and direct download is enabled, the nxfile servlet is redirecting to the wrong url when the filename has spaces in the name, causing the file to not be downloadable. This does not happen with file names that do not have spaces.&lt;/P&gt;
&lt;P&gt;Example of how to emulate below:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;a file is uploaded to nuxeo with the name "Hey this is some fake stuff for a fake word document.docx"&lt;/LI&gt;
&lt;LI&gt;try to download the file in the Nuxeo UI&lt;/LI&gt;
&lt;LI&gt;nuxeo nxfile gives a http 302 with the url : &lt;A href="http://&amp;lt;_some" target="test_blank"&gt;http://&amp;lt;_some&lt;/A&gt; azure urll&amp;gt;&amp;amp;rscd=attachment%3B%20filename%3DHey%20this%20is%
20some%20fake%20stuff%20for%20a%20fake%20word%20document.docx&amp;amp;sp=r&amp;amp;sr=b (note that spaces are encoded as %20)&lt;/LI&gt;
&lt;LI&gt;Nuxeo then tries to do a redirect to http://&lt;EM&gt;&amp;lt;&lt;EM&gt;some azure url&lt;/EM&gt;&amp;gt;&lt;/EM&gt;&amp;amp;rscd=attachment%3B%2520filename%3DHey%2520this%2520is%
20some%2520fake%2520stuff%2520for%2520a%2520fake%2520word%2520document.docx&amp;amp;sp=r&amp;amp;sr=b (note that the %20 is now encoded as %2520&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If we manually change the %2520 to %20 in the url, the file is downloadable. This was tested in nuxeo version FT8.2. Is anyone else seeing this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 16:14:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/downloading-files-through-azure-cdn-is-failing-because-url-is/m-p/314788#M1789</guid>
      <dc:creator>minh_nguyen</dc:creator>
      <dc:date>2016-05-03T16:14:05Z</dc:date>
    </item>
  </channel>
</rss>

