Skip to content
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

Unable to update credential of new user #2

Open
silvinus opened this issue Jan 14, 2015 · 0 comments
Open

Unable to update credential of new user #2

silvinus opened this issue Jan 14, 2015 · 0 comments

Comments

@silvinus
Copy link

In rxinvoice application we can use the rest endpoint POST /users to create a new user. But when we try to use the endpoint POST /users/{userKey}/credentials we have a mongodb error :

com.mongodb.WriteConcernException: { "serverUsed" : "localhost/127.0.0.1:27017" , "connectionId" : 161 , "err" : "The _id field cannot be changed from {_id: ObjectId('54b3f05f5047b06a5ff2cdac')} to {_id: \"54b3f05f5047b06a5ff2cdac\"}." , "code" : 16836 , "n" : 0 , "ok" : 1.0}

and the credential was not updated.
I think it's because in UserCredentials class the attributes @objectid is missing on the userRef property.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant