Project

General

Profile

Actions

Bug #52738

closed

notifications: http endpoints with one trailing slash are considered malformed

Added by Yuval Lifshitz over 2 years ago. Updated over 1 year ago.

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

0%

Source:
Support
Tags:
easy first bug backport_processed
Backport:
pacific, octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

following command is considered as malformed URL:

aws --endpoint-url http://localhost:8000 sns create-topic --name=mytopic1 --attributes='{"push-endpoint": "http://localhost:8080/"}'

while the following are OK:
aws --endpoint-url http://localhost:8000 sns create-topic --name=mytopic1 --attributes='{"push-endpoint": "http://localhost:8080"}'
aws --endpoint-url http://localhost:8000 sns create-topic --name=mytopic1 --attributes='{"push-endpoint": "http://localhost:8080/something"}'

to fix this issue, the regular expression for the "path" in rgw_url.cc should be modified to allow for "http://localhost:8080/" as a valid URL.


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #53078: octopus: notifications: http endpoints with one trailing slash are considered malformedResolvedCory SnyderActions
Copied to rgw - Backport #53079: pacific: notifications: http endpoints with one trailing slash are considered malformedResolvedCory SnyderActions
Actions #1

Updated by Yuval Lifshitz over 2 years ago

a test case should be added to: test_rgw_url.cc

Actions #2

Updated by Yuval Lifshitz over 2 years ago

  • Assignee set to Kalpesh Pandya
Actions #3

Updated by Casey Bodley over 2 years ago

  • Status changed from New to Pending Backport
  • Pull request ID set to 43528
Actions #4

Updated by Backport Bot over 2 years ago

  • Copied to Backport #53078: octopus: notifications: http endpoints with one trailing slash are considered malformed added
Actions #5

Updated by Backport Bot over 2 years ago

  • Copied to Backport #53079: pacific: notifications: http endpoints with one trailing slash are considered malformed added
Actions #6

Updated by Backport Bot over 1 year ago

  • Tags changed from easy first bug to easy first bug backport_processed
Actions #7

Updated by Konstantin Shalygin over 1 year ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF