-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird crash in google_storage_object_acl #10342
Comments
Upon further digging (found this: https://stackoverflow.com/questions/55635097/how-do-i-find-the-owner-of-a-google-cloud-storage-object). The object does not have an owner entity set:
I think the fix should be to check for
|
Running into the same thing, except I do have an OWNER role on the object in question. So odd |
|
Upon digging further, it appears that https://cloud.google.com/storage/docs/json_api/v1/objects/get API call didn't include Aside - I'm not sure what prompted this change |
Ok, I have a new theory - this happened with exactly 3 objects in my org. All three of which were last edited by former employees. So it seems:
|
Ok, confirmed my theory above. The patch is simple enough, I'm just not sure how to write test for it, thinking .. |
- There are some cases (one case is described in hashicorp#10342 (comment)), where `Object.owner` is missing, which leads to nil pointer dereference. Fixes hashicorp#10342
- There are some cases (one case is described in hashicorp/terraform-provider-google#10342 (comment)), where `Object.owner` is missing, which leads to nil pointer dereference. Fixes GoogleCloudPlatform#10342
* GCS object owner is optional - There are some cases (one case is described in hashicorp/terraform-provider-google#10342 (comment)), where `Object.owner` is missing, which leads to nil pointer dereference. Fixes #10342 * remove comment * skip vcr test Co-authored-by: Aniruddha Maru <[email protected]>
* GCS object owner is optional - There are some cases (one case is described in hashicorp/terraform-provider-google#10342 (comment)), where `Object.owner` is missing, which leads to nil pointer dereference. Fixes #10342 * remove comment * skip vcr test Co-authored-by: Aniruddha Maru <[email protected]> Signed-off-by: Modular Magician <[email protected]>
* GCS object owner is optional - There are some cases (one case is described in hashicorp#10342 (comment)), where `Object.owner` is missing, which leads to nil pointer dereference. Fixes hashicorp#10342 * remove comment * skip vcr test Co-authored-by: Aniruddha Maru <[email protected]> Signed-off-by: Modular Magician <[email protected]>
* GCS object owner is optional - There are some cases (one case is described in hashicorp/terraform-provider-google#10342 (comment)), where `Object.owner` is missing, which leads to nil pointer dereference. Fixes #10342 * remove comment * skip vcr test Co-authored-by: Aniruddha Maru <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Aniruddha Maru <[email protected]>
* GCS object owner is optional - There are some cases (one case is described in hashicorp/terraform-provider-google#10342 (comment)), where `Object.owner` is missing, which leads to nil pointer dereference. Fixes #10342 * remove comment * skip vcr test Co-authored-by: Aniruddha Maru <[email protected]> Signed-off-by: Modular Magician <[email protected]>
* GCS object owner is optional - There are some cases (one case is described in hashicorp/terraform-provider-google#10342 (comment)), where `Object.owner` is missing, which leads to nil pointer dereference. Fixes #10342 * remove comment * skip vcr test Co-authored-by: Aniruddha Maru <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Aniruddha Maru <[email protected]>
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
google_storage_object_acl
Terraform Configuration Files
We have the following terraform code and we recently just started seeing a crash on
terraform plan
. This was working before (planning/applying), so I'm not sure why it suddenly started crashing. We are on the latest version of the terraform provider.This is the output from the crash:
The Only strange thing I'm seeing in the logs is
I'm not sure if the URI is missing the bucket name.
Anyways, I have the terraform debug log here: https://gist.github.com/marcb1/977596ca35349e3e56ffc02eba29dea3#file-terraform-crash-debug-log
The text was updated successfully, but these errors were encountered: