]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix double slash (//) killing the gateway 35792/head
authorroot <root@cephdev.cern.ch>
Fri, 26 Jun 2020 10:44:45 +0000 (12:44 +0200)
committerroot <root@cephdev.cern.ch>
Fri, 26 Jun 2020 10:55:22 +0000 (12:55 +0200)
commit626330c504b1af8393986bd0553786c3031422cd
treee50b05a725ec00db8cc7dd6dee3e6d4f747e6139
parent16763175723115fc8dd8155c341caf2ef74f6d0a
rgw: fix double slash (//) killing the gateway

When a bucket is inialized as a static website, a curl request on the bucket with double slash kills the gateway.
The problem is on the URL handling of the subdirectory, which tries to remove the last slash of any URL, so when only / is given as a sub-directory, this results to an empty string.

Fixes: https://tracker.ceph.com/issues/41225
Signed-off-by: Theofilos Mouratidis <t.mour@cern.ch>
src/rgw/rgw_rest_s3.cc