2014-08-05 09:55:07 |
Michael Cunningham |
bug |
|
|
added bug |
2014-08-05 10:52:32 |
Launchpad Janitor |
cups (Ubuntu): status |
New |
Confirmed |
|
2014-12-18 11:54:21 |
Louis Bouchard |
cups (Ubuntu): importance |
Undecided |
Medium |
|
2014-12-18 11:54:23 |
Louis Bouchard |
cups (Ubuntu): assignee |
|
Louis Bouchard (louis-bouchard) |
|
2014-12-18 11:54:34 |
Louis Bouchard |
tags |
|
cts |
|
2015-01-13 15:31:19 |
Louis Bouchard |
cups (Ubuntu): status |
Confirmed |
In Progress |
|
2015-01-13 15:31:35 |
Louis Bouchard |
nominated for series |
|
Ubuntu Utopic |
|
2015-01-13 15:31:35 |
Louis Bouchard |
bug task added |
|
cups (Ubuntu Utopic) |
|
2015-01-13 15:31:35 |
Louis Bouchard |
nominated for series |
|
Ubuntu Trusty |
|
2015-01-13 15:31:35 |
Louis Bouchard |
bug task added |
|
cups (Ubuntu Trusty) |
|
2015-01-13 15:31:42 |
Louis Bouchard |
cups (Ubuntu Trusty): importance |
Undecided |
Medium |
|
2015-01-13 15:31:45 |
Louis Bouchard |
cups (Ubuntu Utopic): importance |
Undecided |
Medium |
|
2015-01-13 15:31:48 |
Louis Bouchard |
cups (Ubuntu Trusty): status |
New |
Confirmed |
|
2015-01-13 15:31:50 |
Louis Bouchard |
cups (Ubuntu Utopic): status |
New |
Confirmed |
|
2015-02-04 12:19:38 |
Louis Bouchard |
attachment added |
|
lp1352809_option_override_vivid.debdiff https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1352809/+attachment/4312133/+files/lp1352809_option_override_vivid.debdiff |
|
2015-02-04 12:29:25 |
Ubuntu Foundations Team Bug Bot |
tags |
cts |
cts patch |
|
2015-02-06 07:07:45 |
Launchpad Janitor |
cups (Ubuntu): status |
In Progress |
Fix Released |
|
2015-02-09 09:55:51 |
Louis Bouchard |
cups (Ubuntu Trusty): status |
Confirmed |
In Progress |
|
2015-02-09 09:55:54 |
Louis Bouchard |
cups (Ubuntu Utopic): status |
Confirmed |
In Progress |
|
2015-02-09 09:55:57 |
Louis Bouchard |
cups (Ubuntu Trusty): assignee |
|
Louis Bouchard (louis-bouchard) |
|
2015-02-09 09:55:59 |
Louis Bouchard |
cups (Ubuntu Utopic): assignee |
|
Louis Bouchard (louis-bouchard) |
|
2015-02-09 11:04:02 |
Louis Bouchard |
attachment added |
|
lp1352809_option_override_trusty.debdiff https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1352809/+attachment/4315357/+files/lp1352809_option_override_trusty.debdiff |
|
2015-02-09 11:04:26 |
Louis Bouchard |
attachment added |
|
lp1352809_option_override_utopic.debdiff https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1352809/+attachment/4315358/+files/lp1352809_option_override_utopic.debdiff |
|
2015-02-09 11:10:52 |
Louis Bouchard |
description |
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
cups-client:
Installed: 1.7.2-0ubuntu1.1
3) What you expected to happen
When using lp -h to send a print job to a printer, I expected to the job to be sent to the printer and to override any env variables set or conf file setting
4) What happened instead
To summarise the behaviour I'm seeing
1) with CUPS_SERVER env variable unset and no ServerName set in /etc/cups/client.conf, we see that using lp -h with hostnames gives us error "lp: Error - add '/version=1.1' to server name."
Using IPs sends the job to the printer as expected.
2) with CUPS_SERVER env variable set using hostname with/without port and no ServerName set in /etc/cups/client.conf, we see that the only time it sends a job is when an IP and port are used. Otherwise it seems to error. I believe it's using the env variable, even though -h is being used.
3) with CUPS_SERVER env variable set using IP address with/without port and no ServerName set in /etc/cups/client.conf we see that the job is always sent using lp -h but it is always sent to the value in env variable, thus ignoring the command line.
===
with CUPS_SERVER env variable unset and no ServerName option set in /etc/cups/client.conf
$ lp test2.txt
lp: Error - scheduler not responding. (expected as no server is set or specified)
Using hostname
$ lp -h server1:631 test2.txt
lp: Error - add '/version=1.1' to server name.
$ lp -h server1 test2.txt
lp: Error - add '/version=1.1' to server name.
Using IP address
$ lp -h 192.168.254.8 test2.txt
request id is PDF-54 (1 file(s))
$ lp -h 192.168.254.8:631 test2.txt
request id is PDF-55 (1 file(s))
===
With CUPS_SERVER env variable *set CUPS_SERVER=server1
$ lp test2.txt
lp: Error - add '/version=1.1' to server name.
Using hostname
$ lp -h server1 test2.txt
lp: Error - add '/version=1.1' to server name.
$ lp -h server1:631 test2.txt
lp: Error - add '/version=1.1' to server name.
Using IP address
$ lp -h 192.168.254.8 test2.txt
lp: Error - add '/version=1.1' to server name.
$ lp -h 192.168.254.8:631 test2.txt
request id is PDF-56 (1 file(s))
===
With CUPS_SERVER env variable *set CUPS_SERVER=server:631
Same results as above
===
With CUPS_SERVER env variable *set CUPS_SERVER=192.168.254.8:631
$ lp -h 555.555.555.555 test2.txt
request id is PDF-66 (1 file(s))
===
With CUPS_SERVER env variable *set CUPS_SERVER=192.168.254.8
Same results as above |
[SRU justification]
The -h option should override the value stored in the CUPS_SERVER environment variable
[Impact]
Without this fix, user is unable to define the printserver to use with the -h option
[Fix]
Verify if the -h option has defined the printserver before using CUPS_SERVER to define it.
[Test Case]
$ export CUPS_SERVER="blah"
$ lp -h {valid printserver} -d {printqueue} /etc/hosts
Without the fix :
lp: No such file or directory
With the fix :
request id is {printqueue}-37 (1 file(s))
[Regression]
None expected. New code path (from upstream patch) is only triggered if
-h option is used.
[Original description of the problem]
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
cups-client:
Installed: 1.7.2-0ubuntu1.1
3) What you expected to happen
When using lp -h to send a print job to a printer, I expected to the job to be sent to the printer and to override any env variables set or conf file setting
4) What happened instead
To summarise the behaviour I'm seeing
1) with CUPS_SERVER env variable unset and no ServerName set in /etc/cups/client.conf, we see that using lp -h with hostnames gives us error "lp: Error - add '/version=1.1' to server name."
Using IPs sends the job to the printer as expected.
2) with CUPS_SERVER env variable set using hostname with/without port and no ServerName set in /etc/cups/client.conf, we see that the only time it sends a job is when an IP and port are used. Otherwise it seems to error. I believe it's using the env variable, even though -h is being used.
3) with CUPS_SERVER env variable set using IP address with/without port and no ServerName set in /etc/cups/client.conf we see that the job is always sent using lp -h but it is always sent to the value in env variable, thus ignoring the command line.
===
with CUPS_SERVER env variable unset and no ServerName option set in /etc/cups/client.conf
$ lp test2.txt
lp: Error - scheduler not responding. (expected as no server is set or specified)
Using hostname
$ lp -h server1:631 test2.txt
lp: Error - add '/version=1.1' to server name.
$ lp -h server1 test2.txt
lp: Error - add '/version=1.1' to server name.
Using IP address
$ lp -h 192.168.254.8 test2.txt
request id is PDF-54 (1 file(s))
$ lp -h 192.168.254.8:631 test2.txt
request id is PDF-55 (1 file(s))
===
With CUPS_SERVER env variable *set CUPS_SERVER=server1
$ lp test2.txt
lp: Error - add '/version=1.1' to server name.
Using hostname
$ lp -h server1 test2.txt
lp: Error - add '/version=1.1' to server name.
$ lp -h server1:631 test2.txt
lp: Error - add '/version=1.1' to server name.
Using IP address
$ lp -h 192.168.254.8 test2.txt
lp: Error - add '/version=1.1' to server name.
$ lp -h 192.168.254.8:631 test2.txt
request id is PDF-56 (1 file(s))
===
With CUPS_SERVER env variable *set CUPS_SERVER=server:631
Same results as above
===
With CUPS_SERVER env variable *set CUPS_SERVER=192.168.254.8:631
$ lp -h 555.555.555.555 test2.txt
request id is PDF-66 (1 file(s))
===
With CUPS_SERVER env variable *set CUPS_SERVER=192.168.254.8
Same results as above |
|
2015-02-09 12:23:43 |
Louis Bouchard |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2015-02-11 18:40:56 |
Chris J Arges |
cups (Ubuntu Utopic): status |
In Progress |
Fix Committed |
|
2015-02-11 18:41:00 |
Chris J Arges |
bug |
|
|
added subscriber SRU Verification |
2015-02-11 18:41:02 |
Chris J Arges |
tags |
cts patch |
cts patch verification-needed |
|
2015-02-11 21:05:20 |
Chris J Arges |
cups (Ubuntu Trusty): status |
In Progress |
Fix Committed |
|
2015-02-12 10:53:24 |
Louis Bouchard |
tags |
cts patch verification-needed |
cts patch verification-done |
|
2015-02-19 17:25:09 |
Launchpad Janitor |
cups (Ubuntu Utopic): status |
Fix Committed |
Fix Released |
|
2015-02-19 17:25:19 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2015-02-24 19:42:15 |
Launchpad Janitor |
cups (Ubuntu Trusty): status |
Fix Committed |
Fix Released |
|