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

Encode password for ZipFile #62774

Merged
merged 5 commits into from
Nov 2, 2022
Merged

Encode password for ZipFile #62774

merged 5 commits into from
Nov 2, 2022

Conversation

twangboy
Copy link
Contributor

@twangboy twangboy commented Sep 28, 2022

What does this PR do?

Encodes the password for the zipfile.extract function. This function expects a binary value for the password.

As a side note, if using winrar to create a password-protected zip, you must select legacy encryption when setting the password. Otherwise, zipfile cannot read it.

What issues does this PR fix or reference?

Fixes: #61422

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@twangboy twangboy requested a review from a team as a code owner September 28, 2022 19:27
@twangboy twangboy requested review from Ch3LL and removed request for a team September 28, 2022 19:27
Copy link
Contributor

@Ch3LL Ch3LL left a comment

Choose a reason for hiding this comment

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

tests and changelog?

@Ch3LL
Copy link
Contributor

Ch3LL commented Oct 13, 2022

bump @twangboy ^

@twangboy twangboy requested a review from Ch3LL November 2, 2022 15:41
@Ch3LL Ch3LL merged commit 5810903 into saltstack:master Nov 2, 2022
@twangboy twangboy deleted the fix_61422 branch March 23, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] archive.extracted and archive.unzip with password on Windows causes Python Exception Error
2 participants