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

If raw responses are disabled, document's 'json' field gets cached rather than the whole document #243

Closed
shb opened this issue Feb 26, 2014 · 0 comments

Comments

@shb
Copy link

shb commented Feb 26, 2014

When raw responses are disabled, and a document retrieved from the db contains a field named json, its value will overwrite that of the Response.json (which should be a reference the whole original document). Since the latter is accessed to save the document in cache (lib/cradle/database/documents.js:44):

if (! err) that.cache.save(res.id, res.json);

the result is that only that one document field will get cached rather then the whole document, breaking the application in an obscure way.

@shb shb closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
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