Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3157] iOS: app:// URL specifier may cause crashes

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-05-02T20:12:07.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelscore
ReporterStephen Tramer
AssigneeIngo Muschenetz
Created2011-04-15T03:38:17.000+0000
Updated2017-05-02T21:19:07.000+0000

Description

Can be viewed by loading the following HTML into a window with the KS movie.mp4 resource present in the appropriate location:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <link rel="stylesheet" type="text/css" href="../test.css" />
    <script type="text/javascript" src="../jquery-1.3.2.js"></script>
    <meta name="format-detection" content="telephone=no"/>
</head>
<body id="mybody" style="height:500px;background-color:#999;background-image:url(../images/bg.png)">
<video src="app://movie.mp4" autoplay controls />   
</body>
</html>

Causes a crash in +[TiUtils loadAppResource:] via: 'NSRangeException', reason: '*** -[NSCFString characterAtIndex:]: Range or index out of bounds'

Comments

  1. Stephen Tramer 2012-07-26

    Valid with SDK 2.2.0.014b86f. Test case:
       var win = Ti.UI.createWindow();
       win.add(Ti.UI.createWebView({
       	html:'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head></head><body id="mybody" style="height:500px;background-color:#999;background-image:url(../images/bg.png)"><video src="app://movie.mp4" autoplay controls />   </body></html>'
       }));
       win.open();
       
  2. Lee Morris 2017-05-02

    Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.

JSON Source