-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event API accepts random / unknown timezone values, and these mess up the UI afterwards. #571
Comments
Here is the job in global/schedule/0.json (min.io s3 backend )
// intentionally modified the params->data before pasting for privacy/security. The issue seems to be due to "timezone" : "+05:30" , while in other which scheduled from UI or without passing timezone parameter have : "timezone": "Asia/Kolkata" I completely understand that this filed "timezone" accepts certain inputs in certain formats, but we should have a check in place to check the value as this accepted the input and now my UI is gone. |
Point to understand here is, stopping all servers. Manually editing the shared storage (min.io -> global/ schedule / 0.json ) and changing "+05:30" to "Asia/Kolkata" fixed the issue.
|
Thanks, fixed in v0.9.20: https://github.com/jhuckaby/Cronicle/releases/tag/v0.9.20 |
Summary
I recently came across a use-case where I tried to schedule a job using API-KEY and I had to pass in the timezone.
On passing the timezone as "+05:30", it accepted the input and the job was schedule. Now, just after doing this I tried to refresh the dashboard on :3012 and the schedule page is showing an empty. Similarly the Admin Page is also empty.
The issue here is if I had passed an incorrect value of timezone, the request should have been rejected but in this case it was accepted and after that I am not able to access the list of schedule events or admin section in the dashboard.
Tried to restart the application to see if resolved the issue but no use.
Steps to reproduce the problem
sample payload:
Your Setup
I am using a 3 node cronicle setup where all nodes are lxc containers.
The text was updated successfully, but these errors were encountered: