{ "id": "90815", "key": "TIMOB-8877", "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": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13399", "description": "Sprint 2012-11 Mobile Web", "name": "Sprint 2012-11 MW", "archived": true, "released": true, "releaseDate": "2012-06-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-11T21:47:45.000+0000", "created": "2012-04-24T13:46:21.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "acs", "mobileweb" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "17469", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "92387", "key": "MOD-746", "fields": { "summary": "Cloud: Support Firefox and Safari browsers for mobileweb", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-08-29T10:21:25.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "When I try to run a very simple example of creating a new user in the cloud, I get a failure with the \"Application Error\" Unknown Error displaying in the browser. In the browser it reports a failure on line 906 of the index.html. This is the end of a comment line. \r\nActual error\r\n\r\nA parameter or an operation is not supported by the underlying object\r\n\r\n*****************************************************************************/\r\n\r\nI have attached a project. Just click the 'Create a New User'. This causes the proble.\r\n\r\n", "attachment": [ { "id": "27362", "filename": "ACS_test1.zip", "author": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-24T13:46:21.000+0000", "size": 1557557, "mimeType": "application/zip" } ], "flagged": false, "summary": "MobileWeb: Failure in using ACS with mobile web", "creator": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "win 7, firefox 11.0 ", "comment": { "comments": [ { "id": "192444", "author": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "By the way, This works fine as a Android app.", "updateAuthor": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-24T14:34:33.000+0000", "updated": "2012-04-24T14:34:33.000+0000" }, { "id": "192533", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-24T23:44:36.000+0000", "updated": "2012-04-24T23:44:36.000+0000" }, { "id": "192602", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This particular error is fixed when TIMOB-8440 was fixed.\r\n\r\nIt's worth noting that while mobile web's code works, the api.cloud.appcelerator.com endpoint is throwing a 400 error.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-04-25T11:35:56.000+0000", "updated": "2012-04-25T11:35:56.000+0000" }, { "id": "192795", "author": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So is there a \"continuous build\" that I can use to test if mobileweb will work with ACS?", "updateAuthor": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-26T12:49:24.000+0000", "updated": "2012-04-26T12:49:24.000+0000" }, { "id": "192844", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Hi Milt, there sure is: http://builds.appcelerator.com.s3.amazonaws.com/index.html\r\n\r\nSelect \"master\" from the drop down, then pick the build at the top of the list for your platform.\r\n\r\nI tested the attached test case and it works fine for me. Remember that the user being created in this file is hard coded and it fails if you try to create the user more than once.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-04-26T16:26:20.000+0000", "updated": "2012-04-26T16:26:20.000+0000" }, { "id": "192872", "author": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So I pulled the latest build and this test app works in Chrome but not Firefox 11.\r\nThe error I still get is\r\n\r\nA parameter or an operation is not supported by the underlying object\r\n\r\n*****************************************************************************/ index.html (line 894)\r\n\r\npreviously it was failing on line 906.\r\n\r\nHave you tested it on Firefox or IE. Both cause the Application Error red screen.\r\n\r\ni will try my real app against Chrome to see if it gets passed the create user.\r\n\r\n(I did changed the username so it was creating a new user. However even if it already there it shouldn't throw the Application error screen.)\r\n\r\n", "updateAuthor": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-26T17:38:43.000+0000", "updated": "2012-04-26T17:38:43.000+0000" }, { "id": "192874", "author": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So I tried running the real app on Chrome. (This works fine as an android app). After login I get a 401 error. in the following index.html code. I will try to generate the next step for failure in chrome.\r\n\r\nThis starts in line 10444 - 10462 of index.html\r\n\r\n\"Ti/API\":function(){\r\n/* C:/Users/Milt/Documents/Workspace/ArtistEntry/build/mobileweb/titanium\\Ti/API.js */\r\n\r\ndefine([\"Ti/_/Evented\", \"Ti/_/lang\"], function(Evented, lang) {\r\n\r\n\tvar api = {};\r\n\r\n\trequire.each([\"debug\", \"error\", \"info\", \"log\", \"warn\"], function(fn) {\r\n\t\tapi[fn] = function() {\r\n\t\t\tconsole[fn](\"[\" + fn.toUpperCase() + \"] \" + lang.toArray(arguments).map(function(a) {\r\n[ERROR] undefined: 401\r\n\t\t\t\treturn require.is(a, \"Object\") ? a.hasOwnProperty(\"toString\") ? a.toString() : JSON.stringify(a) : a === null ? \"null\" : a === void 0 ? \"undefined\" : a;\r\n\t\t\t}).join(' '));\r\n\t\t};\r\n\t});\r\n\r\n\treturn lang.setObject(\"Ti.API\", Evented, api);\r\n\r\n});\r\n},\r\n\r\n\r\n\r\nThe javascript console shows\r\n\r\n[INFO] ACS Request: { url: \"users/login.json\", verb: \"POST\", secure: YES, data: {\"login\":\"test\",\"password\":\"test\"} })\r\nindex.html:10453[INFO] POST: https://api.cloud.appcelerator.com/v1/users/login.json?oauth_version=1.0&oauth_consumer_key=MVXby0rleyZqDcYUHQt0D1c00mrO7Im6&oauth_signature_method=HMAC-SHA1&oauth_nonce=xfTSS00q3seGIM4&oauth_timestamp=1335487247&oauth_signature=fKNe9yKevNJ%2FF517RO0ye7Ke6FM%3D\r\nindex.html:10453[INFO] header: {}\r\nindex.html:10453[INFO] data: {\"login\":\"test\",\"password\":\"test\",\"ti_analytics\":\"{\\\"id\\\":\\\"1267B0B1-7029-4418-99F1-5C95FE45F96B\\\",\\\"mid\\\":\\\"C222A307-BDE9-411F-BF0E-A362E70E3CA0\\\",\\\"aguid\\\":\\\"1199c296-13ad-4668-a396-72673981cd24\\\",\\\"event\\\":\\\"cloud.users.login\\\",\\\"deploytype\\\":\\\"development\\\"}\"}\r\nRefused to set unsafe header \"Accept-Encoding\"\r\nRefused to set unsafe header \"Cookie\"\r\nhttps://api.cloud.appcelerator.com/v1/users/login.json?oauth_version=1.0&oauth_consumer_key=MVXby0rleyZqDcYUHQt0D1c00mrO7Im6&oauth_signature_method=HMAC-SHA1&oauth_nonce=xfTSS00q3seGIM4&oauth_timestamp=1335487247&oauth_signature=fKNe9yKevNJ%2FF517RO0ye7Ke6FM%3DFailed to load resource: the server responded with a status of 401 (Unauthorized)\r\nindex.html:10453[ERROR] undefined: 401\r\nindex.html:12362\r\nXMLHttpRequestException\r\n", "updateAuthor": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-26T17:55:45.000+0000", "updated": "2012-04-26T17:55:45.000+0000" }, { "id": "193085", "author": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So I have a modified version of the app that again fails in Chrome when I try to query the collections. It gets a failure message of \"Can't reach host\". I was able to both create a user and login into the user using Chrome.\r\n\r\nHowever, I have different problems when trying to use Firefox. In Firefox, I get the error that I mentioned in my previous comment. I'm not sure how to attach my latest version of the app which basically tries to query for a collection. This runs properly both on my phone and in the Android Emulator. ", "updateAuthor": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-29T20:39:07.000+0000", "updated": "2012-04-29T20:39:07.000+0000" }, { "id": "193087", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening this ticket as this continues to be an issue even though the duplicate issue has been resolved.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-29T21:13:41.000+0000", "updated": "2012-04-29T21:13:41.000+0000" }, { "id": "193089", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I think this is an issue with either the modules team or the ACS team. Mobile web loads the module just fine. I propose we move this ticket over and have whoever is responsible for Ti.Cloud look into the issue further.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-04-29T21:22:17.000+0000", "updated": "2012-04-29T21:22:17.000+0000" }, { "id": "193105", "author": { "name": "jenglish", "key": "jenglish", "displayName": "Jeff English", "active": true, "timeZone": "America/Chicago" }, "body": "Please investigate", "updateAuthor": { "name": "jenglish", "key": "jenglish", "displayName": "Jeff English", "active": true, "timeZone": "America/Chicago" }, "created": "2012-04-30T05:32:19.000+0000", "updated": "2012-04-30T05:32:19.000+0000" }, { "id": "195807", "author": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I guess the question is \"Is it time to give up on ACS with mobile Web.\". Unless I am missing something this is a basic issue with the use of mobileWeb and ACS. I can log in in as a user but when asking for a collection I get the \"can't reach host\". This issue seems to have no traction eventhough it was highly touted at the release of 2.0.", "updateAuthor": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-23T12:34:08.000+0000", "updated": "2012-05-23T12:34:08.000+0000" }, { "id": "195871", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Chris - Please coordinate with Jeff E and bring a closure to this issue. ", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-23T20:39:18.000+0000", "updated": "2012-05-23T20:39:18.000+0000" }, { "id": "196199", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just want to add - we've got a customer who has now waited a month for what Milt is building, so that's why Milt asked whether we should give up and go in another direction. ", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-26T20:44:10.000+0000", "updated": "2012-05-26T20:44:10.000+0000" }, { "id": "196209", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Joe, Mitt - we are looking into these issues and some of them require an architecture change. We will fix these issues for 2.1.0 release due at the end of June.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-27T14:13:41.000+0000", "updated": "2012-05-27T14:13:41.000+0000" }, { "id": "198121", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We have resolved the issues with Mobile Web platform. There are few remaining issues with ACS CommonJS module that are being tracked in a MOD project ticket. Marking this ticket resolved as it is no longer a Mobile Web platform issue. We will have these fixes available in 2.1.0 release that due at the end of June.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-11T21:47:45.000+0000", "updated": "2012-06-11T21:47:45.000+0000" }, { "id": "199592", "author": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-21T10:43:41.000+0000", "updated": "2012-06-21T10:43:41.000+0000" }, { "id": "216811", "author": { "name": "richardjza", "key": "richardjza", "displayName": "Richard Johnson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have just added some details to TC-810 as it would appear that this issue is not fixed but the ticket has been closed. I have tested the latest 2.2.0 ti.cloud example. Mobile web is still generating \"Can't reach host\" errors in Firefox (Android mobile 14.1 and desktop 15.0 versions). I have the Atomic Web Browser on my iPhone and it works. Specifically, I am trying to call the Create User functionality.", "updateAuthor": { "name": "richardjza", "key": "richardjza", "displayName": "Richard Johnson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-29T10:21:25.000+0000", "updated": "2012-08-29T10:21:25.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }