View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006276 | SOGo | SOPE | public | 2026-12-01 06:17 | 2026-12-01 06:17 |
| Reporter | fselles | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Summary | 0006276: 5.12.14: sogo.log flooded with "invalid month given - 0" (full-history timezone files + iCalTimeZonePeriod assumes BYMONTH) | ||||
| Description | Full disclosure: the analysis was done with the help of an AI assistant; the diagnosis and the workaround were confirmed on our production server. Tested on SOGo/SOPE 5.12.14, upgraded from 5.12.13. The product version list may not offer 5.12.14. Tested on SOGo/SOPE 5.12.14, upgraded from 5.12.13. The product version list may not offer 5.12.14. Right after upgrading, sogod logs this GNUstep warning tens of thousands of times an hour: about 156,000 lines in the first 38 minutes, against a few dozen a day with 5.12.13.
Almost all of them come from the web UI views Calendar/eventsblocks and Calendar/eventslist, up to about 15,000 in a single request when the calendars shown contain recurring events. CalDAV REPORTs produce very few. The computed times appear correct. The cost is the log volume (and anything that ingests sogo.log) plus extra work for every date converted. Cause:
5.12.14's new WindowsZones.plist also routes some Windows names to affected zones, e.g. "Central Europe Standard Time" -> Europe/Budapest. Suggested fix (not compiled or tested): a) In -[iCalTimeZonePeriod occurrenceForDate:], don't compute an occurrence for a rule that ended in an earlier year. With a valid month that computation always ends in nil anyway, because the occurrence falls after UNTIL:
b) In -_occurrenceForDate:byRRule:, without BYMONTH fall back to DTSTART's month, as RFC 5545 specifies for FREQ=YEARLY:
c) Possibly also skip periods whose rule ended before the date in -_occurrenceForPeriodNamed:forDate:, so a date doesn't walk the whole history every time, and handle BYMONTHDAY. | ||||
| Steps To Reproduce |
| ||||
| Additional Information | Environment: Rocky Linux 8, gnustep-base 1.27.0-6.el8 (it has been this way since the installation, with no such warnings before 5.12.14), PostgreSQL. The month 0 is computed by SOPE, and GNUstep only reports it, so the gnustep-base version shouldn't matter. Calendars used from the web UI and over CalDAV (Thunderbird, DAVx5, iOS/macOS). Workaround in production: putting back 5.12.13's .ics files in .../Libraries/Resources/NGCards/TimeZones/ and restarting sogod stops the flood. Keep 5.12.14's WindowsZones.plist: every one of its targets exists in 5.12.13's set. The warnings drop back to the few dozen a day seen with 5.12.13, which come from other data. This issue was investigated with the help of an AI assistant (Anthropic's Claude), by reading the 5.12.13 and 5.12.14 sources and analysing the server's logs. The diagnosis and the workaround were confirmed on a production server; the suggested code changes have not been compiled or tested. | ||||
| Tags | No tags attached. | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-12-01 06:17 | fselles | New Issue |