From 6cb3a40cc22902e4c402ed7235e2bd4879ac857c Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Wed, 29 Oct 2025 15:30:59 +0700 Subject: [PATCH] Filter wrong domain from traces (#10165) Signed-off-by: Andrey Sobolev --- pods/server/src/rpc.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pods/server/src/rpc.ts b/pods/server/src/rpc.ts index fb86ecbab9..adc2b73452 100644 --- a/pods/server/src/rpc.ts +++ b/pods/server/src/rpc.ts @@ -243,6 +243,15 @@ export function registerRPC (app: Express, sessions: SessionManager, ctx: Measur options.limit = parseInt(req.query.limit as string) } + const domain = ctx.pipeline.context.hierarchy.findDomain(_class) ?? '' + if (domain === '') { + sendError(res, 404, { + message: 'Failed to execute operation', + error: 'Invalid class name is passed. Failed to findAll.' + }) + return + } + const result = await session.findAllRaw(ctx, _class, query, options) await sendJson(req, res, result, rateLimitToHeaders(rateLimit)) })