Silent failure on invalid due_date format in milestone operations #7
Reference in New Issue
Block a user
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?
In
operation/milestone/milestone.go, theCreateMilestoneFn,EditMilestoneFn, andEditMilestoneByNameFnfunctions attempt to parse adue_datestring. If parsing fails due to an incorrect format, the error is silently ignored. The operation proceeds without setting or updating the due date, and the user receives no feedback that the provided date was invalid.Recommendation:
The function should return an error if
due_dateis provided but is in an invalid format.