Title: Copy operation ignores stored object settings if content-type is null · Issue #306 · googleapis/google-cloud-java · GitHub
Open Graph Title: Copy operation ignores stored object settings if content-type is null · Issue #306 · googleapis/google-cloud-java
X Title: Copy operation ignores stored object settings if content-type is null · Issue #306 · googleapis/google-cloud-java
Description: GCS Copy (and ReWrite) operations includes copying the original blob's metadata but also provides a way to override the blob's metadata (such as content-type, contentLanguage, metadata fields). When using the apiary copy or rewrite opera...
Open Graph Description: GCS Copy (and ReWrite) operations includes copying the original blob's metadata but also provides a way to override the blob's metadata (such as content-type, contentLanguage, metadata fields). Whe...
X Description: GCS Copy (and ReWrite) operations includes copying the original blob's metadata but also provides a way to override the blob's metadata (such as content-type, contentLanguage, metadata fiel...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/306
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Copy operation ignores stored object settings if content-type is null","articleBody":"GCS Copy (and ReWrite) operations includes copying the original blob's metadata but also provides \na way to override the blob's metadata (such as content-type, contentLanguage, metadata fields).\n\nWhen using the apiary copy or rewrite operations and supplying a `StorageObject` content it is going\nto be used for blob's metadata overriding values. However, in this case content-type is required (and operation will fail if one is not provided).\n\nCurrently the implementation will silently ignore any overriding metadata if content-type is missing (as\nin that case it will not pass the `StorageObject` content).\n\nThis is unexpected and not documented.\n\nSeveral options:\n\n1) Just document this behaviour in the `Storage.CopyRequest.Builder.target` method.\n\n2) Change `Storage.CopyRequest.Builder` target settings to get either `BlobId` or `BlobInfo` (and in case of the latter also provide in the same setter `BlobTargetOption`... [and overload it with Iterable\u003cBlobTargetOption\u003e]. In this case we could either leave it with the javadoc suggestion (but only\napplies to the target that accepts `BlobInfo`) and maybe also throw `IllegalArgumentException` in such case.\n\n3) Based on [2] and instead of client side check we could change the RPC message to accept a flag to indicate if overriding the source metadata is desired.\n\n4) Probably also based on [2] and instead of client side check we could use the source metadata (by issuing a separate get request) and \"patch\" it manually.\n","author":{"url":"https://github.com/aozarov","@type":"Person","name":"aozarov"},"datePublished":"2015-10-29T01:43:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/306/google-cloud-java/issues/306"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:93344789-1ed3-39dc-0b49-6a938aa54907 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8FC:29330:9FF360:A38581:6A4DB318 |
| html-safe-nonce | 29e459aebb5feb6d65bd2bd40b1abf45b867e4c6f14838af6cc8f4dcacf2bd93 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEZDOjI5MzMwOjlGRjM2MDpBMzg1ODE6NkE0REIzMTgiLCJ2aXNpdG9yX2lkIjoiOTczMDU1ODI2NTg2MzUwMzYwIiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | a167e1981ac3bf10bc07124da50058218f0c604750efc545ed8f8aab8056c8de |
| hovercard-subject-tag | issue:113961075 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-java/306/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2994286c409b38211ea3b1b1887cd3d69bb4e7f364cc1006a3be16df0b86f23b/googleapis/google-cloud-java/issues/306 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2994286c409b38211ea3b1b1887cd3d69bb4e7f364cc1006a3be16df0b86f23b/googleapis/google-cloud-java/issues/306 |
| og:image:alt | GCS Copy (and ReWrite) operations includes copying the original blob's metadata but also provides a way to override the blob's metadata (such as content-type, contentLanguage, metadata fields). Whe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aozarov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32f7b614aca06e6bbd89842b1370df1328264f68 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width