]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: parse old rgw_obj with namespace correctly
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 13 Feb 2018 18:18:08 +0000 (10:18 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 13 Feb 2018 18:18:08 +0000 (10:18 -0800)
Fixes: http://tracker.ceph.com/issues/22982
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_common.h

index 2e11142316872909c607e79f0fd8329d2431d6c2..3270bb815cb122f0bcf4979d438d809d795fcba7 100644 (file)
@@ -2061,7 +2061,7 @@ struct rgw_obj {
           if (pos < 0) {
             throw buffer::error();
           }
-          key.name = key.name.substr(pos);
+          key.name = key.name.substr(pos + 1);
         }
       }
     } else {