-
Notifications
You must be signed in to change notification settings - Fork 976
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
Content-Disposition Header Error with Non-Standard Whitespace in Filenames in Storage Emulator #6834
Comments
Hey @peteshilling, thanks for the detailed report and for sharing your observations. I was able to reproduce this issue. I’ll notify our engineering team about this so they can take a look. |
Thank you, @aalej. It's one of those bugs that isn't a big deal once you know what is happening (just avoid using screenshot files when testing), but at first it looked like a much bigger issue and took some time to narrow down. |
Im having the same issue, except its happening when i
|
Seeing the exact same thing. Any update on this bug @aalej ? Firebase-tools version |
I'm seeing this issue when the client app attempts to download images stored using Firebase Storage while using the emulator. |
I can confirm that. Any news if that gets resolved? |
Hey @kylefoley, sorry to hear you’re still encountering this issue and thanks for following up on this. I tried uploading and viewing a file named "Screenshot 2024-06-23 at 8.35.19 AM.png" on the storage emulator, but no errors were raised. Currently using v13.11.4 as well. I think I may have missed something here, could you provide us with details on how you encountered the issue? Was the error raised when viewing the file via the UI Emulator? |
Absolutely, sorry I should have added this to start. I'm locally running an angular app pointed to emulator cloud functions. When I call This cloud function performs just fine when deployed. Let me know if you need any more debug information. |
Apologies for the delayed response here. I created this repo to try and replicate the setup you mentioned. It has a Cloud Function that has an At the moment, I’m still unable to reproduce the issue. Any chance you could give additional snippets of your functions code? |
[REQUIRED] Environment info
firebase-tools: 13.4.0
Platform: macOS 14.2.1, M2
[REQUIRED] Test case
This can be reproduced in the emulator UI tool itself without any additional code.
[REQUIRED] Steps to reproduce
firebase emulators:start
[REQUIRED] Expected behavior
You should be able to view a preview of the uploaded image.
[REQUIRED] Actual behavior
After I select the image file the preview image in the right side panel shows a broken image and the emulators crash.
Error log shows this
Upon investigating, it looks like adding the filename to the Content-Disposition header in this commit caused the bug to start occurring.
It took me a while to realize there is something about the automated screenshot filenames that is causing the issue, but as best as I can tell, that's what it is.
The text was updated successfully, but these errors were encountered: