Project

General

Profile

Bug #16847

Feature #10034: Translation web platform

Weblate's suggestions-cronjob.sh sends daily spam to Weblate admins

Added by intrigeri 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Infrastructure
Target version:
-
Start date:
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:
Starter:
Affected tool:
Translation Platform

Description

Complex regular subexpression recursion limit (32766) exceeded at /usr/share/perl5/IkiWiki.pm line 1754.
Complex regular subexpression recursion limit (32766) exceeded at /usr/share/perl5/IkiWiki.pm line 1754.

Associated revisions

Revision c85ac54c (diff)
Added by intrigeri 5 months ago

wiki/src/install/**/*.po: remove obsolete (#~) strings.

During the "scan" phase, ikiwiki first scans raw PO files, including these
obsolete strings. We have "[[!command]]" ikiwiki directives split over multiple
strings, so in these raw PO files, a directive can be started ("[[!command") but
never closed ("]]"), which can cause this warning:

Complex regular subexpression recursion limit (32766) exceeded at
/usr/share/perl5/IkiWiki.pm line 1754.

I suspect that other kinds of power-usage of ikiwiki + PO files can trigger this
problem; let's fix this one to start with and see what happens then.

refs: #16847

History

#1 Updated by intrigeri 5 months ago

  • Subject changed from /var/lib/weblate/scripts/suggestions-cronjob.sh sends daily spam to Weblate admins to Weblate's suggestions-cronjob.sh sends daily spam to Weblate admins

#2 Updated by intrigeri 5 months ago

  • Assignee set to intrigeri

Taking a first look.

#3 Updated by intrigeri 5 months ago

The corresponding code in ikiwiki is about parsing [[!]] directives. The error occurs while scanning install/win/usb.de.po. There's no Weblate suggestions for it. I see nothing obviously wrong in that file but there are lots of commented out ikiwiki directives. I'll try removing them and if that's not enough, I'll bisect the problem.

#4 Updated by intrigeri 5 months ago

  • Status changed from Confirmed to In Progress

#5 Updated by intrigeri 5 months ago

  • Status changed from In Progress to Resolved

On top of the commit referenced above, I did https://git.tails.boum.org/puppet-tails/commit/?id=c6372d384da529cf46079c0a6326e5011d38db14 which should prevent this daily spam even when such warnings occur, so calling this done. Will come back to it if it happens again.

#6 Updated by intrigeri 5 months ago

Also available in: Atom PDF