cal.diy
cal.diy copied to clipboard
App is crashing if user type a huge number of events
Found a bug? Please fill out the sections below. 👍
Issue Summary
When we create a recurring event, there are 20 events as a limitation, however, users can set the number of events to have recurred. As this is not limited to 20, users can add huge numbers here and it can cause a crash.
Steps to Reproduce
- Create a recurring event with any number of events, limited to 20
- In another tab, try to book for this event type
- Set a day
- Check that it's possible to have more than the limitation from the event type (20 in that case)
- Type 999999999 as the number of events
- Set a time
- Check that the app will crash
- If refresh the page, it cost a lot of time to recover
- After recovery, it shows that there are 20805 more events, but if you try to mouse over that, it will crash again
Technical details
- Google Chrome v114.0.5735.134 (Official Build) (64-bit)
- Tested on Version preview for that PR (https://cal-5luk9i0hk-cal.vercel.app/event-types)
This has been solved in some pr i guess as i tested in local setup.
This has been solved in some pr i guess as i tested in local setup.
Could you please share that PR? Just checked and still happening.