{ "id": "93557", "key": "TIMOB-9662", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13418", "description": "Sprint 2012-13 Core", "name": "Sprint 2012-13 Core", "archived": true, "released": true, "releaseDate": "2012-07-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-21T11:36:39.000+0000", "created": "2012-06-20T12:43:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "look1", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "17927", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "93393", "key": "AC-2979", "fields": { "summary": "Android: CommonJS modules are not cached in latest CI builds", "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" } }, "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": "2017-03-16T22:04:27.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": "h1. Problem\r\nWhen nesting CommonJS modules, module definitions can override existing CommonJS module definitions. This is a regression introduced sometime in the last month, though I do not have a specific point.\r\n\r\nh2. Reproduction\r\nAttached \"NestedConfusionReproduction.zip\". Extract it to the Resources directory of an app, and run it on any Android environment. (Note that in this reduced reproduction, moving some of the requires around can avoid this bug. But in larger projects, or more complicated require scenarios, it cannot be so easily avoided.)\r\n\r\nh2. What's Happening Wrong in Reproduction\r\nThe app does the following:\r\n\r\n- app.js require's a specific view (ti.cloud.ui/buttons/chooseAPhoto).\r\n- The specific view requires a generic view (ti.cloud.ui/buttons/generic).\r\n- Both views require a single utility module (ti.cloud.ui/utils) and store it in a variable U.\r\n\r\nWhen the generic view's createView method is called, it alerts the U variable. It also alerts a fresh require of the utility module. The expected behavior is these two would output the same thing, right? But the alert shows that both are messed up: U contains buttons/generic and the fresh require contains buttons/chooseAPhoto. (Each has unique methods, so it is easy to tell which module has been passed to alert.)", "attachment": [ { "id": "28550", "filename": "NestedConfusionReproduction.zip", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-20T12:43:43.000+0000", "size": 1650, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Nested CommonJS Modules Replace Existing CommonJS Modules", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": "BROKEN with Ti SDK 2.1.0, timestamp=06/19/12 19:02, githash=da36a08\r\nWORKS with Ti SDK 2.0.3, timestamp=06/01/12 14:15, githash=a43004b\r\nWORKS in iPhone 5.1 Simulator\r\nTested in Android Emulator 2.3.7, Android Device (TAB 7.0+) 3.2", "comment": { "comments": [ { "id": "199404", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Added an additional reproduction explanation.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-20T13:14:17.000+0000", "updated": "2012-06-20T13:14:17.000+0000" }, { "id": "199480", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "I've got this pinned down I think. Working on fix.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-06-20T16:53:04.000+0000", "updated": "2012-06-20T16:53:04.000+0000" }, { "id": "199489", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull request ready\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/2443", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-06-20T17:20:04.000+0000", "updated": "2012-06-20T17:20:04.000+0000" }, { "id": "199530", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-06-21T01:17:59.000+0000", "updated": "2012-06-21T01:17:59.000+0000" }, { "id": "199583", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Tested with the latest CI, and everything's working great again (as far as my testing shows).\r\n\r\n@Neeraj: I'm pretty confident I've duplicated [TC-987] with this ticket. The behavior Ivan reported is identical to what I was seeing.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-21T10:13:54.000+0000", "updated": "2012-06-21T10:13:54.000+0000" }, { "id": "199603", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "i think this was mistakenly reopened", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-06-21T11:36:39.000+0000", "updated": "2012-06-21T11:36:39.000+0000" }, { "id": "413260", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T22:04:27.000+0000", "updated": "2017-03-16T22:04:27.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }