Project: appceleratorstudio
Issue TISTUD-3359: ACS: duplicate guid does not generate accurate error
ACS: duplicate guid does not generate accurate error. Current UI Error (& see screenshot): {code} java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt Server returned HTTP response code: 400 for URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt {code} Studio Log Error: {code} !ENTRY com.appcelerator.titanium.core 1 0 2013-01-29 22:22:11.235 !MESSAGE (Build 3.0.2.201301281948) [INFO] com.appcelerator.titanium.core/debug/api ACS Register App API Request: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt, parameters description=not+specified&name=p2&ti_guid=8a582c80-a1b3-4816-a616-e3cf55ab2fe8&suffix=development%2Cproduction&ti=true !ENTRY com.appcelerator.titanium.ui.ide 4 0 2013-01-29 22:22:11.277 !MESSAGE (Build 3.0.2.201301281948) [ERROR] Failed to register app for ACS !STACK 0 java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436) sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) com.appcelerator.titanium.core.acs.ACSManager.registerApp(ACSManager.java:410) com.appcelerator.titanium.core.acs.ACSManager.registerApp(ACSManager.java:362) com.appcelerator.titanium.ui.ide.tiappEditor.TiAppCloudSection$2$1.run(TiAppCloudSection.java:243) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code} Steps to Reproduce: 1. Create TiProject1 with ACS enabled. 2. Copy GUID from TiProject1 tiapp.xml. 3. Create TiProject2 w/o ACS enabled. 4. Paste GUID into TiProject2 tiapp.xml. 5. Enable TiProject2 ACS via TiApp Editor Overview. Actual Result: Meaningless error. Expected Result: Duplicate GUID error.
Story points: 5