{ "id": "144111", "key": "TIMOB-20141", "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": "20033", "name": "Release 9.0.0", "archived": false, "released": true, "releaseDate": "2020-03-18" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-01-06T15:29:00.000+0000", "created": "2015-02-03T17:31:49.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "engSchedule", "ios", "iphone" ], "versions": [ { "id": "17532", "name": "Release 5.1.1", "archived": false, "released": true, "releaseDate": "2015-11-24" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2020-01-06T15:29:00.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": [], "description": "module.js\r\n```\r\nconsole.log(controllerVariable);\r\nmoduleVariable = \"moduleVariable\";\r\nmodule.exports = {};\r\n```\r\n\r\ncontroller.js\r\n```\r\ncontrollerVariable = \"controllerVariable\";\r\nvar module = require(\"module\");\r\nconsole.log(moduleVariable);\r\n```\r\n\r\nOutput when running the application is:\r\nmoduleVariable\r\ncontrollerVariable\r\n\r\nExpected that the global scope of the controller would not be shared with the global scope of the module.", "attachment": [], "flagged": false, "summary": "Global scope variables can be shared with CommonJS modules", "creator": { "name": "erisco", "key": "erisco", "displayName": "Eric", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "erisco", "key": "erisco", "displayName": "Eric", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX Version 10.10.2 (14C109)\r\nTitanium Studio, build: 3.4.1.201410281727\r\nAlloy 1.5.1\r\nSDK 3.4.1.GA\r\niOS iPhone", "comment": { "comments": [ { "id": "342037", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\nplease read the guide to report issues:\r\n\r\nhttp://docs.appcelerator.com/titanium/3.0/#!/guide/How_to_Submit_a_Bug_Report\r\n\r\nand provide at least:\r\n\r\n- Description of the problem\r\n- Steps to reproduce\r\n- Expected Results\r\n- Actual Results\r\n\r\nIf you want/need to add a new feature, explain what you need, why you need it, and what you expect to be a solution. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-02-04T14:52:12.000+0000", "updated": "2015-02-04T14:52:12.000+0000" }, { "id": "342057", "author": { "name": "erisco", "key": "erisco", "displayName": "Eric", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Description of the problem: Global scope variables can be shared with CommonJS modules\r\n\r\nSteps to reproduce:\r\n\r\n1) Here is the source for the module:\r\n\r\nmodule.js\r\n```\r\nconsole.log(controllerVariable);\r\nmoduleVariable = \"moduleVariable\";\r\nmodule.exports = {};\r\n```\r\n\r\n2) Here is the source for the controller:\r\n\r\ncontroller.js\r\n```\r\ncontrollerVariable = \"controllerVariable\";\r\nvar module = require(\"module\");\r\nconsole.log(moduleVariable);\r\n```\r\n\r\nActual results (console output):\r\nmoduleVariable\r\ncontrollerVariable\r\n\r\nExpected results (neither variable should be defined in the scope it is logged):\r\nundefined\r\nundefined\r\n\r\nIf it was strict mode, I would expect an exception for not finding the variables.\r\n\r\nWhat other information is necessary so that I can provide it to you? This was all in the original report.", "updateAuthor": { "name": "erisco", "key": "erisco", "displayName": "Eric", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-04T16:31:51.000+0000", "updated": "2015-02-04T16:31:51.000+0000" }, { "id": "453117", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "node-titanium-sdk PR: https://github.com/appcelerator/node-titanium-sdk/pull/129", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-12-10T10:41:07.000+0000", "updated": "2019-12-10T10:41:07.000+0000" }, { "id": "453132", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged the node-titanium-sdk PR, once 4.0.0 goes out we'll need to fold that into the SDK", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-12-10T16:37:46.000+0000", "updated": "2019-12-10T16:37:46.000+0000" }, { "id": "453134", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master for 9.0.0: https://github.com/appcelerator/titanium_mobile/pull/11387", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-12-10T18:31:57.000+0000", "updated": "2019-12-10T18:31:57.000+0000" }, { "id": "453439", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-06T15:28:50.000+0000", "updated": "2020-01-06T15:28:50.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }