Bug 2109256

Summary: Crash on malformed bucket URL
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Adam C. Emerson <aemerson>
Component: RGWAssignee: Adam C. Emerson <aemerson>
Status: CLOSED ERRATA QA Contact: Hemanth Sai <hmaheswa>
Severity: high Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 5.0CC: akraj, anarnold, cbodley, ceph-eng-bugs, cephqe-warriors, kbader, kkeithle, mbenjamin, mkasturi, tpetr, vdas, vereddy
Target Milestone: ---Flags: aemerson: needinfo-
Target Release: 5.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.10-75.el8cp Doc Type: Bug Fix
Doc Text:
.Ceph Object Gateway no longer crashes with malformed URLs Previously, a refactoring abstraction replaced a bucket value with a pointer to a bucket value that was not always initialized. This caused malformed URLs corresponding to bucket operations on no buckets resulting in Ceph Object Gateway crashing. With this fix, a check on the pointer has been implemented into the call path and Ceph Object Gateway returns a permission error, rather than crashing, if it is uninitialized.
Story Points: ---
Clone Of:
: 2118423 (view as bug list) Environment:
Last Closed: 2023-01-11 17:40:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2118423, 2126049    

Description Adam C. Emerson 2022-07-20 19:01:18 UTC
Description of problem:

Crash when attempt is made to operate on malformed bucket URL.

How reproducible:

Deterministically.

Steps to Reproduce:
1. Make a request like s3://https:///example.com/%2f..

Actual results:

Crash.

Expected results:

No crash.

Comment 33 Hemanth Sai 2023-01-05 10:32:12 UTC
*** Bug 2138921 has been marked as a duplicate of this bug. ***

Comment 35 errata-xmlrpc 2023-01-11 17:40:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 5.3 security update and Bug Fix), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:0076