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

Fix ValueError crash in S3Boto3Storage #437

Closed
wants to merge 2 commits into from
Closed

Fix ValueError crash in S3Boto3Storage #437

wants to merge 2 commits into from

Conversation

WhyNotHugo
Copy link
Contributor

Using this storage with ManifestFilesMixin, and in some other
not-so-uncommon scenarios.

This tweak essentially retains the changes from c73680e, but fixes #382.

Using this storage with `ManifestFilesMixin`, and in some other
not-so-uncommon scenarios.

This tweak essentially retains the changes from c73680e, but fixes #382.
@WhyNotHugo
Copy link
Contributor Author

Looks like some tests require updates; looking into it.

@WhyNotHugo
Copy link
Contributor Author

Tests are failing for python 3.3, see #438 for a fix.

Copy link

@xrmx xrmx left a comment

Choose a reason for hiding this comment

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

Would be possible to add a test that will check that this does not regresses again?

@@ -446,8 +446,7 @@ def _save(self, name, content):
# even if wrapped file-like object exists. To avoid Django-specific
# logic, pass internal file-like object if `content` is `File`
# class instance.
if isinstance(content, File):
content = content.file
content.name = name
Copy link

Choose a reason for hiding this comment

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

comment does not match code anymore

@sww314 sww314 added the s3boto label Jul 11, 2018
@jschneier
Copy link
Owner

Merged #754 to fix this instead, thanks for your contribution.

@jschneier jschneier closed this Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

S3Boto3Storage raises ValueError: I/O operation on closed file.
4 participants