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
{{ message }}
Repository navigation
Emulator does not restore firebaseStorageDownloadTokens on import #3414
Run the emulators (including storage): firebase emulators:start --import data --export-on-exit
Upload a test file myfile to Storage using the Emulator UI
Call the getMyFile() function from Javascript - works as expected, can fetch the file
Ctrl+C to shut down the emulator. myfile is exported to data/
Note that data/storage_export/metadata/<bucket>/myfile.json doesn't contain anything in customMetadata or downloadTokens properties? (This seems unexpected)
Start the emulators again: firebase emulators:start --import data --export-on-exit
Call the getMyFile() function from Javascript - receive error: FirebaseError: Firebase Storage: The given file does not have any download URLs. (storage/no-download-url)
[REQUIRED] Expected behavior
Download tokens are exported and imported between emulator runs.
[REQUIRED] Actual behavior
Download tokens are not exported/imported by the storage emulator.
Activity
samtstern commentedon May 27, 2021
@harveylee thanks for the clear bug report!
xSAVIKx commentedon Jun 4, 2021
This is a showstopper for us to use the emulator in tests. It'd be great if #3444 can be merged and released sooner.