Firestore: Firestore Permission Exception under Poor Network Conditions #17108
Labels
blocked: customer-response
Waiting for customer response, e.g. more information was requested.
platform: ios
Issues / PRs which are specifically for iOS.
plugin: cloud_firestore
Stale
Issue with no recent activity
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Database
Which platforms are affected?
iOS
Description
Bug Report:
Description of the Issue:During testing of the Network Link Conditioner on iOS under poor network conditions, we encountered a Firestore permission exception. The test aimed to observe application behavior under low-bandwidth conditions to determine the need for optimizations.
Test Setup:
Network presets used and their corresponding observed bandwidth:
Issue Observed:Under these conditions, we encountered a Firestore permission exception. The error message indicates that the caller lacks permission to execute the specified operation.
Error Logs:
Developer Notes:The issue occurs when the loading dialog is closed due to a timeout. The error was encountered three times over two hours of testing. Additionally, we verified our Firestore rules multiple times, and everything works as expected under normal network conditions.
A review of our Sentry logs (our tool for bug report) revealed that this error has been reported hundreds of occurrences. This suggests that poor network conditions might cause a failure in reading Firestore permissions correctly.
Expected Behavior:
Firestore should correctly validate permissions under all network conditions.
Reproducing the issue
Reproducibility: The issue occurs sporadically under low-bandwidth conditions.
Network Link Conditioner recommended
Firebase Core version
2.26.0
Flutter Version
3.22.2
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
No response
The text was updated successfully, but these errors were encountered: