Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.
This repository was archived by the owner on May 6, 2026. It is now read-only.

Checksums are validated for partial responses #362

@simonbohnen

Description

@simonbohnen

Environment details

  • OS type and version: macOS 12.5.1
  • Python version: 3.10.7
  • pip version: 22.2.2
  • google-resumable-media version: 2.4.0

Steps to reproduce

This is hard to reproduce as the live GCS doesn't seem to send checksums for partial responses.
This fake-gcs-server however includes checksums with partial responses (HTTP status 206), which seems to be allowed according to the box here.

I would suggest skipping validation when we receive a partial response.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the googleapis/google-resumable-media-python API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions