Skip to content
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

User can cause infinite loop with recurrence widget #39

Open
laulaz opened this issue Jun 30, 2023 · 0 comments
Open

User can cause infinite loop with recurrence widget #39

laulaz opened this issue Jun 30, 2023 · 0 comments

Comments

@laulaz
Copy link
Member

laulaz commented Jun 30, 2023

If you set an interval ("repeat every") value of "0" in reccurrence popup, it causes an infinite loop in Python dateutil RRULE interpretation.

Example of a simple RRULE that breaks : FREQ=MONTHLY;INTERVAL=0;BYMONTHDAY=1;COUNT=7'

INTERVAL=0 is not a valid value for RFC 5545 and should not be allowed.

I can see in the translations that the error message exists :

noRepeatEvery=translate(_("no_repeat_every"), context=request),

Also, in the Mockup demo, there is an error message for "0" interval :

Screen Shot 2023-06-30 at 10 24 10

But in the last Plone 6, you can stil choose "0" interval and put the instance on her knees with infinite loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant