{ "id": "135345", "key": "TIMOB-17562", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-09-02T22:31:16.000+0000", "created": "2014-08-26T18:28:00.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": "40819", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "133795", "key": "TIMOB-17406", "fields": { "summary": "iOS8: KitchenSink - Mashups > YQL, crashes on launching", "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" } }, "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": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-14T19:50:01.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3. Issue\r\n\r\nWhen calling a query to get location using YQL the app crashes with Titanium SDK 3.3.0 while using SDK 3.2.3 is working fine, im attaching the Crash log (crash.txt) we obtain from device Exception Type: EXC_CRASH (SIGABRT), when we run the test case in the iOS Simulator we receive this:\r\n\r\n{code}\r\n[ERROR] : Assertion failed: (self.method != nil), function -[APSHTTPRequest send], file /Users/vduggal/ForkedRepos/APSHTTPClient/APSHTTPClient/APSHTTPRequest.m, line 66.\r\n{code}\r\n\r\nh3. Steps to repro\r\n\r\n1. Run the test case \r\n\r\nExpected Results:\r\nAn alert with the results from the YQL query will prompt\r\n\r\nActual Results:\r\nThe app crashes during the query\r\n\r\nh3. Test case\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin.add(label1);\r\n\t\r\nTi.Geolocation.purpose = \"test\";\r\nTitanium.Geolocation.addEventListener('location', locationCallback);\t\r\n\r\nfunction locationCallback(evtLocation){\r\n\t\tTitanium.Geolocation.removeEventListener('location', locationCallback);\r\n\t\tvar mylongitude = evtLocation.coords.longitude;\r\n\t\tTi.API.info(\"mylongitude \"+mylongitude);\r\n\t\tvar mylatitude = evtLocation.coords.latitude;\r\n\t\tTi.API.info(\"mylatitude \"+mylatitude);\r\n\t\t\r\n\t\tvar query = 'select * from yahoo.maps.findLocation where q=\"' + mylatitude + ',' + mylongitude + '\" and gflags=\"R\"';\r\n\r\n\t\tTi.Yahoo.yql(query, function(e) {\r\n\t\t\t\talert(e);\r\n\t\t\t});\r\n\t\r\n}\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "50788", "filename": "crash.txt", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-08-26T18:28:00.000+0000", "size": 50498, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: YQL crashing app on query", "creator": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.3.0.GA\r\niOS: 7", "comment": { "comments": [ { "id": "321508", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ssekhri] Please see if you can reproduce with 3.3.0 SDK and 3.4.0 SDK.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-03T04:17:07.000+0000", "updated": "2014-09-03T04:17:07.000+0000" }, { "id": "321526", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Following are the observation while testing using the test case mentioned in the description above and following environment:\r\nSDK: 3.4.0.v20140829184521, 3.3.0.GA, 3.2.3.GA\r\nStudio: 3.4.0.201408291834\r\nCLI: 3.4.0-dev\r\nXcode: Xcode 6 Beta7, Xcode5.1.1\r\nDevices: iPhone4 (v7.1), iPad Gen4 (v8.0 beta5)\r\n\r\nFor SDK 3.2.3.GA, the app runs successfully on both the devices and an alert is given.\r\n\r\nFor SDK 3.3.0.GA, the app crashed on both the devices. The crash logs are similar to the one mentioned above.\r\n\r\nFor SDK 3.4.0.v20140829184521:\r\nOn iPhone 4 (v7.1) the app runs successfully.\r\nOn iPad Gen4 (v8.0 beta5), the app does not crash but no alert is shown. There is also no alert for allow/deny to authorise the app to use location services (which comes in all other scenarios that ran successfully). The console log shows a message like:\r\n\": ERROR: com.appc.test17562 is depending on legacy on-demand authorization, which is not supported for new apps\"", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-03T07:18:16.000+0000", "updated": "2014-09-03T07:18:16.000+0000" }, { "id": "412184", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T19:50:01.000+0000", "updated": "2017-03-14T19:50:01.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }