Fixes #14549
s->bucket is only initialized at the object store handler (post auth
callback). We don't want to initialize it for other cases because
it's not a real bucket, and initializing it will require going through
the authorization path for this 'bucket'.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
string key = s->info.args.get("key", &exists);
string section;
- if (!s->bucket_name.empty()) {
- section = s->bucket_name;
+ if (!s->init_state.url_bucket.empty()) {
+ section = s->init_state.url_bucket;
} else {
section = key;
key.clear();