[pbs-devel] [PATCH proxmox v2 0/3] fix #6161: time: Split parse_time_spec parser into two

Maximiliano Sandoval m.sandoval at proxmox.com
Wed Aug 13 14:43:42 CEST 2025


In a support case we found a system with 40:00 as a schedule in a backup job. It
is possible to entire this calendar event on the web UI.

As per systemd-analize:

```
$ systemd-analyze calendar 40:00
Failed to parse calendar specification '40:00': Invalid argument
```

After this series the Proxmox VE web UI won't allow it anymore with an error:

```
Parameter verification failed. (400)

schedule: invalid format - invalid calendar event '40:00' - unable to parse calendar event at ':00' - Nom(Eof) 
```

Differences from v1:
 - Add cover letter
 - Reference bugzilla entry #6161
 - Add test case for 24:00 as per #6161

Maximiliano Sandoval (3):
  time: Add traits to DateTimeValue and TimeSpec
  fix #6161: time: Split parse_time_spec parser into two
  time: Add more calendat event tests

 proxmox-time/src/calendar_event.rs  | 109 ++++++++++++++++++++++++++--
 proxmox-time/src/date_time_value.rs |   2 +-
 2 files changed, 103 insertions(+), 8 deletions(-)

-- 
2.47.2





More information about the pbs-devel mailing list