cups: joblist displays {job_originating_user_name} instead of real username
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups (Ubuntu) |
Fix Released
|
Undecided
|
Lars Karlitski |
Bug Description
The Joblisting in the the CUPS Webfrontend (http://
Further: If you start a "lpstat -W all" on the commandline you get a core dump:
$ lpstat -W all
Segmentation fault (core dumped)
root@amg155:~# gdb /usr/bin/lpstat core
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://
Reading symbols from /usr/bin/
done.
[New LWP 16897]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Core was generated by `lpstat -W all'.
Program terminated with signal 11, Segmentation fault.
#0 match_list (name=<optimized out>, list=0x7f14a90a5998 "root") at lpstat.c:600
600 lpstat.c: No such file or directory.
in lpstat.c
(gdb) bt
#0 match_list (name=<optimized out>, list=0x7f14a90a5998 "root") at lpstat.c:600
#1 match_list (list=<optimized out>, name=0x0) at lpstat.c:570
#2 0x00007f14a78c3741 in show_jobs (dests=0x0, users=0x7f14a90
which=
#3 0x00007f14a78c07e7 in main (argc=3, argv=0x7fff317e
System: ubuntu-server 11.10 x86_64
Description: Ubuntu 11.10
Release: 11.10
apt-cache policy cups
cups:
Installed: 1.5.0-8ubuntu4
Candidate: 1.5.0-8ubuntu4
Version table:
*** 1.5.0-8ubuntu4 0
500 http://
100 /var/lib/
1.5.0-8 0
500 http://
Thank you for reporting this bug.
There is a null check missing in lpstat. c:match_ list, which has already been added upstream (r10062). Till, I've attached the patch. Do you think it's worth SRU'ing?
I can't reproduce the {job_originatin g_user_ name} problem. It's CUPS's template system not replacing a variable because the value assigned to it is NULL. I have no idea in which cases this can happen, yet. Will investigate further.