{ "id": "138311", "key": "TIMOB-17878", "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": null, "resolutiondate": null, "created": "2014-10-20T21:30:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:21.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "This is a spin-off of APPTS-6299. For the TUI Travel Org (100000172), there are Android sessions that last occurred on November 20th, 2014. \r\n\r\nThe first step in the investigation is to see if the session summary and raw events contain a event that has that timestamp (to rule out that it is a bug in the PEM logic). If the data is there, then it's a possible issue with the SDK and it will be moved there for investigation.", "attachment": [ { "id": "52069", "filename": "Screen Shot 2014-10-20 at 2.31.23 PM.png", "author": { "name": "nle", "key": "nle", "displayName": "Nam Le", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-20T21:34:48.000+0000", "size": 276835, "mimeType": "image/png" } ], "flagged": false, "summary": "Apps has last session one month in the future", "creator": { "name": "nle", "key": "nle", "displayName": "Nam Le", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nle", "key": "nle", "displayName": "Nam Le", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "328687", "author": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nle] can you be a bit more specific as to when the last session was? Do you have the timestamp reported by PEM? Even better would be the query that Dashboard uses to get this timestamp. ", "updateAuthor": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-20T21:38:03.000+0000", "updated": "2014-10-20T21:38:03.000+0000" }, { "id": "328695", "author": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Eh, this should be moved to SDK. I just found a raw event here with a timestamp of March 2015.\r\n\r\n{code}\r\n{\r\n \"continent_code\": \"AS\",\r\n \"ts\": \"2015-03-24T12:40:06.405+0000\",\r\n \"area_code\": 0,\r\n \"deploytype\": \"production\",\r\n \"data\": [\r\n {\r\n \"lvalue\": 330,\r\n \"key\": \"tz\"\r\n },\r\n {\r\n \"svalue\": \"iphone\",\r\n \"key\": \"os\"\r\n },\r\n {\r\n \"svalue\": \"WIFI\",\r\n \"key\": \"nettype\"\r\n },\r\n {\r\n \"svalue\": \"production\",\r\n \"key\": \"deploytype\"\r\n },\r\n {\r\n \"svalue\": \"6.1.255\",\r\n \"key\": \"app_version\"\r\n },\r\n {\r\n \"svalue\": \"7.0.3\",\r\n \"key\": \"osver\"\r\n },\r\n {\r\n \"svalue\": \"3.2.3.GA\",\r\n \"key\": \"version\"\r\n },\r\n {\r\n \"svalue\": \"iphone\",\r\n \"key\": \"platform\"\r\n },\r\n {\r\n \"svalue\": \"iPad4,4\",\r\n \"key\": \"model\"\r\n }\r\n ],\r\n \"ver\": \"2\",\r\n \"type\": \"ti.start\",\r\n \"country_name\": \"India\",\r\n \"city\": \"\",\r\n \"id\": \"1E8AADB1-6FF9-4358-BB80-F089F04723BD\",\r\n \"region_name\": \"\",\r\n \"oid\": \"100000172\",\r\n \"event\": \"ti.start\",\r\n \"longitude\": 77,\r\n \"rdu\": null,\r\n \"sid\": \"27E02C3A-DBBB-44AB-B7D3-C096F2195636\",\r\n \"country_code\": \"IN\",\r\n \"aguid\": \"2261737c-bffd-46d3-9940-45a0362643c7\",\r\n \"ip_address\": \"59.165.251.191\",\r\n \"arrivalTime\": 1413805255327,\r\n \"region_code\": \"\",\r\n \"postal_code\": \"\",\r\n \"seq\": 0,\r\n \"latitude\": 20,\r\n \"mid\": \"1B0C4832-AF8A-4754-884F-2251AC795472\"\r\n }\r\n{code}\r\n\r\nFound via:\r\n\r\n{code}\r\ncurl -s \"http://localhost:9200/oid100000172/_search?pretty=true\" -d '{\r\n \"filter\" : {\r\n \"match_all\" : { }\r\n },\r\n \"sort\": [\r\n {\r\n \"last\": {\r\n \"order\": \"desc\"\r\n }\r\n }\r\n ],\r\n \"size\": 1\r\n}'\r\n\r\ncurl -s -i -X GET -H \"X-Auth-Token:8ef66f2a-c166-43cb-b5c8-0cfd375362be\" \"http://pem-next-rest-api.elasticbeanstalk.com:80/rest/event/id/1E8AADB1-6FF9-4358-BB80-F089F04723BD\"\r\n{code}", "updateAuthor": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-20T21:53:39.000+0000", "updated": "2014-10-20T21:57:03.000+0000" }, { "id": "328699", "author": { "name": "nle", "key": "nle", "displayName": "Nam Le", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~ingo] Can we investigate whether this is a bug with the SDK? Could it be a user error, for instance of the app user changes the date on the device to be a future date, when the SDK sends the event, it would use the device's date (which is set to the future)?", "updateAuthor": { "name": "nle", "key": "nle", "displayName": "Nam Le", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-20T22:02:40.000+0000", "updated": "2014-10-20T22:02:40.000+0000" }, { "id": "328703", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nle] It would be difficult for me to investigate without a set of steps to reproduce. Here is the code:\r\n\r\nhttps://github.com/appcelerator/aps_sdk/blob/master/ios/support/analytics/APSAnalytics/APSAnalytics.m#L460\r\n\r\nWhich references:\r\n\r\nhttps://github.com/appcelerator/aps_sdk/blob/master/ios/support/analytics/APSAnalytics/APSUtility.m#L200\r\n\r\nIt appears it uses the current date on the phone.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-20T22:11:02.000+0000", "updated": "2014-10-20T22:11:02.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }