-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
fix(gatsby-core-utils): decode uri-encode filename for remote file #35637
Conversation
This looks like something we would like to add test case for (to prevent regression in the future) |
@pieh do you think is a unit test ok? or should it be e2e? |
e2e would be most welcome (that gives highest level of confidence), but I think unit test will be enough given that https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-core-utils/src/__tests__/fetch-remote-file.js tests entire |
9c058f1
to
328acd4
Compare
@pieh added a test, but it seems some unrelated unit test is failing in the CI |
b098ac8
to
5e529c3
Compare
Fixed to handle file directory correctly in other cases @Boronare mentioned (No idea about test setup failure, I'll keep rebasing) |
daa54b7
to
80485bc
Compare
80485bc
to
b74284c
Compare
ok it now pass all tests except |
Can it be merge soon? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the long wait on this! Thanks for the PR and the tests 👍
Description
Tried decode url-encoded filename before to store remote file. So it can be served properly via generated publicURL
Related Issues
Fixes #35636