From e18c923abbf6e7bdaa3b035178418d8673bd7f41 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 12 Aug 2020 11:34:28 +0200 Subject: [PATCH] GET /v1/objects/*: handle "attrs":[] as expected ... i.e. yield no attrs and not all. refs #8167 --- lib/remote/objectqueryhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote/objectqueryhandler.cpp b/lib/remote/objectqueryhandler.cpp index 8b7313789..06d168b8a 100644 --- a/lib/remote/objectqueryhandler.cpp +++ b/lib/remote/objectqueryhandler.cpp @@ -31,7 +31,7 @@ Dictionary::Ptr ObjectQueryHandler::SerializeObjectAttrs(const Object::Ptr& obje } } - if (!isJoin && (!attrs || attrs->GetLength() == 0)) + if (!isJoin && !attrs) allAttrs = true; if (allAttrs) {