]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix GET website response error code 19489/head
authorDmitry Plyakin <dplyakin@gmail.com>
Wed, 29 Nov 2017 13:03:02 +0000 (16:03 +0300)
committerDmitry Plyakin <dplyakin@gmail.com>
Wed, 13 Dec 2017 14:43:28 +0000 (17:43 +0300)
Change NoSuchKey error code to NoSuchWebsiteConfiguration, when bucket doesn't have website configuration.

Fixes: http://tracker.ceph.com/issues/22272
Signed-off-by: Dmitry Plyakin <dplyakin@gmail.com>
(cherry picked from commit 56344f0e147e1781bb359bfde6878511b077487f)

src/rgw/rgw_op.cc

index 11fdbd4ebc3fdb95863baf710c0cd52da11a9574..4449c1633ea380c743824aac51a47b681b0d0856 100644 (file)
@@ -2119,7 +2119,7 @@ void RGWGetBucketWebsite::pre_exec()
 void RGWGetBucketWebsite::execute()
 {
   if (!s->bucket_info.has_website) {
-    op_ret = -ENOENT;
+    op_ret = -ERR_NO_SUCH_WEBSITE_CONFIGURATION;
   }
 }