Error when loading PPTX-files without extension in UIWebView

Originator:martin.alleus
Number:rdar://8034013 Date Originated:27-May-2010 12:40 PM
Status:Closed Resolved:31-May-2010 08:40 AM
Product:iPhone SDK Product Version:3.0
Classification:Other Bug Reproducible:Always
 
Summary:

When displaying document types (as of Technical Q&A QA1630), there is a problem when loading certain files that don't have an extension. We're downloading files from a API of one of our clients. The files are downloaded through a download script, and the filename is therefore not a part of the URL. This works perfectly for almost all files, including PPT, DOC, DOCX, PDF, and so on. But not for PPTX.

Sample URL to get the idea:
http://api.client.com/download?session=1234-1234-1234&file=1234

Steps to Reproduce:

With a UIWebView, open up a PPTX-file with file extension:
[documentView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.appcorn.se/sample.pptx"]]];

Then load the same file but without extension:
[documentView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.appcorn.se/sample"]]];

Expected Results:

On both requests, the file should be displayed the same way, just as it does with for example DOCX or PDF.

Actual Results:

The first request succeeds without problems, the second request fails with error:
Error Domain=WebKitErrorDomain Code=102 UserInfo=0x4d972b0 "Frame load interrupted"

Regression:

The download script mentioned in the summary supplies the web request with the correct filename in the response headers and downloading a file from OSX Safari results in a filename.pptx-file. The behavior of UIWebView when opening files without extension isn't described in the documentation (with exception of the legacy iWork formats, for example .pages.zip).

I'm simply suggesting that this is a bug, because all other file types works as I expected.

Notes:

I'll leave two copies of a the same sample PPTX-file (from http://openxmldeveloper.org/) on my server:

http://www.appcorn.se/sample.pptx
http://www.appcorn.se/sample

Comments

102 Issue has reappeared in 2018 on latest version of iOS for 4S.

By hunleyshome at Oct. 12, 2018, 6:21 p.m. (reply...)

31-May-2010 08:40 AM Martin Alleus:

Confirmed resolved in iPhone OS 4.0 beta 4.

This issue has been verified as resolved and can be closed.

By martin.alleus at May 31, 2010, 6:43 a.m. (reply...)

27-May-2010 08:28 PM Patrick Collins :

Engineering has requested the following information in order to further investigate this issue:

Does this issue also occur in iPhone OS 4.0 beta 4 (8A274b)?

By martin.alleus at May 31, 2010, 6:43 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!