{ "id": "164660", "key": "TIMOB-24170", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-06T06:47:06.000+0000", "created": "2016-11-23T18:58:11.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "LiveView", "alloy", "path", "relative", "require" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "55728", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "169430", "key": "TISTUD-8840", "fields": { "summary": "LiveView: Include version 1.2.1", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2018-08-06T17:57:34.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" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "When requiring a module using relative paths, an app will error out if LiveView is running.\r\n\r\n\r\n\r\n{code:java}\r\nvar require_absolute_path = require('/test/myModule');\r\nconsole.error('require_absolute_path: ' + require_absolute_path);\r\n\r\nvar require_relative_path = require('./myModule');\r\nconsole.error('require_relative_path: ' + require_relative_path);\r\n{code}\r\n\r\n\r\n{code:bash}\r\n[INFO] [LiveView] Error Evaluating /test/requireTest.js @ Line: \r\n[ERROR] Couldn't find module: ./myModule for architecture: x86_64\r\n[ERROR] File: /test/requireTest.js\r\n[ERROR] Line: \r\n[ERROR] SourceId: \r\n[ERROR] Backtrace:\r\n[ERROR] undefined\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "LiveView breaks relative path usage in require", "creator": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 945, "state": "closed", "name": "2017 Sprint 18 Tooling", "startDate": "2017-08-27T21:14:41.095Z", "endDate": "2017-09-10T21:14:00.000Z", "completeDate": "2017-09-10T21:23:47.718Z", "originBoardId": 219 }, { "id": 940, "state": "closed", "name": "2017 Sprint 17 Tooling", "startDate": "2017-08-13T23:08:06.803Z", "endDate": "2017-08-27T23:08:00.000Z", "completeDate": "2017-08-27T21:14:05.511Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "401857", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~brentonhouse] Is this only happening on 6.0.0+? And is it iOS, Android or both?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-27T19:38:04.000+0000", "updated": "2016-11-27T19:38:45.000+0000" }, { "id": "401937", "author": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "[~hansknoechel] I will test on Android and update the ticket with findings.", "updateAuthor": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2016-11-28T22:16:55.000+0000", "updated": "2016-11-28T22:17:12.000+0000" }, { "id": "401940", "author": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "Failed on Android as well:\r\n\r\n\r\n{code:bash}\r\n[ERROR] TiHTTPClient: (TiHttpClient-12) [1738,1738] HTTP Error (java.io.IOException): 404 : Not Found\r\n[ERROR] TiHTTPClient: java.io.IOException: 404 : Not Found\r\n[ERROR] TiHTTPClient: \tat ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1217)\r\n[ERROR] TiHTTPClient: \tat java.lang.Thread.run(Thread.java:818)\r\n[INFO] [LiveView] Error Evaluating /test/requireTest.js @ Line: undefined\r\n[ERROR] Error: Requested module not found: ./myModule\r\n[ERROR] File: /test/requireTest.js\r\n[ERROR] Line: undefined\r\n[ERROR] SourceId: undefined\r\n[ERROR] Backtrace:\r\n[ERROR] undefined\r\n\r\n{code}\r\n", "updateAuthor": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2016-11-28T22:42:16.000+0000", "updated": "2016-11-28T22:42:16.000+0000" }, { "id": "426352", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/liveview/pull/105", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-08-09T17:55:58.000+0000", "updated": "2017-08-09T17:55:58.000+0000" }, { "id": "426857", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ssekhri] Are you doing the FR for this one? This one should be a Studio FR.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-17T18:07:51.000+0000", "updated": "2017-08-17T18:07:51.000+0000" }, { "id": "426885", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~amukherjee] As soon as it is merged into studio. The merge ticket is already planned for this sprint but we would take it on priority.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-17T23:43:01.000+0000", "updated": "2017-08-17T23:43:01.000+0000" }, { "id": "427317", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ssekhri] This ticket should actually be a Studio 4.10 ticket. Would you be able to move the fixVersion to the correct version?", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-28T16:29:46.000+0000", "updated": "2017-08-28T16:29:46.000+0000" }, { "id": "427613", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "Fixed in liveview@1.2.1.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-09-06T06:47:06.000+0000", "updated": "2017-09-06T06:47:06.000+0000" }, { "id": "440362", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed tickets from 2016 and earlier. If this ticket should not have been closed, please reopen it.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:57:34.000+0000", "updated": "2018-08-06T17:57:34.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }