Skip to content

Cannot modify user created before migration when localDatastore is enabled. #1460

@pjchavarria

Description

@pjchavarria

I'm getting:
[Error]: cannot modify user ID_HERE (Code: 206, Version: 1.12.0)
When trying to update a user that was created before migrating from parse.com to mlab.com

Testing results

  • Both parse.com and AWS are using the same mlab database now, works fine using parse.com.
  • Login a the user with email or facebook give the same error.
  • Server running both locally and deployed on AWS give the same error.
  • Only happens to already created users, newly created users don't get that error.
  • It works fine for all users if i disable localDatastore when initializing the iOS SDK
  • Deleting the Instalations and Sessions for that user don't fix the error.
  • Tested with both versions of parse-server 2.1.6 and 2.2.6.
  • User data does get edited, but server returns
    400 Bad Request {"code":206,"error":"cannot modify user ID_HERE"}

Environment Setup

Swift project
iOS SDK 1.12.0

let configuration = ParseClientConfiguration {
            $0.applicationId = Keys().parseApplicationId()
            $0.clientKey = " "
            $0.server = Keys().parseServerURL()
            $0.localDatastoreEnabled = true
        }
Parse.initializeWithConfiguration(configuration)

Parse Server

"dependencies": {
    "express": "~4.13.x",
    "kerberos": "~0.0.x",
    "kue": "^0.10.5",
    "moment": "~2.12.0",
    "parse": "~1.8.3",
    "parse-server": "~2.2.6",
    "underscore": "~1.8.3"
  },
  "scripts": {
    "start": "node index.js"
  },
  "engines": {
    "node": ">=4.3"
  }

Steps to reproduce

  1. Enable localdatastore.
  2. Edit a user that was created before migration.

Pd. ParseServer is awesome, thanks for making it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions