Bug 242780 - okular printing fails with remote cups server
Summary: okular printing fails with remote cups server
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.10
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-25 13:43 UTC by Robin Pedersen
Modified: 2012-08-09 21:36 UTC (History)
2 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 Robin Pedersen 2010-06-25 13:43:44 UTC
Version:           0.10 (using KDE 4.4.4) 
OS:                Linux

In `/etc/cups/client.conf`, I have `ServerName` set to an IP address on the local network, where a CUPS server is running and have printers configured. For most applications, this is sufficient and I can print just like if the printers where configured locally.

When I tr to print with okular, I get the print dialog, and I am able to select among the printers configured on the remote server. However, when I try to actually print, I get this error message:

Could not print the document. Please report to bugs.kde.org

The bug has existed since at least KDE SC 4.1

Reproducible: Didn't try
Comment 1 John Layt 2010-06-26 14:20:22 UTC
Can you confirm if this is just an issue with Okular when printing pdf or ps files, or is it a general KDE wide problem (e.g. text files with Kate)?

Can you run okular from the command line, you should see the lpr print command printed on the terminal, could you copy-n-paste that here?

This should work, the Arch Cups package does force the install of the Cups version of lpr, so any print jobs sent to lpr (as okular does) should then be passed on to Cups and printed as normal.

I assume the error message comes up after pressing OK in the print dialog?  If so it implies the execution of the lpr command by Okular has failed and the print file is not even making it to Cups.  I'm wondering if there's some issue with the job parameters.
Comment 2 Robin Pedersen 2010-06-26 14:37:24 UTC
I can confirm that printing works in other KDE apps.

Unfortunately, I'm not able to try the command line, as I have gone on vacation, and will not be at work for the next three weeks.

You are right that the error message comes after clicking OK.
Comment 3 John Layt 2010-06-26 17:18:12 UTC
OK, please post when you get back.  Thanks!
Comment 4 Albert Astals Cid 2012-08-09 20:31:10 UTC
The user did not answer back, so resolving as invalid

Robin, if you can still reproduce this in newer KDE/Okular releases please reopen the bug and provide the requested information.
Comment 5 Robin Pedersen 2012-08-09 21:30:54 UTC
It actually started working after an upgrade some time ago.
On Aug 9, 2012 10:29 PM, "Albert Astals Cid" <aacid@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=242780
>
> Albert Astals Cid <aacid@kde.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|NEEDSINFO                   |RESOLVED
>                  CC|                            |aacid@kde.org
>          Resolution|WAITINGFORINFO              |INVALID
>
> --- Comment #4 from Albert Astals Cid <aacid@kde.org> ---
> The user did not answer back, so resolving as invalid
>
> Robin, if you can still reproduce this in newer KDE/Okular releases please
> reopen the bug and provide the requested information.
>
> --
> You are receiving this mail because:
> You reported the bug.
>