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

Refs CVE-2021-31542 -- Skipped mock AWS storage test on Windows. #14353

Merged
merged 1 commit into from May 6, 2021
Merged

Refs CVE-2021-31542 -- Skipped mock AWS storage test on Windows. #14353

merged 1 commit into from May 6, 2021

Conversation

carltongibson
Copy link
Member

The validate_file_name() sanitation introduced in
0b79eb3 correctly rejects the example file
name as containing path elements on Windows. This breaks the test introduced in
914c72b to allow path components for storages
that may allow them.

Test is skipped pending a discussed storage refactoring to support this
use-case.

@carltongibson carltongibson requested a review from felixxm May 5, 2021 18:47
@carltongibson
Copy link
Member Author

@felixxm following discussion on #14348 I think we can skip this test for the moment to at least have the CI pass.

I haven't got the energy to do it this second but I can open a ticket tomorrow with the discussion points ref a refactoring.

Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

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

@carltongibson Thanks 👍 Let's skip that for now.

The validate_file_name() sanitation introduced in
0b79eb3 correctly rejects the example
file name as containing path elements on Windows. This breaks the test
introduced in 914c72b to allow path
components for storages that may allow them.

Test is skipped pending a discussed storage refactoring to support this
use-case.
@felixxm felixxm merged commit a708f39 into django:main May 6, 2021
@carltongibson carltongibson deleted the c/fix-windows-test branch May 6, 2021 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants