]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Fix for using port 443 with pre-signed urls. 10664/head
authorPritha Srivastava <prsrivas@redhat.com>
Fri, 1 Jul 2016 08:45:42 +0000 (14:15 +0530)
committerLoic Dachary <ldachary@redhat.com>
Wed, 10 Aug 2016 12:28:52 +0000 (14:28 +0200)
Fixes http://tracker.ceph.com/issues/16548

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit 44b9ed37ac659d83fbd4bb99c69da6b9dec06b8d)

src/rgw/rgw_rest_s3.cc

index 27ae9e696ab5793254221966dafe12ea14f795ba..46ffb208acdac1502e56911dee21ba2c7bc302e0 100644 (file)
@@ -3484,7 +3484,7 @@ int RGW_Auth_S3::authorize_v4(RGWRados *store, struct req_state *s)
     }
     string token_value = string(t);
     if (using_qs && (token == "host")) {
-      if (!port.empty() && port != "80") {
+      if (!port.empty() && port != "80" && port != "0") {
         token_value = token_value + ":" + port;
       } else if (!secure_port.empty() && secure_port != "443") {
         token_value = token_value + ":" + secure_port;