{ "id": "90726", "key": "AC-3001", "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": "2013-03-18T18:51:56.000+0000", "created": "2012-04-22T15:56:45.000+0000", "labels": [ "acs", "cloud", "cloudservices", "mobileweb", "studio" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:48: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": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Have tried this with the ACS Example app distributed with the module - the app comes up in the browser and you can try operations, and you get NS_ERROR_DOM_INVALID_ACCESS_ERR from the browser when you try to login or do anything else.\r\n\r\nIf this has something to do with cross-domain issues, we asked this question at the 2.0 meetup and the engineers in the back of the room disagreed as to whether this was fixed or not in ACS and MobileWeb. So what's the story? \r\n\r\nI did try this with a cross-domain enabled Internet Explorer and got the same results so its not clear to me whether this is a cross-domain issue, especially since no ACS methods are being invoked in the simplest case. Tested with both Safari and Firefox on Mac.", "attachment": [], "flagged": false, "summary": "Mobile Web: Cannot get ACS Cloud to work", "creator": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 2.01GA2,Titanium Studio, build: 2.0.1.201204132053 on Mac Lion\r\nTested MobileWeb with Firefox & Safari on Mac and IE on Windows 7", "comment": { "comments": [ { "id": "192279", "author": { "name": "weevil", "key": "weevil", "displayName": "Kon Lovett", "active": true, "timeZone": "America/Los_Angeles" }, "body": "(From Firebug Lite in Safari) ti.cloud example app\r\nLogin:\r\n\r\n[INFO] ACS Request: { url: \"users/login.json\", verb: \"POST\", secure: YES, data: {\"login\":\"konlovett\",\"password\":\"foobar\"} })\r\n[INFO] POST: https://api.cloud.appcelerator.com/v1/users/login.json?oauth_version=1.0&oauth_consumer_key=...&oauth_signature_method=HMAC-SHA1&oauth_nonce=...&oauth_timestamp=1335210744&oauth_signature=...\r\n[INFO] header: {}\r\n[INFO] data: {\"login\":\"konlovett\",\"password\":\"foobar\",\"ti_analytics\":\"{\\\"id\\\":\\\"...\\\",\\\"mid\\\":\\\"...\\\",\\\"aguid\\\":\\\"...\\\",\\\"event\\\":\\\"cloud.users.login\\\",\\\"deploytype\\\":\\\"development\\\"}\"}\r\nPOST https://api.cloud.appcelerator.com/v1/users/login....744&oauth_signature=...\r\n200 OK\r\n409ms\t\r\n\r\nShow Current User:\r\n\r\n[INFO] ACS Request: { url: \"users/logout.json\", verb: \"GET\", secure: YES, data: {} })\r\n[INFO] GET: https://api.cloud.appcelerator.com/v1/users/logout.json?oauth_version=1.0&oauth_consumer_key=...&oauth_signature_method=HMAC-SHA1&oauth_nonce=...&oauth_timestamp=1335209493&oauth_signature=...&ti_analytics={\"id\":\"...\",\"mid\":\"...\",\"aguid\":\"...\",\"event\":\"cloud.users.logout\",\"deploytype\":\"development\"}\r\n[INFO] header: {}\r\n[INFO] data: {}\r\n[ERROR] undefined: Can't reach host\r\nGET https://api.cloud.appcelerator.com/v1/users/logout...\":\"cloud.users.logout\",\"deploytype\":\"development\"}\r\n0\r\n1041ms\t\r\nError: NETWORK_ERR: XMLHttpRequest Exception 101 {...}\r\nABORT_ERR\r\n102\r\nNETWORK_ERR\r\n101\r\ncode\r\n101\r\nmessage\r\n\"NETWORK_ERR: XMLHttpRequest Exception 101\"\r\nname\r\n\"NETWORK_ERR\"\r\n>>>", "updateAuthor": { "name": "weevil", "key": "weevil", "displayName": "Kon Lovett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-23T12:55:36.000+0000", "updated": "2012-04-23T12:55:36.000+0000" }, { "id": "192394", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is with the ti.cloud Example app that resides under commonjs/ti.cloud/2.01/example. My colleague has also tested this with a built-from-scratch app that just logs in and creates a photo collection and he gets the same results.", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-24T10:49:53.000+0000", "updated": "2012-04-24T10:49:53.000+0000" }, { "id": "213089", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Joe - it is my understanding that this is no longer an issue. Can you also confirm this?\r\n\r\nThanks", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-07T04:00:00.000+0000", "updated": "2012-08-07T04:00:00.000+0000" }, { "id": "216796", "author": { "name": "richardjza", "key": "richardjza", "displayName": "Richard Johnson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have a similar problem - it seems like it still exists (although I'm not sure if it's the exact same issue). Hope this information will help. This is a show stopper for my development.\r\n\r\nI have used the latest 2.2.0 ti.cloud example. The application works if compiled for Android and run on the emulator (Platform 2.2 API Level 8) but not if run as mobile web (Firefox 14.0.1 on PC via Run As->Mobile Web Preview in Browser, Firefox 14.0.1 on Android (LG P970 Android 2.3.4) accessing a package at www.sancreed.co.za/admin/cloud, native Android browser also fails from the same URL), BlackBerry emulator (Curve 9300, Pearl 9100, pretty much all the others). e.message is \"Can't reach host\".\r\n\r\nInterestingly the cloud services do work if I use Safari on iPhone 4 (latest version of iOS, accessing the URL above), using Chrome on the desktop (accessing the URL above) and Chrome on the iPhone 4 (accessing the URL above), \r\n\r\nWeb Console output below for Firefox on desktop - same issues for all the other problem platforms (I've replaced my keys appropriately):\r\n\r\n[18:05:45.456] OPTIONS https://api.cloud.appcelerator.com/v1/users/login.json?oauth_consumer_key=xxxxxxx [HTTP/1.1 406 Not Acceptable 2332ms]\r\n\r\n[18:05:45.446] [INFO] ACS Request: { url: \"users/login.json\", verb: \"POST\", secure: YES, data: {\"login\":\"bob\",\"password\":\"test\"} }) @ http://127.0.0.1:8020/index.html:11198\r\n\r\n[18:05:45.451] [INFO] POST: https://api.cloud.appcelerator.com/v1/users/login.json?oauth_consumer_key=yyyyyyy@ http://127.0.0.1:8020/index.html:11198\r\n\r\n[18:05:45.451] [INFO] header: {\"Authorization\":\"OAuth realm=\\\"\\\",oauth_version=\\\"1.0\\\",oauth_consumer_key=\\\"yyyyyyyy\\\",oauth_signature_method=\\\"HMAC-SHA1\\\",oauth_nonce=\\\"XMkOK1vhJT2HteQ\\\",oauth_timestamp=\\\"1346256345\\\",oauth_signature=\\\"nmZai22TbXmS8yEiPOzrotSlJpQ%3D\\\"\"} @ http://127.0.0.1:8020/index.html:11198\r\n\r\n[18:05:45.452] [INFO] data: {\"login\":\"bob\",\"password\":\"test\",\"suppress_response_codes\":\"true\",\"ti_analytics\":\"{\\\"id\\\":\\\"36E4E152-047E-4609-8DF6-DF1713A8650D\\\",\\\"mid\\\":\\\"21BE3EA5-FF35-480D-90A1-705CC1CA518A\\\",\\\"aguid\\\":\\\"13532f38-6ad5-45b8-8f3f-b2d7dbc5af84\\\",\\\"event\\\":\\\"cloud.users.login\\\",\\\"deploytype\\\":\\\"development\\\",\\\"sid\\\":\\\"5794F52C-30D6-42A4-850F-1F1ABF4EA176\\\"}\"} @ http://127.0.0.1:8020/index.html:11198\r\n\r\n[18:05:47.786] [ERROR] undefined: Can't reach host @ http://127.0.0.1:8020/index.html:11198\r\n[18:05:47.786] [ERROR] Can't reach host @ http://127.0.0.1:8020/index.html:11198\r\n[18:05:47.786] [ERROR] undefined: Can't reach host @ http://127.0.0.1:8020/index.html:11198\r\n[18:05:47.786] [ERROR] Can't reach host @ http://127.0.0.1:8020/index.html:11198", "updateAuthor": { "name": "richardjza", "key": "richardjza", "displayName": "Richard Johnson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-29T09:31:28.000+0000", "updated": "2012-08-29T09:31:49.000+0000" }, { "id": "216797", "author": { "name": "raybelisle", "key": "raybelisle", "displayName": "Ray Belisle", "active": true, "timeZone": "America/Edmonton" }, "body": "I have encountered the exact same error. Working with ACS on Chrome works (Win and Mac), on mobile browsers (Safari on Iphone/iPad) and Chrome on Android, but trying to connect with Firefox or IE gives the EXACT SAME ERRORS as the comment above. ", "updateAuthor": { "name": "raybelisle", "key": "raybelisle", "displayName": "Ray Belisle", "active": true, "timeZone": "America/Edmonton" }, "created": "2012-08-29T09:39:58.000+0000", "updated": "2012-08-29T09:39:58.000+0000" }, { "id": "217289", "author": { "name": "richardjza", "key": "richardjza", "displayName": "Richard Johnson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "One additional observation: when using the Ripple add-on to Chrome [a Blackberry emulator], which fakes the following User Agent for Blackberry phones, the ACS features work if I disable Cross Domain Proxy in Ripple's Settings. [I'm trying to get my app which uses ACS working on Blackberry and intend to use Ripple to package the Titanium app for distribution via the Blackberry app store].\r\n\r\nI haven't tested them all and I don't know if this is even relevant but several of the other user agents work (e.g. below).\r\n- Mozilla/5.0 (BlackBerry; U; BlackBerry 9100; en) AppleWebKit/534.3+ (KHTML, like Gecko) Version/6.0.0.286 Mobile Safari/534.3+\r\n- Mozilla/5.0 (BlackBerry; U; BlackBerry 9300; en) AppleWebKit/534.3+ (KHTML, like Gecko) Version/6.0.0.286 Mobile Safari/534.3+\r\n- Mozilla/5.0 (BlackBerry; U; BlackBerry 9860; en) AppleWebKit/534.1+ (KHTML, Like Gecko) Version/7.0.0.0 Mobile Safari/534.1\r\n- Mozilla/5.0 (BlackBerry; U; BlackBerry 9700; en) AppleWebKit/534.1+ (KHTML, Like Gecko) Version/6.0.0.141 Mobile Safari/534.1\r\n\r\n..and even the Nokia N8, apparently:\r\n(Symbian/3; S60/5.2 Mozilla/5.0; NokiaN8-00/10.0.000; Profile/MIDP-2.1 Configuration/CLDC-1.1) AppleWebKit/525 (KHTML, like Gecko) BrowserNG/7.2", "updateAuthor": { "name": "richardjza", "key": "richardjza", "displayName": "Richard Johnson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-01T08:02:23.000+0000", "updated": "2012-09-01T08:02:23.000+0000" }, { "id": "242718", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Should be fixed by CLOUDSRV-1368. Let us know if otherwise.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T18:51:56.000+0000", "updated": "2013-03-18T18:51:56.000+0000" }, { "id": "280943", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Closing since it's a dup. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:07:56.000+0000", "updated": "2013-11-24T22:07:56.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }