{ "id": "100491", "key": "TIMOB-10783", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14158", "description": "Sprint 2012-20 Core", "name": "Sprint 2012-20 Core", "archived": true, "released": true, "releaseDate": "2012-10-08" }, { "id": "14272", "description": "2012 Sprint 20", "name": "2012 Sprint 20", "archived": true, "released": true, "releaseDate": "2012-10-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-02T16:20:38.000+0000", "created": "2012-09-05T11:00:14.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "core", "module_window", "qe-testadded", "regression", "titanbeta" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "21369", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "102039", "key": "ALOY-296", "fields": { "summary": "Remove WPATH() workaround for Android", "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": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "22053", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "102926", "key": "TIMOB-11311", "fields": { "summary": "Anvil Android: Multiple anvil tests fail in 3_0_X", "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 } } } }, { "id": "22132", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103569", "key": "TIMOB-11525", "fields": { "summary": "Android: Relative path for Window URL does not work on 3_0_X", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } }, { "id": "21139", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "101607", "key": "ALOY-286", "fields": { "summary": "Alloy - ImageView is not working in Android", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "25953", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "109910", "key": "TIMOB-12798", "fields": { "summary": "Android: include parameter is assumed relative to CommonJS file directory, causes FileNotFoundException ", "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": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-09-25T05:53:54.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4.Problem \r\nWhen a window is created with the *url* property, that url used to be (2.1.2 and earlier) treated as relative to the Resources directory. Now (2.2.0.v20120904164912) it is treated as relative to the directory of the calling js file. If the calling js file is in a subdirectory, an error (java.io.FileNotFoundException) is generated. This is going to break a lot of existing code. \r\n\r\nWorks in 2.1.2 \r\nBroken in 2.2.0.v20120904164912 \r\n\r\nh4.Testcase \r\nNote in this example that the \"loader.js\" file is in a \"ui\" subdirectory. \r\n\r\n{panel:title=app.js} \r\n{code} \r\nTi.UI.setBackgroundColor('#000'); \r\nTi.include('ui/loader.js'); \r\n{code} \r\n{panel} \r\n\r\n{panel:title=ui/loader.js} \r\n{code} \r\nvar win1=Ti.UI.createWindow({ \r\n title:'Window 1', \r\n backgroundColor:'#fff', \r\n url:'win1.js' \r\n}); \r\nwin1.open(); \r\n{code} \r\n{panel} \r\n\r\n{panel:title=win1.js} \r\n{code} \r\nvar winOne = Ti.UI.currentWindow; \r\n\r\nvar label1 = Ti.UI.createLabel({ \r\n color:'#999', \r\n text:'I am Window 1', \r\n font:{fontSize:20,fontFamily:'Helvetica Neue'}, \r\n textAlign:'center', \r\n width:'auto' \r\n}); \r\n\r\nwinOne.add(label1); \r\n{code} \r\n{panel} \r\n\r\n\r\nh4.Error log \r\n... \r\n[ERROR][TiAssetHelper( 345)] Error while reading asset \"Resources/ui/win1.js\": \r\n[ERROR][TiAssetHelper( 345)] java.io.FileNotFoundException: Resources/ui/win1.js \r\n[ERROR][TiAssetHelper( 345)] at android.content.res.AssetManager.openAsset(Native Method) \r\n[ERROR][TiAssetHelper( 345)] at android.content.res.AssetManager.open(AssetManager.java:313) \r\n[ERROR][TiAssetHelper( 345)] at android.content.res.AssetManager.open(AssetManager.java:287) \r\n[ERROR][TiAssetHelper( 345)] at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:77) \r\n[ERROR][TiAssetHelper( 345)] at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) \r\n[ERROR][TiAssetHelper( 345)] at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:140) \r\n[ERROR][TiAssetHelper( 345)] at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:284) \r\n[ERROR][TiAssetHelper( 345)] at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:166)\r\n[ERROR][TiAssetHelper( 345)] at android.os.Handler.dispatchMessage(Handler.java:95) \r\n[ERROR][TiAssetHelper( 345)] at android.os.Looper.loop(Looper.java:123) \r\n[ERROR][TiAssetHelper( 345)] at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:108)\r\n\r\n{panel}", "attachment": [], "flagged": false, "summary": "Android: Window url is assumed relative to calling js file directory, causes FileNotFoundException", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "- Android 2.2 emulator\r\n- Titanium Mobile SDK 2.2.0.v20120904164912\r\n- Titanium Studio 2.1.2.201208301612\r\n", "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "218148", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Helpdesk ticket: [APP-983576|http://support.appcelerator.com/tickets/APP-983576]", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-09-10T05:31:17.000+0000", "updated": "2012-09-10T05:31:17.000+0000" }, { "id": "221069", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "PR submitted: https://github.com/appcelerator/titanium_mobile/pull/3057\n", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-09-26T19:51:10.000+0000", "updated": "2012-09-26T19:51:10.000+0000" }, { "id": "230102", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.0.0.20121204144658 on Droid 1 2.2.3", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-05T20:12:06.000+0000", "updated": "2012-12-05T20:12:06.000+0000" }, { "id": "239015", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Verified fixed with SDK 3.0.2.v20130124164131. Thanks!", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-20T14:44:18.000+0000", "updated": "2013-02-20T14:44:18.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }