Contract-rollback-guard checkte non-existerende enum-waarde 'ACTIVE' #128
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jesse-a/OpenCRM#128
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: LOW (was effectief no-op, dus geen exploit-pad)
In de DocuSeal-webhook checkte ik
contract.status === "SIGNED" || contract.status === "ACTIVE"als rollback-guard. MaarContractStatusheeft alleen:DRAFT|SENT|SIGNED|EXPIRED|TERMINATED|CANCELLED.ACTIVEbestaat niet, dus de|| contract.status === "ACTIVE"-clausule was effectief altijd false. De guard werkte alleen voorSIGNED— wat in de praktijk de juiste eindstatus is. Geen real-world-impact, wel dood-code dat misleidend leesbaar was.Fix: alleen
status === "SIGNED"als skip-conditie + commentaar met de volledige enum-lijst.Files: src/app/api/webhooks/docuseal/route.ts
Opgelost in commit
de87b11.