Bug 402015 - Okular prints to a local queue which alphanumerically precedes a remote destination when cups-browsed is not installed.
Summary: Okular prints to a local queue which alphanumerically precedes a remote desti...
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 1.3.2
Platform: Debian unstable Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-11 19:49 UTC by Brian Pokin
Modified: 2019-06-16 14:25 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Pokin 2018-12-11 19:49:26 UTC
SUMMARY

Okular prints to a local queue which alphanumerically precedes a remote destination when cups-browsed is not installed.

STEPS TO REPRODUCE

1. Install local queues atestq and ztestq.
2. Have at least one advertised remote queue/printer whose name begin with b to y; realq, say.
3. Stop cups-browsed, if it is running.
4. Print to realq.

OBSERVED RESULT

The print job goes to atestq.

EXPECTED RESULT

The job should go to realq.

SOFTWARE/OS VERSIONS

Debian unstable (without KDE) with CUPS 2.2.10.

ADDITIONAL INFORMATION

This has been reported (in more detail) as

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911844

It is possible that

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911702

is connected with this issue.

-- 
Brian.
Comment 1 Martin Steigerwald 2019-06-11 08:13:15 UTC
Adding KDE's security team to Cc.

Could you have a look at the issue?

If the issue can be verified it would be good to have a patch in time for Debian's buster release. I am sorry that Debian still carries a very old version of Okular (I asked on why, but did not receive a reply yet).


Brian, thank you for your report. Could you please retest at least with Okular 18.04 from Debian experimental or preferably run KDE Neon¹ in a VM and retest with the most recent Okular release? Thank you.

[1] https://neon.kde.org/
Comment 2 Albert Astals Cid 2019-06-11 10:06:59 UTC
The instructions are quite hard to understand. 

Please give clear instructions what you mean with local / remote queues 

The version used is old.

Please try with a newer version
Comment 3 Brian Pokin 2019-06-12 08:13:57 UTC
I took the hint and used the neon-user-20190606-1138.iso, which has okular 19.04.1. A local print queue, aaa, was set up and the print dialog also offered a number of remote queues to print to. With cups-browsed stopped jobs were sent to the remote queues. Unlike the Debian 17.12.2 none of the jobs went to aaa.

In other words I do not experience the previously described behaviour. As far as I am concerned this report can be closed.

-- 
Brian.
Comment 4 Martin Steigerwald 2019-06-16 09:33:16 UTC
Just for the record: Michael found that it is an issue within Qt that is fixed by a certain commit written by you, Albert. So it affects other applications like Kate as well. Dmitry already builds a version of Qt with the backported commit applied.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911844#100

https://salsa.debian.org/qt-kde-team/qt/qtbase/commit/462ab1eccabcfc40
Comment 5 Nate Graham 2019-06-16 14:25:15 UTC
Hooray!

\o/