opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.69k stars 893 forks source link

[BUG] Creating scheduled dashboards report #7864

Open ajacobsson opened 2 months ago

ajacobsson commented 2 months ago

Describe the bug

When trying to save a scheduled generation of a dashboards report sometimes there's a cron syntax error thrown even though the syntax is correct. It turns out that when switching time zone the problem disappears. So currently it's unclear if the problem only persists for the time zone EST or if it's a combination of cron syntax and time zone or if there are other time zones that also cause this problem.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'OpenSearch Plugins/Reporting/Create'
  2. Click on 'Report trigger: Schedule/request time: Cron based'
  3. Enter any valid cron expression: e.g. '0 12 *'
  4. Select Timezone: EST
  5. If not shown immediately, press Save Changes.
  6. See error

Expected behavior Using correct cron syntax with any timezone should work.

OpenSearch Version 2.15.0

Dashboards Version v 2.13.0

Screenshots

b73d5afb5ba0ee1723dbbfc8deb5f957e4ec2981

Host/Environment (please complete the following information):

dblock commented 1 month ago

[Catch All Triage - 1, 2, 3, 4, 5]