Project

General

Profile

Actions

Bug #48011

open

swift list bucket api by anonymous user return 404

Added by lei cao over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

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

Description

swift list bucket api by anonymous user return 404:

curl -I  -X GET http://127.0.0.1:8080/swift/v1
HTTP/1.1 404 Not Found
Content-Length: 9
X-Timestamp: 1603774294.79661
X-Account-Container-Count: 0
X-Account-Object-Count: 0
X-Account-Bytes-Used: 0
X-Account-Bytes-Used-Actual: 0
X-Trans-Id: tx000000000000000000025-005f97a756-ae7a8-cn-north-3a
X-Openstack-Request-Id: tx000000000000000000025-005f97a756-ae7a8-cn-north-3a
Accept-Ranges: bytes
Content-Type: text/plain; charset=utf-8
Date: Tue, 27 Oct 2020 04:51:34 GMT

because supports_account_metadata() return ture and object which oid=anonymous does not exist in meta pool which ns is users.uid. That causes get_attrs_by_uid return -ENOENT.

Actions

Also available in: Atom PDF