{ "id": "83036", "key": "TIMOB-6287", "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": "12087", "description": "", "name": "Sprint 2011-47", "archived": true, "released": true, "releaseDate": "2011-11-28" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-23T16:06:44.000+0000", "created": "2011-11-22T17:10:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "branch-v8" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "13973", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "outwardIssue": { "id": "82480", "key": "TIMOB-6073", "fields": { "summary": "Android: Windows: Rhino only, opening and closing a window causes the application to crash", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-11-23T16:06:44.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": "h3. Fail/Test Case\r\n\r\nUse this project structure.\r\n\r\nh4. Resources/app.js\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#000',\r\n\texitOnClose: true\r\n});\r\n\r\nTi.include(\"sub/sub.js\");\r\nwin.add(Ti.UI.createLabel({\r\n\ttop: \"20dp\", left: \"20dp\", right: \"20dp\", height: \"40dp\", color: \"white\",\r\n\ttext: rootmod.sayHi(\"from a module in /.\")\r\n}));\r\nwin.open();\r\n{code}\r\n\r\nh4. Resources/rootmod.js\r\n\r\n{code:title=rootmod.js}\r\nexports.sayHi = function(s) {return \"Hello, \" + s ; };\r\n{code}\r\n\r\nh4. Resources/sub/sub.js\r\n\r\n{code:title=sub.js}\r\nvar rootmod = require(\"/rootmod\");\r\n{code}\r\n\r\nRun that app and it will tell you that the module can't be found. (Or, if you're testing the fix, it should put a label that says \"Hello, from a module in /\".)", "attachment": [], "flagged": false, "summary": "Android: V8/Rhino: CommonJS require() fails for absolute paths", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium 1.8.0.1 #80f9cc, any emulator/device/android ver.", "comment": { "comments": [ { "id": "173829", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Marshall's huge TIMOB-6073 will likely fix this. Wait on it.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-11-22T17:11:10.000+0000", "updated": "2011-11-22T17:11:10.000+0000" }, { "id": "173894", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Marshall's TIMOB-6073 will fix this.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-11-23T11:29:25.000+0000", "updated": "2011-11-23T11:29:25.000+0000" }, { "id": "173895", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Oh, did I mention Marshall's TIMOB-6073 will fix this?", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-11-23T11:30:43.000+0000", "updated": "2011-11-23T11:30:43.000+0000" }, { "id": "173941", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with v8/rhino on\r\nXoom: 3.2.1\r\nLG Exp: 2.2.2\r\nDroid 3: 2.3.4", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-23T16:06:44.000+0000", "updated": "2011-11-23T16:06:44.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }