Description
Check out this issue for an ideal bug report. The closer your issue report is to that one, the more likely we are to be able to help, and the more likely we will be to fix the issue quickly!
For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
- You've met the prerequisites.
- You're running the latest version of Parse Server.
- You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
- Parse hosted app has only legacy user sessions
- Database migration has been done to MongoDB 3.0.10 running on a AWS instance
- Local Parse-Server on Node 5.10.1, that point to the migrated databse on AWS
- iOS client, using SDK 1.12.0, that has a user already logged with the legacy user sessions, and that point to a local Parse-Server
Steps to reproduce
- Launch the iOS client
- Make it trigger a ParseQuery that don't need any specific permission to succeed => The query returns with no error and the data are OK
- Make it trigger a ParseQuery that read data and need permission to succeed, like a fetch() on the current user => The query returns code 101
- Make it trigger a ParseQuery that modify data and need permission to succeed, like a save() on the current user => The query returns code 206
The problem is that the queries doesn't return the error 209 as explained in the Session Migration Tutorial here : https://parse.com/tutorials/session-migration-tutorial
So it's impossible to handle this case to inform my users that they must log out then log in.
Additional information :
When I add "[PFUser enableRevocableSessionInBackground]" to the iOS client, no Session object is created after launching the client.