]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix GET website response error code 19236/head
authorDmitry Plyakin <dplyakin@gmail.com>
Wed, 29 Nov 2017 13:03:02 +0000 (16:03 +0300)
committerDmitry Plyakin <dplyakin@gmail.com>
Mon, 11 Dec 2017 17:44:05 +0000 (20:44 +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>
src/rgw/rgw_op.cc

index fc305a431a229f81e8d4f35c153cc615194f1714..266cc6697f7df86613417ac30c3f5de27d7c4b43 100644 (file)
@@ -2128,7 +2128,7 @@ void RGWGetBucketWebsite::pre_exec()
 void RGWGetBucketWebsite::execute()
 {
   if (!s->bucket_info.has_website) {
-    op_ret = -ENOENT;
+    op_ret = -ERR_NO_SUCH_WEBSITE_CONFIGURATION;
   }
 }