Description
Issue Description
[Parse User table is not updating for just one specific user. All other users are able to update their own User attributes.]
Describe your issue in as much detail as possible.
[I have a simple code to change a user attribute from False to True. When a user clicks a button, below code is ran. The "TorF" is set to false as default, and if users click the button it will change to True. The value changes to True for all users except for just one specific user. I have verified that the user in question has a valid PFUser.current() value and is logged in properly. In other parts of the app, when a user creates a record in another class I added a "User" column to record which user created the data. The user in question is able to create a record and record shows that the user created it (PFUser.current() is tied to the record). It looks like for some reason only PFUser table is not updating properly for this user.
PFUser.current()?["TorF"] = true
PFUser.current()?.saveInBackground(block: { (success, error) in
if error != nil {
print(error)
} else {
}
})
****EDIT
I'm not sure if this helps in identifying the issue, but only this user doesn't get a "deviceToken" assigned in Installation class. The installation seems to be successful because a record is created showing "ios" and the User Pointer I attach to each installation is saved properly. Again, for all other users/devices "deviceToken" is generated and saved to each installation.
]
Steps to reproduce
Please include a detailed list of steps that reproduce the issue. Include curl commands when applicable.
[PFUser.current()?["TorF"] = true
PFUser.current()?.saveInBackground(block: { (success, error) in
if error != nil {
print(error)
} else {
}
})]
Expected Results
[TorF column updates to True for the user.]
Actual Outcome
[TorF column is not updated at all. Default "createdAt" column is not updated either, so the user is not updating his own record. Again, for all other users this works perfectly.]
Environment Setup
- Server
- parse-server version (Be specific! Don't say 'latest'.) : [2.2.22]
- Operating System: [cedar-14 Ubuntu 14.04]
- Hardware: [Heroku dyno?]
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): [Heroku]
- Database
- MongoDB version: [3.2.9]
- Storage engine: [FILL THIS OUT]
- Hardware: [FILL THIS OUT]
- Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): [mLab]
Logs/Trace
You can turn on additional logging by configuring VERBOSE=1 in your environment.
[No error recorded on Heroku logs]