GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add an option for crc32/md5 client side validation for Storage.readAllBytes · Issue #353 · googleapis/google-cloud-java

Add an option for crc32/md5 client side validation for Storage.readAllBytes #353

New issue
Copy link
New issue
Copy link
Closed
Closed
Add an option for crc32/md5 client side validation for Storage.readAllBytes#353
Copy link
Assignees
garrettjonesgoogle
Labels
api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@aozarov
aozarov
opened on Nov 11, 2015
Issue body actions

From @Capstan "Read-side validation of checksums (crc32c) is a very nice-to-have".

Activity

Next
  1. aozarov
    added
    api: storageIssues related to the Cloud Storage API.
    on Nov 11, 2015
  2. mziccard commented on Nov 25, 2015

    @mziccard
    mziccard
    on Nov 25, 2015
    Contributor
    More actions

    Just to be sure: the crc32/md5 values should be user provided right? I could not find a way of getting the service's ones when downloading object's data.

  3. Capstan commented on Nov 25, 2015

    @Capstan
    Capstan
    on Nov 25, 2015
    Contributor
    More actions

    We have an internal bug filed to provide it when downloading via headers. You can also get them via object metadata lookups, but that means a second API call if you don't already have the metadata.

  4. Capstan commented on Nov 25, 2015

    @Capstan
    Capstan
    on Nov 25, 2015
    Contributor
    More actions

    (The XML API already provides these via headers; it'd be a JSON API improvement to add them.)

  5. mziccard commented on Nov 25, 2015

    @mziccard
    mziccard
    on Nov 25, 2015
    Contributor
    More actions

    @Capstan Yes I noticed that with the XML API we could access them via headers. However we would lose some other options.
    We also avoided to do "extra" metadata requests elsewhere in gcloud-java and I think we should stick to this practice.

    How to you see allowing the user to provide an explicity value for both crc32c and md5 until the JSON API adds the missing headers? Something like:

    storage.readAllBytes(BlobId blob, BlobReadOption.crc32cMatch("42"));

    When using functional blob (which contains metadata) we could instead have BlobSourceOption.crc32cMatch():

    blob.content(BlobReadOption.crc32cMatch());
  6. aozarov commented on Nov 25, 2015

    @aozarov
    aozarov
    on Nov 25, 2015
    ContributorAuthor
    More actions

    @mziccard I think we should wait with this issue until the Json API supports it.
    @Capstan is there a way for us to track it?

  7. aozarov
    added this to the This milestone has been deleted milestone on Nov 25, 2015
  8. Capstan commented on Nov 25, 2015

    @Capstan
    Capstan
    on Nov 25, 2015
    Contributor
    More actions

    @azarov I don't believe we have an external mirror of Google's internal bug tracking database. If you know otherwise, or some linked db, I'm happy to use that.

    @mziccard As for user-provided, we're not necessarily expecting users to have kept track of the hashes of their objects in a local datastore (though they well could), so this is less about specifying them as conditions and more about validating that the data you read is consistent. Bits can be flipped all the way from storage medium out to the network, even if TLS is used, and even then on the client's machine from the network buffer to the consumption point. A 200 only means the service thinks it's yielding you the right data: the final determination can only be made by the client that the checksums are in agreement with the received data.

  9. mziccard commented on Nov 26, 2015

    @mziccard
    mziccard
    on Nov 26, 2015
    Contributor
    More actions

    @Capstan I see your point. Nevertheless having the user to explicitly provide those values was a way to avoid doing an extra get metadata under the hood: the user might have already got metadata or can get them himself before downloading the object.

    As @aozarov said we should probably wait for the headers to be supported by the JSON API.

  10. aozarov
    added
    status: blockedResolving the issue is dependent on other work.
    on Nov 30, 2015
  11. garrettjonesgoogle
    added
    triaged for beta
    on Nov 23, 2016
  12. garrettjonesgoogle commented on Jan 26, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jan 26, 2017
    Contributor
    More actions

    @Capstan any update?

  13. garrettjonesgoogle
    added
    triaged for GA
    and removed
    triaged for beta
    on Jan 26, 2017
  14. shinfan
    removed this from the This milestone has been deleted milestone on May 8, 2017
  15. 11 remaining items

  16. github-actions
    added a commit that references this issue on Jul 8, 2022

    chore: add native image checks as required (#353)

    d49f406
  17. github-actions
    added a commit that references this issue on Sep 15, 2022

    deps: update dependency com.google.cloud:google-cloud-bigquery to v2.…

    4744d87
  18. github-actions
    added 2 commits that reference this issue on Oct 5, 2022

    chore(main): release 3.7.6-SNAPSHOT (#353)

    c7b0b6d

    chore(main): release 2.3.9 (#349)

    62f7888
  19. suztomo
    added a commit that references this issue on Feb 1, 2023

    chore(main): release 2.0.0 (#739)

    ea9f421
  20. meltsufin
    added a commit that references this issue on Dec 22, 2025

    chore: Update publish_javadoc.sh (#353)

    2db8bf0
  21. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore: copy README to docfx-yml dir (#353)

    1c092a7
  22. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-datastor…

    0bf87b8
  23. chingor13
    added a commit that references this issue on Feb 24, 2026

    deps: update Guava to 28.1 (#353)

    f4f05be
  24. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore: Update publish_javadoc.sh (googleapis#353)

    aa5a93e
  25. chingor13
    added a commit that references this issue on Mar 12, 2026

    deps: update Guava to 28.1 (#353)

    a6becf2
  26. suztomo
    added a commit that references this issue on Mar 23, 2026

    test(deps): update dependency junit:junit to v4.13.2 (googleapis#353)

    d504f2e
  27. suztomo
    added a commit that references this issue on Mar 30, 2026

    chore: release 0.122.5 (#353)

    12d4d07
  28. lqiu96
    added a commit that references this issue on Apr 1, 2026

    chore: release 0.122.5 (#353)

    ccd37f7
  29. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v7.0…

    0411e67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.