{ "id": "61992", "key": "TIMOB-1360", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:58.000+0000", "created": "2011-04-15T02:50:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:58.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

bug came via \nhttp://anovice.com/2010/07/16/installing-app-files-with-appcelerato...

\n

the issue is that when copying files from Apps \"Resources\"\nfolder to the devices \"Documents\" folder, using a 4 letter\nextension (html vs htm) fails. This does work in the simulator.

\n

replace htm with html in the following example.

\n

if (Ti.App.Properties.getInt(\"installComplete\") == null)\n{

\n
\n var imgOriginal = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory + \"/image.jpg\");\n var imgInstall = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory + \"/image.jpg\");\n imgInstall.write(imgOriginal);\n\n var dataOrig = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory + \"/foo.html\");\n var dataInstall = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory + \"/foo.html\");\n var dataContent = dataOrig.read();\n dataInstall.write(dataContent);\n\n Ti.App.Properties.setInt(\"installComplete\", 1);\n
\n

}

{html}", "attachment": [], "flagged": false, "summary": "iOS: issue with 4 letter extension when copying to \"Documents\" folder on device", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125460", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Note to self: Filesystem module, to handle resources that are\nstored in-binary, has a different logic path for .html, .js, and\n.css.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:26.000+0000", "updated": "2011-04-15T02:50:26.000+0000" }, { "id": "125461", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm unable to duplicate in either simulator or on device. Does\nthis occur only with products built via Titanium Developer?

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:27.000+0000", "updated": "2011-04-15T02:50:27.000+0000" }, { "id": "125462", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested in TiDev as well. I'm unable to reproduce this. Can you,\nThom?

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:27.000+0000", "updated": "2011-04-15T02:50:27.000+0000" }, { "id": "125463", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Using 1.4.1.8566ed, iOS sdk 4.0.2, os 10.6.4 I am unable to\nrepro this anymore, I confirmed that the .html file is being\ninstalled (tested 4.0.2 and 3.1.2). closing as resolved.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:27.000+0000", "updated": "2011-04-15T02:50:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }