{ "id": "171221", "key": "TIMOB-25826", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-04-24T14:19:28.000+0000", "created": "2018-03-01T12:53:49.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "parity" ], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" }, { "id": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" }, { "id": "20099", "name": "Release 7.2.0", "archived": false, "released": true, "releaseDate": "2018-06-14" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2018-06-12T19:19:20.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": "h5.Description\r\n\r\nWhen a script that exports a falsey value {{undefined, null, false}} is required by a relative path {{./foo}} the module will 'fail' to be found throwing the below error\r\n\r\n{code}\r\n[ERROR] TiExceptionHandler: (main) [20,20] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] TiExceptionHandler: (main) [0,20] - In ti:/module.js:303,2\r\n[ERROR] TiExceptionHandler: (main) [0,20] - Message: Uncaught Error: Requested module not found: ./foo\r\n[ERROR] TiExceptionHandler: (main) [0,20] - Source: \tthrow new Error('Requested module not found: ' + request); // TODO Set 'code' property to 'MODULE_NOT_FOUND' to match Node?\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Download the attached app\r\n2. Build for android\r\n\r\nh5.Actual\r\n\r\nThe following is logged\r\n\r\n{code}\r\n[INFO] empty-double threw\r\n[INFO] empty-single threw\r\n[INFO] false threw\r\n[INFO] nan threw\r\n[INFO] null threw\r\n[INFO] undefined threw\r\n[INFO] zero threw\r\n{code}\r\n\r\nh5.Expected\r\n\r\nThe following is logged \r\n\r\n{code}\r\n[INFO] empty-double worked\r\n[INFO] empty-single worked\r\n[INFO] false worked\r\n[INFO] nan worked\r\n[INFO] null worked\r\n[INFO] undefined worked\r\n[INFO] zero worked\r\n{code}", "attachment": [ { "id": "64913", "filename": "jiratestapp.zip", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-03-01T13:31:18.000+0000", "size": 5546062, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Error requiring a file by relative path where module.exports is a falsey value", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 7.0.2.GA, 7.1.0.v20180228160738, 7.2.0.v20180228155339", "closedSprints": [ { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "435072", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/9897", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-03-01T19:18:19.000+0000", "updated": "2018-03-01T19:18:19.000+0000" }, { "id": "438365", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket. Fix can be seen in SDK Version: 7.3.0.v20180607210411\r\n\r\nOther information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/9897", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-12T19:19:00.000+0000", "updated": "2018-06-12T19:19:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }