Fixes: https://tracker.ceph.com/issues/53725
Signed-off-by: caolei <halei15848934852@163.com>
return 0;
}
+static string key_type_to_str(int key_type) {
+ switch (key_type) {
+ case KEY_TYPE_SWIFT:
+ return "swift";
+ break;
+
+ default:
+ return "s3";
+ break;
+ }
+}
+
static bool char_is_unreserved_url(char c)
{
if (isalnum(c))
map<std::string, RGWAccessKey> *keys_map;
if (!op_state.has_existing_key()) {
- set_err_msg(err_msg, "unable to find access key");
+ set_err_msg(err_msg, "unable to find access key, with key type: " +
+ key_type_to_str(key_type));
return -ERR_INVALID_ACCESS_KEY;
}