{ "id": "151517", "key": "AC-383", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-11-14T01:18:28.000+0000", "created": "2015-09-26T13:07:23.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-14T01:18:28.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": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "ArrowDB user created with SDK 4.1.1\r\nUpgraded to SDK 5.0.0\r\nOn calling Ti.Cloud.Users.update to update user photo object\r\n\r\nvar updateJSON = {\r\n\t password : Alloy.Globals.User.password,\r\n\t password_confirmation : Alloy.Globals.User.password, \r\n email : Alloy.Globals.User.email,\r\n photo: Alloy.Globals.myBlob,\r\n \"photo_sizes[preview]\" : \"64x64#\",\r\n\t \"photo_sync_sizes[]\" : \"preview\",\r\n};\r\n\t\t \t\r\nCloud.Users.update(updateJSON, function (e) {\r\n if (e.success) {}\r\n});\r\n\r\nError is thrown:\r\n\r\nError: Failed to upload photo:\r\nCannot serialize an object of class ActionDispatch::Http::UploadedFIle into BSON\r\n\r\nNot tested on iOS.\r\n\r\nAs a conseguence (this happen always on file upload error) User photo object become blocked. Also operating on dashboard when trying add a new photo an error is thrown: can't destroy nil", "attachment": [], "flagged": false, "summary": "SDK 5.0.0 error on Ti.Cloud.Users.update", "creator": { "name": "ipsus", "key": "ipsus", "displayName": "chris desart", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ipsus", "key": "ipsus", "displayName": "chris desart", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Win7\r\nAppc cli 5.0.1\r\nTi cli 5.0.3\r\nnode 0.10.37\r\nTi sdk 5.0.0\r\nJdk 1.6.0_26\r\nAndroid API 21\r\n\r\n\r\n", "comment": { "comments": [ { "id": "365040", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "body": "ArrowDB applications no longer create the default photo sizes. Only the original photo size is shown. To create customized photo sizes when creating or updating a photo, see the [Photo Uploading & Resizing|http://docs.appcelerator.com/arrowdb/latest/#!/guide/photosizes] guide. For User-defined photo sizes, see Photo Uploading & Resizings guide. Size can be specified as a JSON object, or using a separate parameter for each size. To specify a photo size, call \"preview\" using JSON.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-26T14:10:09.000+0000", "updated": "2015-11-14T01:18:15.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }