You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Infinite loop inside rule iterations when timezone is not an IANA zone
The iterator callback function is never called, rule.all just consumes all the CPU.
How to reproduce:
const{ rrulestr }=require('rrule');construle=rrulestr('DTSTART;TZID=US/Eastern:20181201T020000\nFREQ=WEEKLY;BYDAY=TU\nEXDATE:20190205T020000,20190108T020000');rule.all(date=>{// the iterator is never calledconsole.log('Will never be printed');returnfalse;});
Not exactly sure what are the ingredients of the rule string for this to happen, but for sure the timezone has to be something the luxon library is not aware of. If the timezone in the rule string is an IANA zone, the problem does not arise.
Also seemes to be related to having the EXDATE sometimes.
rrule version: 2.6.0
operating system: tested on node:10-alpine and macOS Mojave v10.14.2
local timezone: tested on UTC and Europe/Tallinn (EET)
The text was updated successfully, but these errors were encountered:
Infinite loop inside rule iterations when timezone is not an IANA zone
The iterator callback function is never called,
rule.all
just consumes all the CPU.How to reproduce:
Not exactly sure what are the ingredients of the rule string for this to happen, but for sure the timezone has to be something the luxon library is not aware of. If the timezone in the rule string is an IANA zone, the problem does not arise.
Also seemes to be related to having the EXDATE sometimes.
node:10-alpine
andmacOS Mojave v10.14.2
UTC
andEurope/Tallinn (EET)
The text was updated successfully, but these errors were encountered: