{
"id": "175488",
"key": "ALOY-1738",
"fields": {
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
},
"project": {
"id": "11113",
"key": "ALOY",
"name": "Alloy",
"projectCategory": {
"id": "10400",
"description": "Tools for developing applications",
"name": "Tooling"
}
},
"fixVersions": [
{
"id": "21091",
"name": "CLI Release 8.1.1",
"archived": false,
"released": true,
"releaseDate": "2020-09-15"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2020-09-14T18:27:05.000+0000",
"created": "2020-08-28T07:56:26.000+0000",
"priority": {
"name": "Critical",
"id": "1"
},
"labels": [
"regression"
],
"versions": [
{
"id": "21028",
"description": "",
"name": "CLI Release 8.1.0",
"archived": false,
"released": true,
"releaseDate": "2020-08-25"
},
{
"id": "21080",
"name": "Alloy 1.15.1",
"archived": false,
"released": true,
"releaseDate": "2020-08-11"
}
],
"issuelinks": [
{
"id": "58967",
"type": {
"id": "10122",
"name": "Gantt: start-finish",
"inward": "is triggered by",
"outward": "is triggering"
},
"outwardIssue": {
"id": "175805",
"key": "ALOY-1743",
"fields": {
"summary": "Runtime error when Widget contains another Widget at the top level",
"status": {
"description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.",
"name": "Resolved",
"id": "5",
"statusCategory": {
"id": 3,
"key": "done",
"colorName": "green",
"name": "Done"
}
},
"priority": {
"name": "None",
"id": "6"
},
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
}
}
}
},
{
"id": "58687",
"type": {
"id": "10122",
"name": "Gantt: start-finish",
"inward": "is triggered by",
"outward": "is triggering"
},
"inwardIssue": {
"id": "145396",
"key": "ALOY-1256",
"fields": {
"summary": "Widget/Require as top-level element uses controller as view",
"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": "None",
"id": "6"
},
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
}
}
}
},
{
"id": "59291",
"type": {
"id": "10003",
"name": "Relates",
"inward": "relates to",
"outward": "relates to"
},
"outwardIssue": {
"id": "175918",
"key": "ALOY-1748",
"fields": {
"summary": "Widget - Regression - weird behavior - some exporting functions are not working with CLI 8.1.1",
"status": {
"description": "The issue is open and ready for the assignee to start work on it.",
"name": "Open",
"id": "1",
"statusCategory": {
"id": 2,
"key": "new",
"colorName": "blue-gray",
"name": "To Do"
}
},
"priority": {
"name": "Critical",
"id": "1"
},
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
}
}
}
}
],
"assignee": {
"name": "eharris",
"key": "eharris",
"displayName": "Ewan Harris",
"active": true,
"timeZone": "Europe/Dublin"
},
"updated": "2021-06-16T14:13: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": [],
"description": "When you add a backbone event listener to a required controller that's nested in a ScrollableView the app will crash. This was working with CLI 8.0.0 and still works correctly with 8.1.0 when the require isn't nested in a ScrollableView.\r\n\r\n*To reproduce*\r\n\r\nRun the example below with CLI 8.1.0.\r\n\r\n+index.js+\r\n{code:java}\r\nfunction doSomething(e) {\r\n console.log('do something!');\r\n}\r\n\r\n$.index.open();\r\n{code}\r\n\r\n+index.xml+\r\n{code:java}\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n+label.js+\r\n{code:java}\r\nvar args = $.args;\r\n\r\nfunction passClick(e) {\r\n $.trigger('notify');\r\n}\r\n{code}\r\n\r\n+label.xml+\r\n{code:java}\r\n\r\n \r\n\r\n{code}\r\n\r\n*Expected behavior*\r\n\r\nThe app will run without crashing and the event is handled correctly.\r\n\r\n*Actual behavior*\r\n\r\nThe app crashes with the following crash message:\r\n\r\n{code:java}\r\n\"$.__views[\\\"label\\\"].on is not a function. (In '$.__views[\\\"label\\\"].on('notify', doSomething)', '$.__views[\\\"label\\\"].on' is undefined)\";\r\n{code}",
"attachment": [],
"flagged": false,
"summary": "CLI 8.1.0: crash when to listening backbone.events on required controller in ScrollableView",
"creator": {
"name": "teunklijn@telfort.nl",
"key": "teunklijn@telfort.nl",
"displayName": "Teun Klijn",
"active": true,
"timeZone": "Europe/Amsterdam"
},
"subtasks": [],
"reporter": {
"name": "teunklijn@telfort.nl",
"key": "teunklijn@telfort.nl",
"displayName": "Teun Klijn",
"active": true,
"timeZone": "Europe/Amsterdam"
},
"environment": "Appcelerator CLI 8.1.0; Titanium SDK 9.0.3.GA; Titanium SDK 9.1.0.GA; Android; iOS",
"comment": {
"comments": [
{
"id": "456636",
"author": {
"name": "eharris",
"key": "eharris",
"displayName": "Ewan Harris",
"active": true,
"timeZone": "Europe/Dublin"
},
"body": "[~teunklijn@telfort.nl] thanks for the comprehensive issue, I'll move this over to the ALOY project",
"updateAuthor": {
"name": "eharris",
"key": "eharris",
"displayName": "Ewan Harris",
"active": true,
"timeZone": "Europe/Dublin"
},
"created": "2020-08-28T10:53:18.000+0000",
"updated": "2020-08-28T10:53:18.000+0000"
},
{
"id": "456639",
"author": {
"name": "eharris",
"key": "eharris",
"displayName": "Ewan Harris",
"active": true,
"timeZone": "Europe/Dublin"
},
"body": "PR: https://github.com/appcelerator/alloy/pull/967\r\n\r\n[~teunklijn@telfort.nl], if you wanted to try and patch your CLI locally you can do the following:\r\n\r\n1. Open up the appc CLI directory in explorer/finder\r\n* Windows: C:\\Users\\\\.appcelerator\\install\\8.1.0\\package\\\r\n* MacOS: ~/.appcelerator/install/8.1.0/package/\r\n\r\n2. Open {{node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Require.js}}\r\n3. Apply the changes in the above PR",
"updateAuthor": {
"name": "eharris",
"key": "eharris",
"displayName": "Ewan Harris",
"active": true,
"timeZone": "Europe/Dublin"
},
"created": "2020-08-28T14:33:45.000+0000",
"updated": "2020-08-28T14:33:45.000+0000"
},
{
"id": "456640",
"author": {
"name": "eharris",
"key": "eharris",
"displayName": "Ewan Harris",
"active": true,
"timeZone": "Europe/Dublin"
},
"body": "Notes for testing, verify the test case from ALOY-1256 still works, as well as https://github.com/ewanharris/ALOY-1256-test, the test case from this ticket and maybe try the PKO/Community apps as they use the Require tag\r\n\r\nEdit:\r\n\r\nAlso check out the following widgets test apps [nl.fokkezb.infiniteScroll|https://github.com/Topener/nl.fokkezb.infiniteScroll/tree/test] and [nl.fokkezb.pullToRefresh|https://github.com/Topener/nl.fokkezb.pullToRefresh/tree/test]",
"updateAuthor": {
"name": "eharris",
"key": "eharris",
"displayName": "Ewan Harris",
"active": true,
"timeZone": "Europe/Dublin"
},
"created": "2020-08-28T14:35:26.000+0000",
"updated": "2020-08-31T13:20:16.000+0000"
},
{
"id": "456641",
"author": {
"name": "teunklijn@telfort.nl",
"key": "teunklijn@telfort.nl",
"displayName": "Teun Klijn",
"active": true,
"timeZone": "Europe/Amsterdam"
},
"body": "Thanks! This does fix my issue.",
"updateAuthor": {
"name": "teunklijn@telfort.nl",
"key": "teunklijn@telfort.nl",
"displayName": "Teun Klijn",
"active": true,
"timeZone": "Europe/Amsterdam"
},
"created": "2020-08-28T14:54:17.000+0000",
"updated": "2020-08-28T14:54:17.000+0000"
},
{
"id": "456883",
"author": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Verified the fix with 8.1.1-master.8.\r\nClosing.",
"updateAuthor": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2020-09-14T18:26:38.000+0000",
"updated": "2020-09-14T18:26:38.000+0000"
}
],
"maxResults": 5,
"total": 5,
"startAt": 0
}
}
}