Bug 2082666 - [cee/sd][RGW] Bucket notification: http endpoints with one trailing slash in the push-endpoint URL failed to create topic
Summary: [cee/sd][RGW] Bucket notification: http endpoints with one trailing slash in ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 4.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 6.1
Assignee: Kalpesh Pandya
QA Contact: Hemanth Sai
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2192813
TreeView+ depends on / blocked
 
Reported: 2022-05-06 17:23 UTC by Kritik Sachdeva
Modified: 2023-10-14 04:25 UTC (History)
10 users (show)

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.
Clone Of:
Environment:
Last Closed: 2023-06-15 09:15:29 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-4249 0 None None None 2022-05-06 17:31:24 UTC
Red Hat Product Errata RHSA-2023:3623 0 None None None 2023-06-15 09:16:07 UTC

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


Note You need to log in before you can comment on or make changes to this bug.