Project

General

Profile

Actions

Bug #18241

closed

rgw: the Multi-Object Delete operation of S3 API wrongly handles the "Code" response element

Added by Radoslaw Zarzynski over 7 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
luminous mimic nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

According to the AWS documentation the Code element in an error response for Multi-Object Delete should be a string with values resembling codes we usually convey as rgw_http_errors::s3_code.

Code

Status code for the result of the failed delete. .

Type: String

Values: AccessDenied, InternalError

Ancestor: Error

Actually we are dumping Code as int with HTTP response number. In RGWDeleteMultiObj_ObjStore_S3::send_partial_response we have:

      s->formatter->open_object_section("Error");

      err_no = -op_ret;
      rgw_get_errno_s3(&r, err_no);

      s->formatter->dump_string("Key", key.name);
      s->formatter->dump_string("VersionId", key.instance);
      s->formatter->dump_int("Code", r.http_ret);
      s->formatter->dump_string("Message", r.s3_code);
      s->formatter->close_section();


Related issues 3 (0 open3 closed)

Copied to rgw - Backport #40135: luminous: rgw: the Multi-Object Delete operation of S3 API wrongly handles the "Code" response elementResolvedNathan CutlerActions
Copied to rgw - Backport #40136: mimic: rgw: the Multi-Object Delete operation of S3 API wrongly handles the "Code" response elementResolvedNathan CutlerActions
Copied to rgw - Backport #40137: nautilus: rgw: the Multi-Object Delete operation of S3 API wrongly handles the "Code" response elementResolvedNathan CutlerActions
Actions

Also available in: Atom PDF