Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > "Duplicate headers received from server"

"Duplicate headers received from server"

  • Keith avatar

    Posted on Jan 3, 2012 (permalink)

    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.

    Reply

  • Stanislav Velikov Stanislav Velikov admin's avatar

    Posted on Jan 4, 2012 (permalink)

    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

    Reply

  • Keith avatar

    Posted on Jan 4, 2012 (permalink)

    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.

    Reply

  • Stanislav Velikov Stanislav Velikov admin's avatar

    Posted on Jan 5, 2012 (permalink)

    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

    Reply

  • Keith avatar

    Posted on Jan 13, 2012 (permalink)

    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

    Reply

  • Stanislav Velikov Stanislav Velikov admin's avatar

    Posted on Jan 18, 2012 (permalink)

    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

    Reply

  • Keith avatar

    Posted on Jan 18, 2012 (permalink)

    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.

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > "Duplicate headers received from server"