Skip to content
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

fileserver: properly handle escaped/non-ascii paths #4332

Merged
merged 3 commits into from
Sep 16, 2021
Merged

Conversation

mohammed90
Copy link
Member

I might add integration test for those non-ascii file names. Thoughts?

Closes #4329

@mohammed90 mohammed90 added the bug 🐞 Something isn't working label Sep 4, 2021
@mohammed90
Copy link
Member Author

Windows fails because the colon : on NTFS filesystem creates data streams and not typically allowed in file names. I'll work around that.

@francislavoie francislavoie added this to the v2.4.6 milestone Sep 4, 2021
@francislavoie francislavoie added the under review 🧐 Review is pending before merging label Sep 6, 2021
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, I like the implementation, seems to do the right things at the right places, and the tests look good too.

If we're feeling good about this, feel free to merge it. 👍

I might add integration test for those non-ascii file names. Thoughts?

If you think it would be helpful, sure, but I think the unit tests are a great start.

Copy link
Member

@francislavoie francislavoie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried to mentally poke holes in this, but I haven't been able to. I think it should be good. Still makes me 5% nervous but it's probably unfounded. 🤷‍♂️ Let's merge!

@mohammed90 mohammed90 merged commit 33c70f4 into master Sep 16, 2021
@mohammed90 mohammed90 deleted the issue-4329 branch September 16, 2021 20:40
@mholt mholt removed the under review 🧐 Review is pending before merging label Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

404 on filenames with accents
3 participants