Reject out-of-range numeric cron fields
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 86/100
Research direction
Start in src/restic_compose_backup/cron.py by reading validate_schedule() and validate_field(). Trace how each numeric field's validation result is handled, then ensure any out-of-range value causes schedule validation to fail. Done means schedules such as 60 25 * * * are rejected or fall back instead of being emitted into the crontab.
Written by the indexing model from the issue text.
Description
In src/restic_compose_backup/cron.py, validate_schedule() calls validate_field() for each numeric field but discards the returned booleans. validate_field() returns False for out-of-range values, yet validate_schedule() then returns True unless int conversion raises. Thus schedules such as 60 25 * * * are accepted and emitted into the crontab instead of rejected/falling back. Please make validate_schedule() fail when any field is outside its allowed range.
- Dominant language
- Python
- Stars
- 181
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lawndoc/stack-back
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
lawndoc/stack-back#123 ·
-
Propagate either forget or prune failure from cleanupPossibly taken @sairex53 claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
lawndoc/stack-back#121 · 2 comments ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
lawndoc/stack-back#120 ·
-
Maintenance QuestionOpen
Difficulty 1/5 Under an hour Newbie friendliness 20/100
lawndoc/stack-back#119 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
lawndoc/stack-back#115 ·
All issues in lawndoc/stack-back
Similar issues
-
request-theme
Difficulty 2/5 Under an hour Newbie friendliness 70/100
LizardByte/ThemerrDB#8877 · 1 comment ·
Maintainers usually reply within 1 day
-
area/install-update comp/gateway P0 sweeper:risk-compatibility type/bug
Difficulty 2/5 Under an hour Newbie friendliness 72/100
NousResearch/hermes-agent#135997 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
deepset-ai/haystack#13199 ·
Maintainers usually reply within 1 day
-
[BUG] JSONLoader rejects valid UTF-8 BOM filesPossibly taken @zouyonghe claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
anthropics/knowledge-work-plugins#1298 ·
Maintainers usually reply within 1 day