Skip to content

Conversation

@quartzmo
Copy link
Member

@quartzmo quartzmo commented Apr 24, 2020

  • Update conformance tests to use correct form for custom metadata.
  • Update conformance tests to add missing condition bucket.
  • Add missing bucket condition in SignerV4#post_object.

refs: googleapis/conformance-tests#29
refs: googleapis/conformance-tests#31

@quartzmo quartzmo self-assigned this Apr 24, 2020
@quartzmo quartzmo added the api: storage Issues related to the Cloud Storage API. label Apr 24, 2020
@quartzmo quartzmo requested a review from a team April 24, 2020 17:30
@dazuma dazuma added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 24, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 24, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 24, 2020
@quartzmo quartzmo changed the title test(storage): update conformance tests for V4 POST policies fix(storage): Add missing bucket condition in SignerV4#post_object Apr 24, 2020
Copy link
Contributor

@frankyn frankyn left a comment

Choose a reason for hiding this comment

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

LGTM!


def required_fields issuer, time
{
"bucket" => @bucket_name,
Copy link
Contributor

Choose a reason for hiding this comment

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

@quartzmo does this output a field bucket in returned fields? We may have already discussed this but double checking.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it looks like it does. I think I remember now that you wrote somewhere that it shouldn't? Should I ensure that bucket is not added to the PostObject fields in a new PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

Gotcha, yes please, could you update it to only include the name in the policy only and not return it as a field.?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, will do.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in #5803.

quartzmo added a commit to quartzmo/google-cloud-ruby that referenced this pull request Apr 29, 2020
* Ensure bucket is not returned in PostObject fields.

refs: googleapis#5702
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants