[Bug 1122493] Re: Does not return some job attrs that exist in history
Ryan Lovett
ryan at spacecoaster.org
Mon Feb 11 23:56:18 UTC 2013
A packet capture shows that the server isn't returning job-originating-
user-name as requested.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-cups in Ubuntu.
https://bugs.launchpad.net/bugs/1122493
Title:
Does not return some job attrs that exist in history
Status in “python-cups” package in Ubuntu:
New
Bug description:
A job on a Mac spooler has a job-originating-user-name in its history
file in /var/spool/cups/. This is returned correctly via 'lpstat' on
that machine.
A linux client (Ubuntu 12.04) does not receive the desired attribute
by default or when specifying requested_attributes:
# PYCUPS_DEBUG=1 python
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cups
>>> c = cups.Connection('somehost')
-> Connection_init(host=somehost)
begin allow threads
httpConnectEncrypt(...)
end allow threads
<- Connection_init() = 0
>>> attrs = c.getJobAttributes(1009, requested_attributes=['job-state-reasons', 'job-name', 'document-format', 'job-originating-user-name', 'job-media-sheets-completed', 'job-printer-uri', 'time-at-completed'])
Requested attributes:
job-state-reasons
job-name
document-format
job-originating-user-name
job-media-sheets-completed
job-printer-uri
time-at-completed
-> Connection_getJobAttributes(1009)
cupsDoRequest("/")
begin allow threads
end allow threads
Attr: attributes-charset
Attr: attributes-natural-language
Attr: job-printer-uri
Attr: job-state-reasons
Attr: time-at-completed
Attr: job-media-sheets-completed
Attr: document-format
<- Connection_getJobAttributes() = dict
>>> attrs
{'job-printer-uri': u'ipp://somehost.company.com:631/printers/lp', 'time-at-completed': 1360363556, 'attributes-charset': u'utf-8', 'job-state-reasons': u'job-completed-successfully', 'attributes-natural-language': u'en', 'document-format': u'application/pdf', 'job-media-sheets-completed': 4}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-cups/+bug/1122493/+subscriptions
More information about the foundations-bugs
mailing list