You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a direct duplicate of #3589, but I'd like to elaborate on why this feature is important to have.
I'm using Firebase Storage, and disallowing list or listAll in security rules. Authorized clients can call a cloud function with a list of files to retain, and the cloud function deletes everything in that path, except the retain list.
Currently, there's no way to test this in the emulator, since admin.storage().bucket(...).getFiles() currently returns []. I've already verified that the files exist, and that I can delete them or update their metadata using the admin API, as it states in the docs here.
"Using the Admin SDK, only uploading files, downloading files, and modifying file metadata are supported. Other functionality provided by Google Cloud Storage client libraries is not yet available."
Listing files in cloud functions using the admin SDK is a crucial component of my security, and currently this limitation makes it impossible to test on the emulator.
While this is a feature request in a bug report's clothing, I'm posting it as such because I think returning an empty array as response to getFiles() is misleading and took me a long time to nail down as a limitation of the emulator. :) Until this feature is made available, it would be nice to throw an unimplemented error message or something similar.
I'm on MacOS, firebase-admin 9.11.1, and firebase-tools 9.18.0.
The text was updated successfully, but these errors were encountered:
While this is a feature request in a bug report's clothing, I'm posting it as such because I think returning an empty array as response to getFiles() is misleading and took me a long time to nail down as a limitation of the emulator. :) Until this feature is made available, it would be nice to throw an unimplemented error message or something similar.
Same thing happened to me, I spent a lot time thinking I was doing something wrong 😭
Even more confusing, it works when you use the prefix option?? Which made me even more convinced that I was doing something wrong.
This is a direct duplicate of #3589, but I'd like to elaborate on why this feature is important to have.
I'm using Firebase Storage, and disallowing
list
orlistAll
in security rules. Authorized clients can call a cloud function with a list of files to retain, and the cloud function deletes everything in that path, except the retain list.Currently, there's no way to test this in the emulator, since
admin.storage().bucket(...).getFiles()
currently returns[]
. I've already verified that the files exist, and that I can delete them or update their metadata using the admin API, as it states in the docs here.Listing files in cloud functions using the admin SDK is a crucial component of my security, and currently this limitation makes it impossible to test on the emulator.
While this is a feature request in a bug report's clothing, I'm posting it as such because I think returning an empty array as response to
getFiles()
is misleading and took me a long time to nail down as a limitation of the emulator. :) Until this feature is made available, it would be nice to throw an unimplemented error message or something similar.I'm on MacOS, firebase-admin 9.11.1, and firebase-tools 9.18.0.
The text was updated successfully, but these errors were encountered: