{ "id": "94520", "key": "TIMOB-10357", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15079", "description": "2013 Sprint 02 API", "name": "2013 Sprint 02 API", "archived": true, "released": true, "releaseDate": "2013-01-28" }, { "id": "14812", "description": "2013 Sprint 02", "name": "2013 Sprint 02", "archived": true, "released": true, "releaseDate": "2013-01-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-15T11:45:21.000+0000", "created": "2012-07-06T10:39:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [ { "id": "24517", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "87800", "key": "TIMOB-7965", "fields": { "summary": "iOS: canGoBack/canGoForward does not work for local files", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-17T10:25:36.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": "h3. Problem description\r\nAfter using a javascript loader in a Webview to load '.js' files, the result is that all 'js' files are missing on the built version.\r\nThis does happen only on a real iphone/ipad. Not reproducible using the simulatore.\r\nRenaming all 'js' files to '_js' does fix the problem\r\n\r\n\r\nh3. Steps to reproduce\r\nh6. See sample code attached\r\nRun the app.\r\nResult: on real devices only the second alert (included in the '_js' file) it's actually triggered.\r\nOn simulators work fine.", "attachment": [ { "id": "29265", "filename": "MissingJSFilesBugDemo.zip", "author": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-12T21:27:44.000+0000", "size": 1573456, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: issue loading 'js' files using a javascript loader from a webView", "creator": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "201838", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the report. I believe this might be a Titanium Mobile bug.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-06T10:41:45.000+0000", "updated": "2012-07-06T10:41:45.000+0000" }, { "id": "202834", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This ticket does not have sufficient information to diagnose the issue. Please provide complete information along with Java Script files and the project.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-11T19:48:04.000+0000", "updated": "2012-07-11T19:48:04.000+0000" }, { "id": "203079", "author": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If you run the attached project on a simulator, you'll see two alerts. If you run it on an iOS device, the js file alert doesn't show.", "updateAuthor": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-12T21:27:44.000+0000", "updated": "2012-07-12T21:27:44.000+0000" }, { "id": "203080", "author": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also, if you do a google search for \"_js\" and Titanium, you will see plenty of references to the same sort of issue. And I should note: It seems that I need to abstract out the \"script src\" into local variables, before this bug appears.", "updateAuthor": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-12T21:31:11.000+0000", "updated": "2012-07-13T08:37:13.000+0000" }, { "id": "232539", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is due to minification of all js assets for device builds. ", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-26T18:51:19.000+0000", "updated": "2012-12-26T18:51:19.000+0000" }, { "id": "234398", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The implementation of a custom protocol for local files has resolved this issue.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-15T11:44:13.000+0000", "updated": "2013-01-15T11:44:13.000+0000" }, { "id": "234399", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed by PR https://github.com/appcelerator/titanium_mobile/pull/3701 against master", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-15T11:45:21.000+0000", "updated": "2013-01-15T11:45:21.000+0000" }, { "id": "262150", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "js files are being loaded using javascript loader.\r\n\r\nVerified on:\r\nDevice : iPhone 4S , iOS version : 5.1.1\r\nSDK: 3.1.2.v20130710144553\r\nCLI version : 3.1.1\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.2.201307161206\r\nXCode : 4.5.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-07-17T10:25:36.000+0000", "updated": "2013-07-17T10:25:36.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }