[Bug 1665018] [NEW] client tools ignore -h option without port number

Launchpad Bug Tracker 1665018 at bugs.launchpad.net
Thu Feb 16 08:16:44 UTC 2017


You have been subscribed to a public bug by Dariusz Gadomski (dgadomski):

[Impact]
Prevents user from overriding default print server on cmdline if he's not aware of the fact that this bug may be overriden by giving a port number.

[Test Case]
1. Setup 2 cups servers with a shared printer set as default destination: server1, server2.
2. On a trusty client try:
export CUPS_SERVER=server1
lpstat -h server2 -H
3. Expected result:
server2:631
4. Actual result:
server1:631
(server given by CUPS_SERVER is used instead of the one given by -h option).

[Regression Potential]
Minimal. ipp_port is initialized to default value if not given explicitly. Fix is a backport from Xenial version and already present in upstream release.

[Other Info]
 
* Original bug description:

Some commandline tools (e.g. lp, lpstat) ignore -h option if no port number is given.
This version affects Trusty with cups-client 1.7.2-0ubuntu1.7. Xenial works fine.

Test to reproduce:
1. Setup 2 cups servers with a shared printer set as default destination: server1, server2.
2. On a trusty client try:
export CUPS_SERVER=server1
lpstat -h server2 -H

3. Expected result:
server2:631

4. Actual result:
server1:631
(server given by CUPS_SERVER is used instead of the one given by -h option).

If a port number is given (e.g. server2:631) the commands work as
expected.

** Affects: cups (Ubuntu)
     Importance: Medium
     Assignee: Dariusz Gadomski (dgadomski)
         Status: New


** Tags: sts sts-sponsor
-- 
client tools ignore -h option without port number
https://bugs.launchpad.net/bugs/1665018
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list