-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix requester pays check#824 #832
Conversation
The error message recieved when querying for requester pays status changed to include an 'a' which caused strict matching to fail. This fixes and standardizes the error message to use the same string for both the code and the tests. Refs: googleapis#824
ad6b2e8
to
35683e1
Compare
If someone knows where that error message is generated so we could refer to it directly it would be good.... |
@lbergelson As part of this PR, can you re-enable the requester pays tests disabled in #825? |
@droazen That seems reasonable assuming they pass now. |
f1ba873
to
01dc24a
Compare
public static final String BUCKET_IS_REQUESTER_PAYS_ERROR_MESSAGE = | ||
"Bucket is a requester pays bucket but no user project provided"; |
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.
@lbergelson have you considered a simpler match string that may have a better chance of not breaking in the future?
For example, it looks like @breilly2, @jgainerdewar, and @mcovarr updated cromwell to use "requester pays bucket but no user project":
broadinstitute/cromwell#6689
Meanwhile terra-ui searches for the even more basic string "requester pays", and didn't even need to be updated with the last server-side change: https://github.com/DataBiosphere/terra-ui/blob/e34bdf0b81d7d2750787108ac06238787a363726/src/libs/ajax.js#L76
We are working with the API team to provide a more permanent solution to this issue and with a fallback to checking the error message. See: #841 |
@kshakir Yeah, I was going to reduce it to just "requester pays" but I figured the smaller the change the faster it might get merged. Those extra few characters are hard to review! |
@sydney-munro Thank you, that's great. It's a very fragile mechanism at the moment. Even fixing it so that the storage service returns a better structured error message is still a bit awkward though. The biggest remaining issue is that the call requires |
@sydney-munro Sounds good, but what's the timeline for merging the more permanent solution? If it's more than a week or so, could we possibly merge the patched error message check as a stopgap measure just to get this feature working again? Thanks! |
@lbergelson Since #841 was just merged, I think this can be closed. |
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #824 ☕️