The Samba-Bugzilla – Bug 2853
Showing jobs with cups backend doesn't work
Last modified: 2005-08-24 10:17:56 UTC
I can see this error every time a windows client tries to see the jobs for
any of the printers on the print server:
[2005/07/05 16:22:12, 0] printing/print_cups.c:cups_queue_get(790)
Unable to get jobs for ipp://localhost/printers/oce_ -
The result is that clients can't view (cancel or pause) any of the jobs
on the queue.
I also can see this error on the cups error log:
E [05/Jul/2005:16:22:12 +0200] get_jobs: resource name '/printers/oce_'
Of course, printer oce_ on localhost doesn't exist. Printer is named
oce$. I guess samba is translating "$" to "_".
On the other hand, users can print without problem. It looks like the
problem appears only showing the jobs.
The problem is the call to pstring_sub() in print_queue_update().
string_sub() replaces all '$' characters with '_'.
Fixed in the 3.0 svn tree. YOu can grab the patch from:
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.