[Bug 1585121] Re: awstats produces regex warnings in version 7.4 with Perl 5.22 on Ubuntu 16.04 LTS

Chris J Arges 1585121 at bugs.launchpad.net
Wed Sep 21 14:42:34 UTC 2016


Hello Thorsten, or anyone else affected,

Accepted awstats into xenial-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/awstats/7.4+dfsg-
1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: awstats (Ubuntu Xenial)
       Status: In Progress => Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1585121

Title:
  awstats produces regex warnings in version 7.4 with Perl 5.22 on
  Ubuntu 16.04 LTS

Status in awstats package in Ubuntu:
  Fix Released
Status in awstats source package in Xenial:
  Fix Committed
Status in awstats package in Debian:
  Confirmed

Bug description:
  [Impact]

  The main awstats script triggers the Perl deprecation warnings about
  unescaped braces in regexes, every time the script is run (which, by
  default is every 10 minutes, via cron, sending out an email with
  these).

  [Test Case]

  1. apt install awstats
  2. run '/usr/share/awstats/tools/update.sh'

  You should get an error because of a missing config parameter, but if
  this bug is present, you also get six "Unescaped left brace in regex
  is deprecated, ..." messages before that.

  [Regression Potential]

  I don't see any way this could go wrong.  The patch is trivial, and is
  already included upstream and in yakkety.

  [Original Description]

  > Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\"%{ <-- HERE Referer}i\"/ at /usr/lib/cgi-bin/awstats.pl line 9043.
  > Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\"%{ <-- HERE User-Agent}i\"/ at /usr/lib/cgi-bin/awstats.pl line 9044.
  > Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE mod_gzip_input_size}n/ at /usr/lib/cgi-bin/awstats.pl line 9045.
  > Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE mod_gzip_output_size}n/ at /usr/lib/cgi-bin/awstats.pl line 9046.
  > Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE mod_gzip_compression_ratio}n/ at /usr/lib/cgi-bin/awstats.pl line 9047.
  > Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\(%{ <-- HERE ratio}n\)/ at /usr/lib/cgi-bin/awstats.pl line 9048.

  Those warnings occur whenever we execute awstats and they can easily
  be fixed by escaping the "{" and "}" at the mentioned lines. In fact
  awstats 7.5 fixed those lines already itself:

  > AWStats Changelog
  > -----------------
  >
  > ***** 7.5 *****
  >
  > - Compatibility with Perl 5.22

  Please consider backporting those fixes, because awstats is most
  likely executed by cron or such and this produces unnecessary mails
  with those warnings. Disabling mails on warnings/errors is of course
  no solution, because one would miss real configuration errors or such
  this way.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1585121/+subscriptions



More information about the Ubuntu-sponsors mailing list