squid3 helper basic_pop3_auth crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
squid (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Invalid
|
Undecided
|
Unassigned | ||
Cosmic |
Won't Fix
|
Medium
|
Unassigned | ||
squid3 (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Xenial |
Won't Fix
|
Medium
|
Unassigned | ||
Bionic |
Incomplete
|
Medium
|
Lena Voytek | ||
Cosmic |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
The basic_pop3_auth command immediately fails when run in Bionic.
Backporting this fix will allow users to authenticate user credentials against a POP3 server as intended.
This is fixed by patching in an upstream commit that properly declares variables in the authentication script.
[Test Plan]
# lxc launch images:
# lxc exec test bash
# apt update && apt dist-upgrade
# apt install -y squid3
# /usr/lib/
Global symbol "$server" requires explicit package name (did you forget to declare "my $server"?) at /usr/lib/
Global symbol "$pop" requires explicit package name (did you forget to declare "my $pop"?) at /usr/lib/
Global symbol "$server" requires explicit package name (did you forget to declare "my $server"?) at /usr/lib/
Global symbol "$pop" requires explicit package name (did you forget to declare "my $pop"?) at /usr/lib/
Global symbol "$pop" requires explicit package name (did you forget to declare "my $pop"?) at /usr/lib/
Global symbol "$pop" requires explicit package name (did you forget to declare "my $pop"?) at /usr/lib/
Global symbol "$pop" requires explicit package name (did you forget to declare "my $pop"?) at /usr/lib/
Execution of /usr/lib/
[Where problems could occur]
Since the authentication is now able to continue without crashing, problems could occour further down in the script. This could include modifications to the POP3 server used for authentication.
The behavior should now match that of the other currently supported distributions, and the script is external to the rest of squid3, but up until now this script has not successfully run on Bionic.
[Original Description]
Ubuntu Xenial
perl is v5.22.1
squid3 version 3.5.12-1ubuntu7.5
Running basic_pop3_auth pop3_server gives :
Global symbol "$server" requires explicit package name (did you forget to declare "my $server"?) at ./basic_pop3_auth line 92.
Global symbol "$pop" requires explicit package name (did you forget to declare "my $pop"?) at ./basic_pop3_auth line 99.
Global symbol "$server" requires explicit package name (did you forget to declare "my $server"?) at ./basic_pop3_auth line 99.
Global symbol "$pop" requires explicit package name (did you forget to declare "my $pop"?) at ./basic_pop3_auth line 100.
Global symbol "$pop" requires explicit package name (did you forget to declare "my $pop"?) at ./basic_pop3_auth line 106.
Global symbol "$pop" requires explicit package name (did you forget to declare "my $pop"?) at ./basic_pop3_auth line 111.
Global symbol "$pop" requires explicit package name (did you forget to declare "my $pop"?) at ./basic_pop3_auth line 112.
./basic_pop3_auth had compilation errors.
adding my before $server on line 92 and before $pop on line 99 solves the problem.
Related branches
- Sergio Durigan Junior (community): Approve
- Canonical Server Core Reviewers: Pending requested
- Canonical Server: Pending requested
-
Diff: 58 lines (+36/-0)3 files modifieddebian/changelog (+9/-0)
debian/patches/pop3-auth-add-my-to-vars.patch (+26/-0)
debian/patches/series (+1/-0)
Changed in squid3 (Ubuntu Bionic): | |
assignee: | nobody → Lena Voytek (lvoytek) |
Changed in squid3 (Ubuntu Bionic): | |
status: | Triaged → In Progress |
description: | updated |
Changed in squid3 (Ubuntu Bionic): | |
status: | In Progress → Incomplete |
Confirmed, and it's still a problem in git upstream even. Looks like not many people use this script, or maybe a more recent perl is enforcing something that it wasn't before.