cancel
Showing results for 
Search instead for 
Did you mean: 

'Client aborted stream read' when opening pdf file with ie

sycha
Champ in-the-making
Champ in-the-making
Hello,

I can't access a specific pdf file (others pdf files display without problems) with internet explorer 6 when i can access the same one with firefox.

Here are the debug logs using ie :

12 janv. 2011 14:24:19,948 User:admin DEBUG [app.servlet.DownloadContentServlet] Authenticating request to URL: /alfresco/d/d/workspace/SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e/utilisateurs.pdf
12 janv. 2011 14:24:19,956 User:admin DEBUG [app.servlet.DownloadContentServlet] Processing URL: /alfresco/d/d/workspace/SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e/utilisateurs.pdf
12 janv. 2011 14:24:19,957 User:admin DEBUG [app.servlet.DownloadContentServlet] Found NodeRef: workspace://SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e
12 janv. 2011 14:24:19,957 User:admin DEBUG [app.servlet.DownloadContentServlet] Will use filename: utilisateurs.pdf
12 janv. 2011 14:24:19,957 User:admin DEBUG [app.servlet.DownloadContentServlet] For property: {http://www.alfresco.org/model/content/1.0}content
12 janv. 2011 14:24:19,957 User:admin DEBUG [app.servlet.DownloadContentServlet] With attachment mode: false
12 janv. 2011 14:24:19,964 User:admin DEBUG [app.servlet.DownloadContentServlet] Found content range header: bytes=326380-
12 janv. 2011 14:24:20,247 User:admin INFO  [app.servlet.DownloadContentServlet] Client aborted stream read:
        node: workspace://SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e
        content: ContentAccessor[ contentUrl=store://2011/1/11/10/54/f7643f12-46be-4666-9f2e-570273491187.bin, mimetype=application/pdf, size=656383, encoding=ISO-8859-1, locale=fr_FR]
12 janv. 2011 14:24:20,259 User:admin DEBUG [app.servlet.DownloadContentServlet] Authenticating request to URL: /alfresco/d/d/workspace/SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e/utilisateurs.pdf
12 janv. 2011 14:24:20,267 User:admin DEBUG [app.servlet.DownloadContentServlet] Processing URL: /alfresco/d/d/workspace/SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e/utilisateurs.pdf
12 janv. 2011 14:24:20,267 User:admin DEBUG [app.servlet.DownloadContentServlet] Found NodeRef: workspace://SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e
12 janv. 2011 14:24:20,267 User:admin DEBUG [app.servlet.DownloadContentServlet] Will use filename: utilisateurs.pdf
12 janv. 2011 14:24:20,267 User:admin DEBUG [app.servlet.DownloadContentServlet] For property: {http://www.alfresco.org/model/content/1.0}content
12 janv. 2011 14:24:20,267 User:admin DEBUG [app.servlet.DownloadContentServlet] With attachment mode: false
12 janv. 2011 14:24:20,274 User:admin DEBUG [app.servlet.DownloadContentServlet] Found content range header: bytes=652287-656382

and the logs with ff :

12 janv. 2011 14:28:46,034 User:admin DEBUG [app.servlet.DownloadContentServlet] Authenticating request to URL: /alfresco/d/d/workspace/SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e/utilisateurs.pdf
12 janv. 2011 14:28:46,041 User:admin DEBUG [app.servlet.DownloadContentServlet] Processing URL: /alfresco/d/d/workspace/SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e/utilisateurs.pdf
12 janv. 2011 14:28:46,041 User:admin DEBUG [app.servlet.DownloadContentServlet] Found NodeRef: workspace://SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e
12 janv. 2011 14:28:46,042 User:admin DEBUG [app.servlet.DownloadContentServlet] Will use filename: utilisateurs.pdf
12 janv. 2011 14:28:46,042 User:admin DEBUG [app.servlet.DownloadContentServlet] For property: {http://www.alfresco.org/model/content/1.0}content
12 janv. 2011 14:28:46,042 User:admin DEBUG [app.servlet.DownloadContentServlet] With attachment mode: false
12 janv. 2011 14:28:46,404 User:admin DEBUG [app.servlet.DownloadContentServlet] Authenticating request to URL: /alfresco/d/d/workspace/SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e/utilisateurs.pdf
12 janv. 2011 14:28:46,410 User:admin DEBUG [app.servlet.DownloadContentServlet] Processing URL: /alfresco/d/d/workspace/SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e/utilisateurs.pdf
12 janv. 2011 14:28:46,411 User:admin DEBUG [app.servlet.DownloadContentServlet] Found NodeRef: workspace://SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e
12 janv. 2011 14:28:46,411 User:admin DEBUG [app.servlet.DownloadContentServlet] Will use filename: utilisateurs.pdf
12 janv. 2011 14:28:46,411 User:admin DEBUG [app.servlet.DownloadContentServlet] For property: {http://www.alfresco.org/model/content/1.0}content
12 janv. 2011 14:28:46,411 User:admin DEBUG [app.servlet.DownloadContentServlet] With attachment mode: false
12 janv. 2011 14:28:46,414 User:admin INFO  [app.servlet.DownloadContentServlet] Client aborted stream read:
        node: workspace://SpacesStore/484bed7b-88ca-44c9-b0de-60cafca4940e
        content: ContentAccessor[ contentUrl=store://2011/1/11/10/54/f7643f12-46be-4666-9f2e-570273491187.bin, mimetype=application/pdf, size=656383, encoding=ISO-8859-1, locale=fr_FR]
12 janv. 2011 14:28:46,417 User:admin DEBUG [app.servlet.DownloadContentServlet] Found content range header: bytes=1-1,652287-656382

Any idea on this subject ?

Thank you for you help.
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

this is a known issue with Alfresco DownloadContentServlet and has been solved in 3.2.2 and 3.3
Please take a look at this JIRA issue

Regards

sycha
Champ in-the-making
Champ in-the-making
Hello,

Yes, you are absoluterly right : the bug disappears by commenting "res.setHeader("Accept-Ranges", "bytes");" in "BaseDownloadContentServlet.java".

Of course I did this by overwriting the classes "BaseDownloadContentServlet" and rewrite "DownloadContentServlet".

Thank you for your help  Smiley Very Happy