Lightning scheduler does not correctly validate date.

Created on 15 June 2023, about 1 year ago
Updated 18 June 2023, about 1 year ago

Problem/Motivation

Lightning Scheduler does not validate the date correctly.
An invalid date then causes a white screen on the edit page.
An invalid date also causes a blocking error during cron.

Steps to reproduce

- Enable 'Lightning Scheduler' module
- Via `/admin/config/workflow/workflows` turn on workflow for Basic Pages
- Create a Basic Page `/node/add/page`
- Enter a Title
- Click `Schedule a status change`
- Enter an invalid date `06/15/20023` (Note the invalid year)
- Click 'Save' on the Schedule, then 'Save' on the Basic Page
- Click the `Edit` tab on the newly created page
- Experience a white screen error
- Run `drush cron` and see an error that blocks the cron run.

Proposed resolution

Add date validation to scheduler.

Issue is also present in the standalone Lightning Scheduler module: https://www.drupal.org/project/lightning_scheduler

🐛 Bug report
Status

Active

Version

3.19

Component

Code

Created by

🇦🇺Australia genebobmiller

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024