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 — fix: KMS Bad Key error when using existing Blob context to overwrite object by athakor · Pull Request #507 · googleapis/java-storage

This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Conversation

@athakor

@athakor athakor commented Sep 14, 2020

Copy link
Copy Markdown
Contributor

Fixes #502

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
athakor added 2 commits September 14, 2020 12:22
@athakor
fix: KMS Bad Key error when using existing Blob context to overwrite …
fdf6ab7
…object
@athakor
fix: KMS Bad Key error when using existing Blob context to overwrite …
6e99da1
…object
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 14, 2020
@athakor
athakor requested review from JesseLovelace and frankyn September 14, 2020 13:27
@codecov

codecov Bot commented Sep 14, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #507 into master will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #507      +/-   ##
============================================
- Coverage     64.69%   64.68%   -0.02%     
+ Complexity      629      620       -9     
============================================
  Files            32       32              
  Lines          5249     5255       +6     
  Branches        509      511       +2     
============================================
+ Hits           3396     3399       +3     
- Misses         1694     1697       +3     
  Partials        159      159              
Impacted Files Coverage Δ Complexity Δ
...c/main/java/com/google/cloud/storage/BlobInfo.java 88.34% <ø> (ø) 94.00 <0.00> (ø)
...om/google/cloud/storage/spi/v1/HttpStorageRpc.java 1.59% <0.00%> (-0.01%) 2.00 <0.00> (ø)
...ain/java/com/google/cloud/storage/StorageImpl.java 81.31% <0.00%> (+0.06%) 138.00% <0.00%> (-9.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10cc743...f0e249f. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

frankyn
frankyn suggested changes Sep 14, 2020
View reviewed changes
Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/BlobInfo.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/java-storage API. label Sep 15, 2020
@athakor
fix: address review changes
dc36622
frankyn
frankyn reviewed Sep 15, 2020
View reviewed changes
Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

athakor added 2 commits September 16, 2020 19:12
@athakor
fix: address review changes
21bf399
@athakor
address review changes
e851fdd
frankyn
frankyn reviewed Sep 17, 2020
View reviewed changes
Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/BlobInfo.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@athakor
fix: address additional comments
be2f972
@athakor

athakor commented Sep 17, 2020

Copy link
Copy Markdown
Contributor Author

@frankyn PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

frankyn
frankyn reviewed Sep 17, 2020
View reviewed changes
Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/BlobInfo.java Outdated
Builder setKmsKeyName(String kmsKeyName) {
this.kmsKeyName = kmsKeyName;
this.kmsKeyName =
kmsKeyName != null && kmsKeyName.contains("cryptoKeyVersions") ? "" : kmsKeyName;

@frankyn frankyn Sep 17, 2020

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This change should be in the HttpStorageRpc request being sent instead.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

athakor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@athakor athakor Sep 17, 2020

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@athakor
fix: add the change inside HttpStorageRpc
f0e249f
frankyn
frankyn approved these changes Sep 17, 2020
View reviewed changes
@frankyn
frankyn merged commit 4d9c490 into googleapis:master Sep 17, 2020
gcf-merge-on-green Bot pushed a commit that referenced this pull request Sep 17, 2020
@release-please
chore: release 1.113.1 (#500)
69f0094
🤖 I have created a release \*beep\* \*boop\* 
---
### [1.113.1](https://www.github.com/googleapis/java-storage/compare/v1.113.0...v1.113.1) (2020-09-17)


### Bug Fixes

* KMS Bad Key error when using existing Blob context to overwrite object ([#507](https://www.github.com/googleapis/java-storage/issues/507)) ([4d9c490](https://www.github.com/googleapis/java-storage/commit/4d9c49027e4746ee273902694441886c2f43188d))
* When passing a sub-array (offset, length) to the Storage#create method the array is needlessly cloned  ([#506](https://www.github.com/googleapis/java-storage/issues/506)) ([9415bb7](https://www.github.com/googleapis/java-storage/commit/9415bb7bdb42d8012ca457a90070b616e6bbec19)), closes [#505](https://www.github.com/googleapis/java-storage/issues/505)


### Dependencies

* update dependency com.google.apis:google-api-services-storage to v1-rev20200814-1.30.10 ([#499](https://www.github.com/googleapis/java-storage/issues/499)) ([af91d7d](https://www.github.com/googleapis/java-storage/commit/af91d7da4117fb22992d6a860af61f72906e0aa1))


### Documentation

* update libraries-bom ([#504](https://www.github.com/googleapis/java-storage/issues/504)) ([0e58c1c](https://www.github.com/googleapis/java-storage/commit/0e58c1cb2b6a890e567b043188613021592f2bc8))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@JesseLovelace JesseLovelace Awaiting requested review from JesseLovelace
1 more reviewer
@frankyn frankyn frankyn approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: storage Issues related to the googleapis/java-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

KMS Bad Key error when using existing Blob context to overwrite object.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@athakor @frankyn
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.