[TIMOB-17133] Android: Unable to get success alert after User creation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-11T15:50:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.3.0, Release 3.4.0 |
Components | Android |
Labels | module_acs, qe-3.3.0, qe-testadded, regression |
Reporter | Priya Agarwal |
Assignee | Allen Yeung |
Created | 2014-06-06T08:14:50.000+0000 |
Updated | 2014-07-03T04:28:08.000+0000 |
Description
ACS: Create User-> Unable to get success/error alert after User creation
Steps to reproduce:
1. Go to Users > Create User
2. Enter values into the following fields:
Username
Password
Confirm Password - same password from previous field
First Name
Last Name
Email - needs to have a valid email address, but does not need to exist e.g. a@gmail.com
3. Press Create button.
Expected:
Should get an alert that says: "Created! You are now logged in as "
Actual:
No alerts appears.
Getting the below mentioned console logs.
[INFO] : ACS Request: { url: "users/create.json", verb: "POST", data: {"username":"tester","password":"tester","password_confirmation":"tester","first_name":"tester","last_name":"qe","email":"abc@gmail.com"} })
[INFO] : POST: https://api.cloud.appcelerator.com/v1/users/create.json?key=lrJN8WNV21tJlYxIb4FwL6TYxnHYQ0nU
[INFO] : header: {}
[INFO] : data: {"username":"tester","password":"tester","password_confirmation":"tester","first_name":"tester","last_name":"qe","email":"abc@gmail.com","suppress_response_codes":"true","ti_analytics":"{\"mid\":\"4977b05a55927ad\",\"sid\":\"1b477c05-e018-489f-bebb-c26ec7326dd7\",\"app_version\":\"1.0\",\"platform\":\"android\"}"}
[ERROR] : V8Exception: Exception occurred at undefined:1: Uncaught SyntaxError: Unexpected token
But After that ,go to dashboard.appcelerator.com and find your app
Go to the Cloud tab > Manage Data > Users and you can view the user created.
Working fine for iOS.
This is a regression since working fine on 3.2.3.GA
master PR: https://github.com/appcelerator/titanium_mobile/pull/5789 3_3_X: https://github.com/appcelerator/titanium_mobile/pull/5790
Verified the fix. User is created successfully without any errors. Closing Environment: Appc Studio : 3.3.0.201406111952 Ti SDK : 3.3.0.v20140612101712 Mac OSX : 10.8.5 Alloy : 1.4.0-rc CLI - 3.3.0-rc Code Processor: 1.1.1 Nexus 5 - android 4.4.3 Ti.Cloud - 3.2.3