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
rgw: filter prefix should be used when generating expiration header #30584
Conversation
@cbodley pls help review this,thanks~ |
src/rgw/rgw_lc.cc
Outdated
auto& filter = rule.get_filter(); | ||
auto& prefix = filter.has_prefix()?filter.get_prefix():rule.get_prefix(); |
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.
nit: spacing
@zhangsw can you please add a s3test case for this? |
c02da8c
to
f00be97
Compare
Test case: ceph/s3-tests#334 |
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.
I think the change is correct. I think the commit message should state, in this case, more completely what the change does. i.e., it would be helpful to mention the distinction between rule prefix and filter prefix.
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
f00be97
to
b68f860
Compare
@mattbenjamin I've updated the commit message. |
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.
lgtm
HI @zhangsw,
tl/dr: casey would like the s3-test fix before merging this, update when you can regards, |
…The rule prefix is set with old version lifecycle configure. While filter prefix is the latest version which AWS suggests users use. Fixes: https://tracker.ceph.com/issues/45144 Signed-off-by: zhang Shaowen <zhangshaowen_yewu@cmss.chinamobile.com>
b68f860
to
25dd43a
Compare
@zhangsw @theanalyst @mathslinux No backports are listed in the tracker. If backports appropriate please update the tracker. |
Signed-off-by: zhang Shaowen zhangshaowen_yewu@cmss.chinamobile.com
Tracker: https://tracker.ceph.com/issues/45144