{ "id": "132636", "key": "TIMOB-17276", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-07-07T03:31:46.000+0000", "created": "2014-07-06T04:20:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "supportTeam" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "38800", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "132635", "key": "MOD-1914", "fields": { "summary": "Cloud: V8Exception: Uncaught SyntaxError: Unexpected token ¬", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2014-07-07T03:31:46.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": "h4. Problem Description \r\n\r\nLogin response function doesn’t work in ACS . Always its return an error. \r\n\r\n{code}\r\n[ERROR] :V8Exception: Exception occurred at undefined:1: Uncaught SyntaxError: Unexpected token \u001f\r\n {code}\r\n\r\nBut the same code works as expected on iOS all and android GA version.\r\n\r\nAffected Version: Android 3.3.0.RC\r\n \r\nh2.Testing Environment: \r\nTitanium SDK: 3.3.0.RC,\r\nTitanium CLI: 3.3.0 –rc,\r\nAndroid SDK:4.2.2, 4,4,2\r\nOS X Version: 10.9.3,\r\nAppcelerator Studio: 3.2.3\r\n \r\nh2.Steps to reproduce:\r\n 1. Create a classic project.\r\n 2. Paste this code in app.js file.\r\n 3. Enable Cloud service.\r\n 4. At first create a user to the ACS.\r\n 4. Run this code with the testing environment.\r\n \r\n{code: title=app.js|borderStyle=solid}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'green'\r\n \r\n});\r\nvar Cloud = require('ti.cloud');\r\n \r\nfunction loginDefault() {\r\n \r\n\tCloud.Users.login({\r\n\t\tlogin : \"loginName\",\r\n\t\tpassword : 'pass'\r\n\t}, function(e) {\r\n\t\tif (e.success) {\r\n\t\t\tvar user = e.users[0];\r\n\t\t\talert('Success:\\n' + 'id: ' + user.id + '\\n' + 'sessionId: ' + Cloud.sessionId + '\\n' + 'first name: ' + user.first_name + '\\n' + 'last name: ' + user.last_name);\r\n\t\t} else {\r\n\t\t\talert('Error:\\n' + ((e.error && e.message) || JSON.stringify(e)));\r\n\t\t}\r\n\t});\r\n}\r\n \r\n// Create a Button.\r\nvar login = Ti.UI.createButton({\r\n\ttitle : 'Login',\r\n\theight : Ti.UI.SIZE,\r\n\twidth : Ti.UI.SIZE,\r\n\ttop : 100,\r\n});\r\n \r\n// Listen for click events.\r\nlogin.addEventListener('click', function() {\r\n\tloginDefault();\r\n});\r\n \r\n// Add to the parent view.\r\nwin.add(login);\r\n \r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ACS user login responses function doesn’t work.", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": null, "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }