Silent failure on invalid due_date format in milestone operations #7

Open
opened 2025-07-11 15:34:04 -05:00 by b3nw · 0 comments
Owner

In operation/milestone/milestone.go, the CreateMilestoneFn, EditMilestoneFn, and EditMilestoneByNameFn functions attempt to parse a due_date string. 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_date is provided but is in an invalid format.

In `operation/milestone/milestone.go`, the `CreateMilestoneFn`, `EditMilestoneFn`, and `EditMilestoneByNameFn` functions attempt to parse a `due_date` string. 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_date` is provided but is in an invalid format.
b3nw added the bugmilestone-management labels 2025-07-11 15:45:28 -05:00
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: b3nw/gitea-mcp#7