{"action":"opened","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1373","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1373/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1373/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1373/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-java/issues/1373","id":187344085,"number":1373,"title":"Error when updating ACL on an object","user":{"login":"volgin","id":297748,"avatar_url":"https://avatars.githubusercontent.com/u/297748?v=3","gravatar_id":"","url":"https://api.github.com/users/volgin","html_url":"https://github.com/volgin","followers_url":"https://api.github.com/users/volgin/followers","following_url":"https://api.github.com/users/volgin/following{/other_user}","gists_url":"https://api.github.com/users/volgin/gists{/gist_id}","starred_url":"https://api.github.com/users/volgin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volgin/subscriptions","organizations_url":"https://api.github.com/users/volgin/orgs","repos_url":"https://api.github.com/users/volgin/repos","events_url":"https://api.github.com/users/volgin/events{/privacy}","received_events_url":"https://api.github.com/users/volgin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-04T14:15:33Z","updated_at":"2016-11-04T14:15:33Z","closed_at":null,"body":"The following code (suggested in documentation) results in an error:\r\n\r\n```\r\nIterator<Blob> it = storage.list(COVER).iterateAll();\r\nwhile (it.hasNext()) {\r\n\r\n    Blob blob = it.next();\r\n    storage.updateAcl(blob.blobId(), Acl.of(User.ofAllUsers(), Role.READER));\r\n    // blob.updateAcl(Acl.of(User.ofAllUsers(), Role.READER));  - results in the same error\r\n}\r\n```\r\n\r\nThe error message (not very useful):\r\n\r\n> Exception in thread \"main\" com.google.cloud.storage.StorageException: Not Found\r\n> \tat com.google.cloud.storage.spi.DefaultStorageRpc.translate(DefaultStorageRpc.java:198)\r\n> \tat com.google.cloud.storage.spi.DefaultStorageRpc.patchAcl(DefaultStorageRpc.java:818)\r\n> \tat com.google.cloud.storage.StorageImpl$33.call(StorageImpl.java:827)\r\n> \tat com.google.cloud.storage.StorageImpl$33.call(StorageImpl.java:824)\r\n> \tat com.google.cloud.RetryHelper.doRetry(RetryHelper.java:179)\r\n> \tat com.google.cloud.RetryHelper.runWithRetries(RetryHelper.java:244)\r\n> \tat com.google.cloud.storage.StorageImpl.updateAcl(StorageImpl.java:824)\r\n> \tat com.rebelation.ingest.server.VerifyCoverFiles.main(VerifyCoverFiles.java:52)\r\n> Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found\r\n> {\r\n>   \"code\" : 404,\r\n>   \"errors\" : [ {\r\n>     \"domain\" : \"global\",\r\n>     \"message\" : \"Not Found\",\r\n>     \"reason\" : \"notFound\"\r\n>   } ],\r\n>   \"message\" : \"Not Found\"\r\n> }\r\n> \tat com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:146)\r\n> \tat com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)\r\n> \tat com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)\r\n> \tat com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)\r\n> \tat com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1056)\r\n> \tat com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)\r\n> \tat com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)\r\n> \tat com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)\r\n> \tat com.google.cloud.storage.spi.DefaultStorageRpc.patchAcl(DefaultStorageRpc.java:813)\r\n> \t... 6 more"}}
{"actor":{"display_login":"volgin"}}