{ "id": "135869", "key": "AC-1658", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-09-15T06:57:58.000+0000", "created": "2014-08-28T23:10:14.000+0000", "labels": [ "TCSupportTriage", "api" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:38:08.000+0000", "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" } }, "components": [], "description": "h4. Problem Description \r\nWhen using externalAccountLogin and supplying 'first_name', 'last_name' capitalisation is removed, and those strings stored in all lower-case. Capitalisation is preserved in fields such as 'token' and custom_fields. \r\n\r\n\r\nh5. TEST CODE:\r\n\r\napp.js\r\n{code} \r\nvar Cloud = require('ti.cloud');\r\nvar fb = require('facebook');\r\nfb.appid = \"FB_App_ID\";\r\nfb.permissions = ['publish_stream', 'read_stream'];\r\n \r\nvar win = Ti.UI.createWindow({\r\n\ttitle : \"ACS Social Integrations\"\r\n});\r\n \r\nvar fbSignupBtn = Ti.UI.createButton({\r\n\ttitle : \"Login with Facebook\",\r\n\twidth : 160,\r\n\ttop : 50\r\n});\r\nwin.add(fbSignupBtn);\r\n \r\nfbSignupBtn.addEventListener('click', function() {\r\n\tif (!fb.loggedIn) {\r\n\t\tfb.authorize();\r\n\t}\r\n});\r\n \r\n\r\nfb.addEventListener('login', function(e) {\r\n\tif (e.success) {\r\n\t\tCloud.SocialIntegrations.externalAccountLogin({\r\n\t\t\ttype : 'facebook',\r\n\t\t\ttoken : fb.accessToken\r\n\t\t}, function(e) {\r\n\t\t\tif (e.success) {\r\n\t\t\t\tvar user = e.users[0];\r\n\t\t\t\tTi.API.info('User = ' + JSON.stringify(user));\r\n\t\t\t\tTi.App.Properties.setString('currentUserId', user.id);\r\n\t\t\t\talert('Success: ' + 'id: ' + user.id + '\\\\n' + 'first name: ' + user.first_name + '\\\\n' + 'last name: ' + user.last_name);\r\n\t\t\t} else {\r\n\t\t\t\talert('Error: ' + ((e.error && e.message) || JSON.stringify(e)));\r\n\t\t\t}\r\n\t\t});\r\n\t} else if (e.error) {\r\n\t\talert(\"Error = \" + e.error);\r\n\t} else if (e.cancelled) {\r\n\t\talert(\"canceld\");\r\n\t}\r\n});\r\n \r\nwin.open();\r\n{code}\r\n \r\nh5. STEPS TO TEST:\r\n\r\n- Create a simple project.\r\n- Update app.js with test code\r\n- Add facebook and ti.cloud module\r\n- Enable cloud service\r\n- Run on android device/emulator\r\n \r\nh5. Actual Results\r\nThe fields lost the capitalization. \r\n", "attachment": [], "flagged": false, "summary": "ACS externalAccountLogin - removes capitalisation, and stores Strings all lower-case", "creator": { "name": "brianjd", "key": "brianjd", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "brianjd", "key": "brianjd", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "324672", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-19T07:46:15.000+0000", "updated": "2014-09-19T07:46:15.000+0000" }, { "id": "332657", "author": { "name": "brianjd", "key": "brianjd", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Mauro,\r\n\r\nIs there any update on this? I'm unable to view that status on the Cloud-ticket due to insufficient permissions.\r\n\r\nThanks", "updateAuthor": { "name": "brianjd", "key": "brianjd", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-18T04:25:34.000+0000", "updated": "2014-11-18T04:25:34.000+0000" }, { "id": "363906", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is an existing bug and we plan to fix it in future releases.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-15T06:57:58.000+0000", "updated": "2015-09-15T06:57:58.000+0000" }, { "id": "363987", "author": { "name": "brianjd", "key": "brianjd", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Shak\r\n\r\nWhat is the existing ticket number? This ticket has been open for over a year, been assigned to multiple people, and only now being noticed as duplicate?", "updateAuthor": { "name": "brianjd", "key": "brianjd", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-15T18:19:19.000+0000", "updated": "2015-09-15T18:19:19.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }