-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User can't login becasue of ParseException related to AuthData #935
Comments
What is the rest of the response? It is cut off.. |
I'm sorry, here's the GET again. I've covered sensitive data and only removed app custom fields on the response:
|
One other difference I've found is that the response for new users have ACL returned:
And old users don't. On mongodb don't even have the _rperm and _wperm columns |
I was just about to comment on this. Nope, even testing locally didn't solve. Should I erase mongodb and migrate again to see if there's a problem with ACL fields being missed? |
You're right, I've just removed "_auth_data_facebook": null from mongodb, and when tried to access again, it did work. So, that was a case of a user that had sign up as username/password, then later had facebook account linked, and finally have facebook unlinked. So, is that a scenario covered by parse-server? |
Alright, I'm adding a fix to cleanup those null keys in login |
Great, thanks |
Do you have that on many users? Was the user like that just after the migration? |
We have an ID Verification process, so some users may link their facebook accounts to increase ID verification. But we have very few that link and then unlink. The user was like that before the migration. Haven't been updated since. |
I've checked and the JS SDK handles it properly, maybe the fix should be in the android SDK. |
…DatakeysOnLogin Fixes #935, cleans up authData null keys on login for android crash
Having the same issue here. Same environment as @weengo, also on Android. In my case my user was created on iOS but I can't get him to log on Android. I investigated the _User object and found that "_auth_data_anonymous" is being returned null. When I removed that field in mongoDB, it worked. |
Issue
Every time I try to login through username/password with a user that was already created on Parse API (before the migration to mongo), I get a ParseException of code -1: java.lang.ClassCastException: org.json.JSONObject$1 cannot be cast to java.util.Map. The debug trace points to line 340 of ParseUser.java:
Prerequisites
Steps to reproduce on Android
Log from Verbose
Here we can see that GET actually returns successfully
Possible Similar Issues
The text was updated successfully, but these errors were encountered: