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

[Firestore] Six unintentional documents written to database #2887

Closed
maxmoros opened this issue Jul 2, 2020 · 3 comments
Closed

[Firestore] Six unintentional documents written to database #2887

maxmoros opened this issue Jul 2, 2020 · 3 comments
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested.

Comments

@maxmoros
Copy link

maxmoros commented Jul 2, 2020

Describe the bug
Six unintentional documents have been written to new collections. Upon making a document write request, these six additional documents are attempted:
_createTime
_fieldsProto
_readTime
_ref
_serializer
_updateTime

These documents trigger my cloud function and throw errors. However, the documents do not appear in my cloud firestore database. This leads me to believe that cloud_firestore is sending a broken request and firestore removes these documents immediately after triggering the cloud function.

These names do not exist in my code, but do exist in the document.js code.
https://googleapis.dev/nodejs/firestore/latest/document.js.html

To Reproduce
Write a document to a new collection that has a cloud function console logging the document id.
Try this until these six hidden document write attempts appear.

Expected behavior
I do not expect these documents to be written. I expect only the single document I request to be written to the database.

Additional context
https://stackoverflow.com/questions/62702756/firebase-cloud-function-triggers-six-hidden-xxxxx-documents-in-new-collecti?noredirect=1#comment110886763_62702756

Flutter doctor
Run flutter doctor and paste the output below:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.19.0-4.2.pre, on Mac OS X 10.15.5 19F2096, locale en-CA)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.46.1)
[✓] Connected device (3 available)

• No issues found!

@maxmoros
Copy link
Author

maxmoros commented Jul 2, 2020

Ignore the Flutter Beta channel, I just switched that today to play with flutter web. My app is posted with the latest stable flutter version

@maxmoros maxmoros changed the title [<FIREBASE_PRODUCT>] <TITLE> [<FireStore>] <Six unintentional documents written to database : "_XXXXXXXXX"> Jul 2, 2020
@maxmoros maxmoros changed the title [<FireStore>] <Six unintentional documents written to database : "_XXXXXXXXX"> [<Firestore>] <Six unintentional documents written to database : "_XXXXXXXXX"> Jul 2, 2020
@TahaTesser
Copy link

Hi @maxmoros
Can you please provide a complete reproducible minimal code sample
Thank you

@TahaTesser TahaTesser added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Jul 3, 2020
@TahaTesser TahaTesser changed the title [<Firestore>] <Six unintentional documents written to database : "_XXXXXXXXX"> [Firestore] Six unintentional documents written to database Jul 3, 2020
@Salakar
Copy link
Member

Salakar commented Jul 10, 2020

Hey this has been fixed as part of #2582 / #2913 - pending release.

@Salakar Salakar closed this as completed Jul 10, 2020
@firebase firebase locked and limited conversation to collaborators Aug 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested.
Projects
None yet
Development

No branches or pull requests

3 participants