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

Docs saved to CBL should not contain any "_"-prefixed properties #1490

Open
snej opened this issue Feb 27, 2018 · 0 comments
Open

Docs saved to CBL should not contain any "_"-prefixed properties #1490

snej opened this issue Feb 27, 2018 · 0 comments
Labels

Comments

@snej
Copy link

snej commented Feb 27, 2018

Don't put properties like _id, _deleted, etc. into documents. CBL 1.x would reject them as invalid data; CBL 2 treats them like any other properties, but if you use names that conflict with ones used by SG's REST API, it will cause undefined behavior when SG tries to add those properties in its JSON responses.

doc_body["_id"] = doc_id

@djpongh djpongh added the icebox label Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants