{ "id": "109683", "key": "AC-2616", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-04-04T23:33:59.000+0000", "created": "2013-02-13T21:57:03.000+0000", "labels": [ "alloy", "data-binding", "widget" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:42.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "1. Create a widget.\r\n2. In View that includes widget, create a custom attribute.\r\n3. In the value of that customer attribute, use curly braces as used when doing data-binding.\r\n\r\n[ERROR] : \b\b \b/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:748\r\n[ERROR] : \b\b \b\t\t\t\t\t\tif (theState.condition) {\r\n[ERROR] : \b\b \b\t\t\t\r\n[ERROR] : \b\b \b\t\t\t ^\r\n[ERROR] : \b\b \bTypeError: Cannot read property 'condition' of undefined\r\n[ERROR] : \b\b \b at exports.generateStyleParams.fromArray (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:748:19)\r\n[ERROR] : \b\b \b at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:769)\r\n[ERROR] : \b\b \b at exports.generateStyleParams.fromArray (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:722:5)\r\n[ERROR] : \b\b \b at Array.forEach (native)\r\n[ERROR] : \b\b \b at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : \b\b \b at Object.exports.generateStyleParams (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:721:4)\r\n[ERROR] : \b\b \b at parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Require.js:75:112)\r\n[ERROR] : \b\b \b at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)\r\n[ERROR] : \b\b \b at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Require.js:10:27)\r\n[ERROR] : \b\b \b at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Widget.js:4:36)\r\n[ERROR] : \b\b \b at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:231:48)\r\n[ERROR] : \b\b \b at exports.generateNode.content (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:271:29)\r\n[ERROR] : \b\b \b at Array.forEach (native)\r\n[ERROR] : \b\b \b at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : \b\b \b at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:266:5)\r\n[ERROR] : \b\b \b at exports.generateNode.content (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:271:29)\r\n[ERROR] : \b\b \b at Array.forEach (native)\r\n[ERROR] : \b\b \b at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : \b\b \b at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:266:5)\r\n[ERROR] : \b\b \b at exports.generateNode.content (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:271:29)\r\n[ERROR] : \b\b \b at Array.forEach (native)\r\n[ERROR] : \b\b \b at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : \b\b \b at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:266:5)\r\n[ERROR] : \b\b \b at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:400:28\r\n[ERROR] : \b\b \b at Array.forEach (native)\r\n[ERROR] : \b\b \b at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : \b\b \b at parseAlloyComponent (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:392:5)\r\n[ERROR] : \b\b \b at module.exports.alloyJs (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:192:5)\r\n[ERROR] : \b\b \b at Array.forEach (native)\r\n[ERROR] : \b\b \b at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : \b\b \b at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:182:5\r\n[ERROR] : \b\b \b at Array.forEach (native)\r\n[ERROR] : \b\b \b at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : \b\b \b at module.exports (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:180:4)\r\n[ERROR] : \b\b \b at Object. (/usr/local/lib/node_modules/alloy/Alloy/alloy.js:87:46)\r\n[ERROR] : \b\b \b at Module._compile (module.js:449:26)\r\n[ERROR] : \b\b \b at Object.Module._extensions..js (module.js:467:10)\r\n[ERROR] : \b\b \b at Module.load (module.js:356:32)\r\n[ERROR] : \b\b \b at Function.Module._load (module.js:312:12)\r\n[ERROR] : \b\b \b at Module.require (module.js:362:17)\r\n[ERROR] : \b\b \b at require (module.js:378:17)\r\n[ERROR] : \b\b \b at Object. (/usr/local/lib/node_modules/alloy/bin/alloy:3:1)\r\n[ERROR] : \b\b \b at Module._compile (module.js:449:26)\r\n[ERROR] : \b\b \b at Object.Module._extensions..js (module.js:467:10)\r\n[ERROR] : \b\b \b at Module.load (module.js:356:32)\r\n[ERROR] : \b\b \b at Function.Module._load (module.js:312:12)\r\n[ERROR] : \b\b \b at Module.runMain (module.js:492:10)\r\n[ERROR] : \b\b \b at process.startup.processNextTick.process._tickCallback (node.js:244:9)\r\n[ERROR] : \b\b \bAlloy compiler failed\r\n\r\n", "attachment": [], "flagged": false, "summary": "Special Characters in Attribute Value of Widgets", "creator": { "name": "jonhargett", "key": "jonhargett", "displayName": "Jon Hargett", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "jonhargett", "key": "jonhargett", "displayName": "Jon Hargett", "active": true, "timeZone": "America/Chicago" }, "environment": "Mac OS X\r\nTitanium SDK Version: 3.0.0\r\nMobile SDK Modules API Version:2\r\nMobile SDK Timestamp: 12/12/12 18:49\r\nMobile SDK Build Number: a5894b3\r\nTitanium CLI Version: 3.0.23\r\nTitanium CLI Enabled: true\r\n\r\nAlloy Version: 0.3.6", "comment": { "comments": [ { "id": "241431", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm not following the description here for what causes this. Can you please supply a test case that will cause this scenario to occur?", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-08T22:48:12.000+0000", "updated": "2013-03-08T22:48:12.000+0000" }, { "id": "288744", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this issue since we can't reproduce it using the TISDK 3.2 and latest Alloy. A sample code (https://github.com/csemrm/Push-Notifications) has been posted to illustrate this. If you continue to get error, please post us your test code.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-19T00:40:44.000+0000", "updated": "2014-01-19T00:40:44.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }