client tools ignore -h option without port number
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups (Ubuntu) |
Fix Released
|
Medium
|
Dariusz Gadomski | ||
Trusty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[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.
Changed in cups (Ubuntu): | |
importance: | Undecided → Medium |
assignee: | nobody → Dariusz Gadomski (dgadomski) |
tags: | added: sts |
description: | updated |
tags: | added: sts-sru |
Changed in cups (Ubuntu Trusty): | |
importance: | Undecided → Medium |
tags: | removed: sts-sponsor |
Changed in cups (Ubuntu): | |
status: | New → Fix Released |
tags: |
added: sts-sru-done removed: sts-sru |
SRU proposal for Trusty.