Unescaped left brace in regex is deprecated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
spamassassin (Debian) |
Fix Released
|
Unknown
|
|||
spamassassin (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Invalid
|
Undecided
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Perl version in Artful complains about deprecated regex usage in
spamassassin. This works but floods consoles and status mails.
* Fix is a backport of the small upstream change
[Test Case]
* simply run sa-learn in any way, for example
$ sa-learn --help
In unfixed versions you'll see the following all over the place (also
on install and in status mails)
Unescaped left brace in regex is deprecated here (and will be fatal
in Perl 5.30), passed through in regex; marked by <-- HERE in m/^(.{
<-- HERE ,200}).*$/ at
/usr/
* these should allow someone who is not familiar with the affected
package to reproduce the bug and verify that the updated package fixes
the problem.
[Regression Potential]
* sa-learn worked in some tests, but there could be unexpected
cases where this breaks by very slight behavior changes.
OTOH the change is upstream a while now, so the chance it
really broke anything is low.
Also the change is essentially 1 chomp moved and 3 pattern matches
adapted to new syntax - so the amount that slips our review thoughts
should be low.
[Other Info]
* n/a
---
When using sa-learn, you receive this notification:
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/^(.{ <-- HERE ,200}).*$/ at /usr/share/
Bug similar to:
https:/
Upstream patch to fix the issue:
https:/
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: spamassassin 3.4.1-7
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Oct 24 16:03:14 2017
InstallationDate: Installed on 2012-03-01 (2062 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
PackageArchitec
SourcePackage: spamassassin
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
modified.
modified.
modified.
modified.
modified.
mtime.conffile.
mtime.conffile.
mtime.conffile.
mtime.conffile.
mtime.conffile.
mtime.conffile.
mtime.conffile.
Changed in spamassassin (Debian): | |
status: | Unknown → Fix Released |
tags: | added: server-next |
Changed in spamassassin (Ubuntu Trusty): | |
status: | Confirmed → Triaged |
Changed in spamassassin (Ubuntu Xenial): | |
status: | Confirmed → Triaged |
Changed in spamassassin (Ubuntu Zesty): | |
status: | Confirmed → Triaged |
Changed in spamassassin (Ubuntu Artful): | |
status: | Confirmed → Triaged |
no longer affects: | spamassassin (Ubuntu Zesty) |
16:34 waver@Jupiter ~% sa-learn --help perl5/Mail/ SpamAssassin/ PerMsgStatus. pm line 923.
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/^(.{ <-- HERE ,200}).*$/ at /usr/share/
SpamAssassin version 3.4.1
For more information read the manual page
Usage:
sa-learn [options] [file]...