From dba8759f54bd08abd5523b0aeaabb4255cc78850 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Wed, 29 Oct 2025 13:32:53 +0700 Subject: [PATCH 1/2] Filter wrong domain from traces Signed-off-by: Andrey Sobolev --- pods/server/src/rpc.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pods/server/src/rpc.ts b/pods/server/src/rpc.ts index fb86ecbab93..33dceac6c17 100644 --- a/pods/server/src/rpc.ts +++ b/pods/server/src/rpc.ts @@ -243,6 +243,12 @@ 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)) }) From a62b760f5a290c9466ba2c49cb79338849f066c4 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Wed, 29 Oct 2025 14:06:18 +0700 Subject: [PATCH 2/2] Fix formatting Signed-off-by: Andrey Sobolev --- pods/server/src/rpc.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pods/server/src/rpc.ts b/pods/server/src/rpc.ts index 33dceac6c17..adc2b734526 100644 --- a/pods/server/src/rpc.ts +++ b/pods/server/src/rpc.ts @@ -245,7 +245,10 @@ export function registerRPC (app: Express, sessions: SessionManager, ctx: Measur 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.' }) + sendError(res, 404, { + message: 'Failed to execute operation', + error: 'Invalid class name is passed. Failed to findAll.' + }) return }