-
Notifications
You must be signed in to change notification settings - Fork 927
Missing permission for Firestore with Firebase 8.0.1 #4050
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
Comments
I wanted to confirm the bug while enjoying the new emulators, so I tried different version: the bug is present on v8.0.1 but not on v8.0.0. The exact error message:
I’m using the emulator to get the Firebase SDK, so my index.html is as follows: <html>
<!-- Things here… -->
<body>
<!-- Other things here… -->
<script src="/__/firebase/8.0.1/firebase-app.js"></script>
<script src="/__/firebase/8.0.1/firebase-auth.js"></script>
<script src="/__/firebase/8.0.1/firebase-firestore.js"></script>
<script src="/__/firebase/8.0.1/firebase-storage.js"></script>
<script src="/__/firebase/8.0.1/firebase-functions.js"></script>
<!-- <script src="/__/firebase/8.0.1/firebase-analytics.js"></script> -->
<script src="/__/firebase/8.0.1/firebase-performance.js"></script>
<script src="/__/firebase/init.js"></script>
</body>
</html> |
Hi, thanks for filing this. Are you seeing this bug only when interacting with the emulators, or is it happening in production as well? |
Hi, It’s happening with the emulators and with a production release when switching from v8.0.0 to v8.0.1 |
Okay, thanks. Another question (trying to determine if this is on the Auth side or the Firestore side): if you inspect the results of |
Yes, the |
@ghivert I tried reproducing this at |
Hey @ghivert. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @ghivert if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
Exact same problem unfortunately. After creating a user and setting via Cloud Functions a custom claim, the first update fails even after the |
I can try to provide a small reproducible example, but not before next week. :( |
Same as #4175? :) |
Describe your environment
Describe the problem
I just upgraded Firebase from v7.21.0 to v8.0.1 and spotted a bug on Firestore. When creating a user, I’m creating a custom claim for the user. In my Firestore Rules, I’m using the custom claim to enable access. The first time I’m querying Firestore, I receive a
Missing permission
. After reloading the page, the exact same code loads without issue. The issue is not there on 7.21.0.Steps to reproduce:
Set a custom claim right after creating user with email and password, and then try loading a document from Firestore with the custom claim as condition.
Relevant Code:
Those are extracts from my configurations with names changed.
The text was updated successfully, but these errors were encountered: