summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ydb/core/grpc_services/rpc_yq.cpp2
-rw-r--r--ydb/core/grpc_services/service_yq.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ydb/core/grpc_services/rpc_yq.cpp b/ydb/core/grpc_services/rpc_yq.cpp
index 6fe5f868d6b..7caf7834425 100644
--- a/ydb/core/grpc_services/rpc_yq.cpp
+++ b/ydb/core/grpc_services/rpc_yq.cpp
@@ -73,7 +73,7 @@ public:
}
const TVector<TString> path = StringSplitter(scope).Split('/').SkipEmpty();
- if (path.size() != 2) {
+ if (path.size() != 2 && path.size() != 3) {
ReplyWithStatus("x-yq-scope format is invalid. Must be yandexcloud://folder_id, but got " + scope, StatusIds::BAD_REQUEST);
return;
}
diff --git a/ydb/core/grpc_services/service_yq.h b/ydb/core/grpc_services/service_yq.h
index 8a9f96cdf29..85b5a3ced80 100644
--- a/ydb/core/grpc_services/service_yq.h
+++ b/ydb/core/grpc_services/service_yq.h
@@ -34,7 +34,7 @@ public:
const TString scope = GetPeerMetaValues("x-yq-scope").GetOrElse("");
if (scope.StartsWith("yandexcloud://")) {
const TVector<TString> path = StringSplitter(scope).Split('/').SkipEmpty();
- if (path.size() == 2) {
+ if (path.size() == 2 || path.size() == 3) {
const TString& folderId = path.back();
TVector<TEvTicketParser::TEvAuthorizeTicket::TEntry> entries {{
Permissions,