Public bug reported:

[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

** Changed in: cups (Ubuntu)
   Importance: Undecided => Medium

** Changed in: cups (Ubuntu)
     Assignee: (unassigned) => Dariusz Gadomski (dgadomski)

** Tags added: sts

** Description changed:

+ [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.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to cups in Ubuntu.
https://bugs.launchpad.net/bugs/1665018

Title:
  client tools ignore -h option without port number

Status in cups package in Ubuntu:
  New

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.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to