Bug 2082666

Summary: [cee/sd][RGW] Bucket notification: http endpoints with one trailing slash in the push-endpoint URL failed to create topic
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Kritik Sachdeva <ksachdev>
Component: RGWAssignee: Kalpesh Pandya <kapandya>
Status: CLOSED ERRATA QA Contact: Hemanth Sai <hmaheswa>
Severity: medium Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 4.2CC: akraj, cbodley, ceph-eng-bugs, hmaheswa, kapandya, kbader, kdreyer, kkeithle, mbenjamin, mmuench
Target Milestone: ---Keywords: Bugfix, TestOnly
Target Release: 6.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
.Topic creation is now allowed with or without trailing slash Previously, http endpoints with one trailing slash in the push-endpoint URL, failed to create a topic. With this fix, topic creation is allowed with or without trailing slash and it creates successfully.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-15 09:15:29 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: 2192813    

Description Kritik Sachdeva 2022-05-06 17:23:24 UTC
Description of problem:
For bucket notification, while creating the topic for the bucket using the aws utility with the push-endpoint URL for "http" endpoint containing the trailing "/" at the end is failed to create the topic.

However, it is working fine if the topic is created without the trailing "/" in the push-endpoint URL.

There is an upstream tracker...[1] for this issue which is fixed in quincy and currently in progress for backport in pacific version. So can we have timeline that when the above fix would be available in the downstream and in which version ?

[1] https://tracker.ceph.com/issues/52738

Version-Release number of selected component (if applicable): RHCS 4.2


Steps to Reproduce:
1. Deploy the RHCS 4.2 cluster with RGW deployed & pubsub,and notification apis enabled
2. Create a new user to create topic and bucket
3. Deploy a simple http server using python http module for notification
4. Create the topic using the below commands.
~~~
$ aws --endpoint-url http://10.74.253.113:8080 sns create-topic --name=mybucket      --attributes='{"push-endpoint": "http://localhost:8900"}'   ## Topic created successfully

$ aws --endpoint-url http://10.74.253.113:8080 sns create-topic --name=mybucket      --attributes='{"push-endpoint": "http://localhost:8900/"}'  ## Failed to create topic
~~~

Actual results:
- When the push-endpoint HTTP URL contains a trailing "/" at the end (ex: http://localhost:8900/ ), topic creation failed

Expected results:
- When the push-endpoint HTTP URL contains a trailing "/" at the end of the push-endpoint URL, topic should be created

Comment 15 errata-xmlrpc 2023-06-15 09:15:29 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 6.1 security and bug fix update), 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:3623

Comment 16 Red Hat Bugzilla 2023-10-14 04:25:19 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days