{ "id": "171896", "key": "AC-5795", "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": "6", "description": "", "name": "Hold" }, "resolutiondate": "2018-08-10T17:34:06.000+0000", "created": "2018-07-10T08:20:50.000+0000", "labels": [ "arrowdb" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-10T17:34:06.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": "14558", "name": "Arrow Cloud" }, { "id": "14559", "name": "ArrowDB" } ], "description": "Im using the ti.cloud module, with ArrowDB. All of a sudden, when fetching users from the development and production database - we're not receiving any \"photo\" field. We are, however, getting the \"photo_id\". And within the online platform for viewing all the data in our ArrowDB, we can see that each user has a profile picture attached to it so nothing wrong there.\r\n\r\nEverything worked up until 2 days ago. No idea what happened.\r\n\r\nSome code examples:\r\n\r\nvar ArrowDB \t= require('ti.cloud');\r\n\r\n\tthis.getUsers = function(_params, _callback)\r\n\t{\r\n\t\t_conditions = { limit: 1000 };\r\n\t\t\r\n\t\tif(_params)\r\n\t\t{\r\n\t\t\t_conditions.where = {};\r\n\t\t\t\r\n\t\t\tfor(var k in _params)\r\n\t\t\t{\r\n\t\t\t\t_conditions.where[k] = _params[k];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Fetch all users\r\n\t\tArrowDB.Users.query(_conditions, function(e)\r\n\t\t{\r\n\t\t\tif(e.success)\r\n\t\t\t{\r\n\t\t\t\t_callback(e.users);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t_callback();\r\n\t\t\t}\r\n\t\t});\t\r\n\t};\r\n\r\n// the e.users contains all the fetched users, but without the \"photo\" field.", "attachment": [], "flagged": false, "summary": "ArrowDB - Cloud.Users.query not returning \"photo\"-field", "creator": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Latest Ti 7.2 with latest iOS.", "comment": { "comments": [ { "id": "439081", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nThanks for sharing with us. Do you receive any error ? It would be great if you share the test steps to reproduce the issue.\r\n\r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2018-07-10T10:37:22.000+0000", "updated": "2018-07-10T10:37:22.000+0000" }, { "id": "439082", "author": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No, no errors. As I try to explain, it's just a default API call which are done with the code I provided above. \r\n\r\nBut just to be clear;\r\n\r\nvar ArrowDB = require('ti.cloud');\r\n\r\nArrowDB.Users.query({ limit: 1000 }, function(e)\r\n{\r\n\tconsole.log(e.users);\r\n});\r\n\r\nThose e.users doenst provide the \"photo\" field.", "updateAuthor": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-10T11:08:24.000+0000", "updated": "2018-07-10T11:08:44.000+0000" }, { "id": "439094", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, for photo, you have to call it by e.users.photo. See https://docs.appcelerator.com/arrowdb/latest/#!/api/Users-property-photo\r\n\r\nThanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-07-10T15:53:43.000+0000", "updated": "2018-07-10T15:53:43.000+0000" }, { "id": "439097", "author": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please guys, ready my issue.\r\n\r\n@Sharif, what you are referring to is exactly the bug here. There's no e.users.photo\r\n\r\nthe user.photo-field is missing.\r\n\r\nAnd just to be clear, here's my response from Users.query:\r\n\r\n\r\n\r\n[INFO] : (\r\n[INFO] : {\r\n[INFO] : admin = false;\r\n[INFO] : \"confirmed_at\" = \"2018-07-09T13:45:20+0000\";\r\n[INFO] : \"created_at\" = \"2018-07-09T13:45:20+0000\";\r\n[INFO] : \"custom_fields\" = {\r\n[INFO] : \"fb_id\" = 1xxxxxxxx0;\r\n[INFO] : online = 1;\r\n[INFO] : };\r\n[INFO] : \"external_accounts\" = (\r\n[INFO] : );\r\n[INFO] : \"first_name\" = Mathias;\r\n[INFO] : \"friend_counts\" = {\r\n[INFO] : friends = 0;\r\n[INFO] : requests = 0;\r\n[INFO] : };\r\n[INFO] : id = 5b4366f0eb0ec60221a45518;\r\n[INFO] : \"last_name\" = \"Exxxxf\";\r\n[INFO] : \"photo_id\" = 5b4366f0eb0ec60221a45519;\r\n[INFO] : stats = {\r\n[INFO] : photos = {\r\n[INFO] : \"total_count\" = 0;\r\n[INFO] : };\r\n[INFO] : storage = {\r\n[INFO] : used = 0;\r\n[INFO] : };\r\n[INFO] : };\r\n[INFO] : \"updated_at\" = \"2018-07-10T16:32:53+0000\";\r\n[INFO] : username = \"fb_1xxxxxxxx1\";\r\n[INFO] : }\r\n[INFO] : )", "updateAuthor": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-10T16:29:29.000+0000", "updated": "2018-07-10T16:33:56.000+0000" }, { "id": "439098", "author": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This was just the wildest test I just did. I added: \"response_json_depth: 2\" to the sent parameters to Users.query.\r\n\r\nE.g: Users.query({ limit: 1000, response_json_depth: 2 });\r\n\r\nThis made it work. This should definitely be added to the documentation, I still think it's a bug..", "updateAuthor": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-10T16:40:38.000+0000", "updated": "2018-07-10T16:40:38.000+0000" }, { "id": "440573", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nAre you experiencing the issue now? Please let us know if you need more help on this.\r\n\r\nThanks", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2018-08-08T08:10:02.000+0000", "updated": "2018-08-08T08:10:02.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }