step-up-labs / firebase-storage-dotnet

C# library for Firebase Storage
MIT License
140 stars 35 forks source link

File getting deleted even with rule auth !=null #39

Closed Manimojy closed 2 years ago

Manimojy commented 3 years ago

rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow write: if request.auth == null; allow read: if request.auth != null; allow delete: if request.auth != null; } } }

My c# code

var task = new FirebaseStorage("myapp.appspot.com") .Child("9500811661D15-1-2021T23:28:43.pdf").DeleteAsync(); task.Wait();

When I try to use GetDownloadUrlAsync() I get error as expected. I also expect the same for DeleteAsync(); But the storage file gets deleted. Why?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

Closing the issue due to inactivity. Feel free to re-open