+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / "Duplicate headers received from server"

"Duplicate headers received from server"

7 posts, 0 answered
  1. Keith
    Keith avatar
    67 posts
    Registered:
    13 Sep 2010
    03 Jan 2012
    Link to this post
    Hi,
    I am getting this error message in Chrome when I browse some pdf content on my site.  Most other pdf content opens just fine, it is only a handful of files that are giving me this problem.

    I am using Chrome version 16.0.912.63 (latest version as of this post)
    Any help is greatly appreciated.
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    08 Dec 2016
    04 Jan 2012
    Link to this post
    Hi,

    I have been testing with Chrome 16 and I was able to view all .pdf documents directly in the browser. Is this happening only in chrome are the inaccessiblefiles read by other browsers? I think this might be a browser issue since Sitefinity only passes the file to the browser PDF reader. Are you able to download the problematic document and drag and drop it in the browser if it is still not rendered then there is aproblem with the pdf version or the browser pdf reader.

    All the best,
    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Keith
    Keith avatar
    67 posts
    Registered:
    13 Sep 2010
    04 Jan 2012
    Link to this post
    Hi,
    This is only happening within Chrome.  IE9, 8, and FF all load the affected PDFs with no trouble at all.  I tried downloading one of the affected PDFs and then dragging it directly into a Chrome window and it also opened.  So it's only happening within Chrome when trying to load the PDF from the website.
    Also note that this is only happening with a few PDFs on our site.
  4. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    08 Dec 2016
    05 Jan 2012
    Link to this post
    Hello,

    Maybe there is something loaded on the page that prevents them from proper loading. If you can give me backend access to the site with credentials in a support ticket I can better determine what might be causing this.

    Kind regards,
    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Keith
    Keith avatar
    67 posts
    Registered:
    13 Sep 2010
    13 Jan 2012
    Link to this post
    Hi Stanislav,
    I have found that the problem is with files in our libraries that contain a comma in the filename.
    This is the header that is being returned:

    HTTP/1.1 200 OK
    Date: Fri, 13 Jan 2012 19:30:54 GMT
    Server: Microsoft-IIS/6.0
    ETag: " "
    X-Powered-By: ASP.NET
    X-AspNet-Version: 2.0.50727
    content-disposition: inline; filename=ERDAS IMAGINE, ER Mapper and LPS 2011 System Specifications.pdf
    Cache-Control: public
    Last-Modified: Thu, 30 Jun 2011 22:34:16 GMT
    Content-Type: application/pdf
    Content-Length: 109521

    The problem is the comma in the filename (see "content-disposition" line).  HTTP/1.1 does not support commas in the filename.  I guess the latest Chrome update is now enforcing that rule.
    My question now is, what can I do to remedy this in Sitefinity, other than renaming all of our downloadable assets that have filenames containing commas? Or is there already a fix for this that I can install?

    Thanks
  6. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    08 Dec 2016
    18 Jan 2012
    Link to this post
    Hello,

    Run a forach for all documents in the library and construct a regular expression that will replace the improper characters. Here is documents API samples. Another thing is to overwrite the existing files following this KB with a combination of bulk file renaming freeware.

    Greetings,
    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Keith
    Keith avatar
    67 posts
    Registered:
    13 Sep 2010
    18 Jan 2012
    Link to this post
    So in other words there is no way to fix this?
    The website does remove commas from the URL when it rewrites it.  Is it possible to make it do this to the response header as well?
    Again, I would like to avoid simply renaming all of those assets if at all possible.
Register for webinar
7 posts, 0 answered