{ "id": "83706", "key": "TIMOB-6602", "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" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-26T08:52:38.000+0000", "created": "2011-12-13T07:32:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_require", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:37.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": "Expected: require('ui').createMainWindow().open() should load module and call methods\r\nActual: throws file not found error; need to use require('/ui').createMainWindow().open()\r\n\r\nAttached file demonstrates problem. \r\n\r\nThe relative path worked in 1.7.6 and the CI build of 1.8 noted in the code comments", "attachment": [ { "id": "24721", "filename": "RequireTest_updated.zip", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-15T08:03:14.000+0000", "size": 2320583, "mimeType": "application/zip" }, { "id": "24620", "filename": "RequireTest.zip", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-13T07:32:37.000+0000", "size": 2320933, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: CommonJS Relative path in require() statement prevents file from loading", "creator": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "environment": "Mac OS X 10.6.8, Ti Studio 1.0.7.201112120322, version=1.8.0.1, timestamp=12/09/11 16:48, githash=531977c\r\n", "comment": { "comments": [ { "id": "176229", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Updated in attempt to fix my bug-filing faux pas.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-15T08:04:00.000+0000", "updated": "2011-12-15T08:04:00.000+0000" }, { "id": "230943", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed to work in 3.0.0.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-11T22:24:24.000+0000", "updated": "2012-12-11T22:24:24.000+0000" }, { "id": "231894", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Tested and verified on:\r\nTitanium Studio, build: 3.0.0.201212131639\r\nTitanium SDK, build: 3.0.0.v20121212184921\r\nDevice: LG Nexus 4 (4.2)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-18T19:36:27.000+0000", "updated": "2012-12-18T19:36:27.000+0000" }, { "id": "263367", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening just to update label.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-26T08:50:11.000+0000", "updated": "2013-07-26T08:50:11.000+0000" }, { "id": "263368", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated label.\r\nClosing as fixed.\r\nVerified with:\r\n\r\nVerified with:\r\n\r\nStudio: 3.1.1.201306131423\r\nSDK: 3.1.2.v20130725180746\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.2.14\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice: HTC Desire(v4.0.3),iphone Simulator(v6.0)\r\n\r\nCommonJS Relative path in require() statement working well.\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-26T08:52:38.000+0000", "updated": "2013-07-26T08:52:38.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }