{ "id": "124814", "key": "TIMOB-16191", "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": "15821", "description": "2014 Sprint 02", "name": "2014 Sprint 02", "archived": true, "released": true, "releaseDate": "2014-01-31" }, { "id": "15822", "description": "2014 Sprint 02 Tooling", "name": "2014 Sprint 02 Tooling", "archived": true, "released": true, "releaseDate": "2014-01-31" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-01-27T07:54:35.000+0000", "created": "2014-01-15T03:25:35.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Ti.UI.DashboardView", "qe-closed-3.3.0", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-05-06T21:14:35.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "On the heels of APPTS-1213 and other SSLPeerUnverifiedExceptions, I would like to update our configuration test to also test logging in via Java as opposed to Node.js\r\n\r\nI have to believe there is something weird about the appcelerator login library or certificate.\r\n\r\nUsing the existing network proxy settings for the connection test:\r\n\r\n* Make a simple app to use the straight Java lib to log in to 360\r\n* Make a simple app using the 360 lib to log in to 360\r\n\r\nhttps://github.com/appcelerator/titanium-connection-test\r\n", "attachment": [ { "id": "45159", "filename": "dashboard-login-1.0.0.jar", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2014-01-15T16:45:26.000+0000", "size": 2635, "mimeType": "application/java-archive" } ], "flagged": false, "summary": "CLI: Add Java login test to CLI connection diagnosis tool", "creator": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "288265", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Here's a very simple JAR to try logging in against the dashboard.appcelerator.com API. It takes no arguments itself and will attempt to login using known good credentials (our unit test account).\r\n\r\nBasically you just download the file and then in it'd directory you run:\r\n{code}\r\njava -jar dashboard-login-1.0.0.jar\r\n{code}\r\n\r\nIf it worked, you'll see the response output like so:\r\n{code}\r\n{\"success\":true,\"result\":{\"success\":true,\"username\":\"unit_tests@aptana.com\",\"email\":\"unit_tests@aptana.com\",\"guid\":\"61643c9465ea8d339a3f9d6c01278f7f\",\"eula\":\"1.1\",\"org_id\":14301,\"connect.sid\":\"s:wMPa7AIxVo-qWTDBTh4ZXrtQ.d7qM+U1LB61gIAOPJ1FUJVgsdXwtBKehw58ecTfTCA0\",\"clusterType\":\"enterprise\",\"apiServer\":\"api.appcelerator.net\",\"concerto\":\"https://appctest-2.appcelerator.com/concerto\",\"touchtest\":\"http://appctest-2.appcelerator.com/concerto/touchtest\",\"acsBaseUrl\":\"https://api.cloud.appcelerator.com\",\"acsAuthBaseUrl\":\"https://secure-identity.cloud.appcelerator.com\",\"acsAppEndpoint\":\"https://api.cloud.appcelerator.com/v1/apps/create.json?ct=enterprise\",\"acsLoginEndpoint\":\"https://api.cloud.appcelerator.com/v1/admins/studio_login.json?ct=enterprise\",\"nodeACSEndpoint\":\"http://admin.cloudapp-enterprise.appcelerator.com\"}}\r\n{code}\r\n\r\n\r\nIf you need to set up a proxy you'd use standard ENV variables to do so. Here's an example with an https proxy:\r\n{code}\r\njava -Dhttps.proxyHost=www.example.com -Dhttps.proxyPort=8080 -jar dashboard-login-1.0.0.jar\r\n{code}\r\n\r\nAnd with an authenticated https proxy:\r\n{code}\r\njava -Dhttps.proxyHost=www.example.com -Dhttps.proxyPort=8080 -Dhttps.proxyUser=username -Dhttps.proxyPassword=secret -jar dashboard-login-1.0.0.jar\r\n{code}\r\n", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2014-01-15T16:45:26.000+0000", "updated": "2014-01-15T16:45:26.000+0000" }, { "id": "289770", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This has been added.", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-27T07:54:35.000+0000", "updated": "2014-01-27T07:54:35.000+0000" }, { "id": "303702", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h5. Environment\r\nMac osx 10.9.2 Mavericks\r\nAppcelerator Studio, build: 3.3.0.201405011408\r\nTitanium SDK, build: 3.3.0.v20140505115416\r\nNode.JS Version: v0.10.13\r\nNPM Version: 1.3.2\r\n acs@1.0.14\r\n alloy@1.4.0-dev\r\n npm@1.3.2\r\n titanium@3.3.0-dev\r\n titanium-code-processor@1.1.1\r\n\r\nTested [~cwilliams] command\r\n{code}\r\njava -jar dashboard-login-1.0.0.jar\r\n{code}\r\n\r\nh5. Actual result:\r\n{code}\r\nHTTP Response code: 200\r\n{\"success\":true,\"result\":{\"success\":true,\"username\":\"unit_tests@aptana.com\",\"email\":\"unit_tests@aptana.com\",\"guid\":\"61643c9465ea8d339a3f9d6c01278f7f\",\"eula\":\"1.1\",\"org_id\":14301,\"connect.sid\":\"s:U6lircyhdyW50aiXNJHbUiko.rosaL8MzQ19G8p7mQN+x7bSmTy0eVhZzOZ72KBvXLsI\",\"clusterType\":\"enterprise\",\"apiServer\":\"api.appcelerator.net\",\"concerto\":\"https://appctest-2.appcelerator.com/concerto\",\"touchtest\":\"http://appctest-2.appcelerator.com/concerto/touchtest\",\"acsBaseUrl\":\"https://api.cloud.appcelerator.com\",\"acsAuthBaseUrl\":\"https://secure-identity.cloud.appcelerator.com\",\"acsAppEndpoint\":\"https://api.cloud.appcelerator.com/v1/apps/create.json?ct=enterprise\",\"acsLoginEndpoint\":\"https://api.cloud.appcelerator.com/v1/admins/studio_login.json?ct=enterprise\",\"nodeACSEndpoint\":\"http://admin.cloudapp-enterprise.appcelerator.com\"}}\r\n{code}", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-06T20:54:11.000+0000", "updated": "2014-05-06T20:55:14.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }