[cups-devel] [UNKN] STR #4642: ipptool changes $user half way through a .test file

Bob Henz noreply at cups.org
Wed Jun 10 07:40:17 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

When running the attached .test file with ipptool against a machine that
requires authentication, the value of $user changes such that the first
(create-job) request uses the value returned by $USER in the shell (in my
case bhenz), but then for the Get-Job-Attributes operation $user has become
the authenticated user name (fred).

ipptool ipp://fred:foo@$IPADDRESS/ipp/print -t
/users/bhenz/tmp/changed-user.test

Output...

"/users/bhenz/tmp/changed-user.test":
    Create-Job                                                          
[PASS]
    Check that new job is 'pending'                                     
[FAIL]
        RECEIVED: 116 bytes in response
        status-code = client-error-forbidden (client-error-forbidden)
        attributes-charset (charset) = utf-8
        attributes-natural-language (naturalLanguage) = en-us
        status-message (textWithoutLanguage) = client-error-forbidden
        EXPECTED: STATUS successful-ok (got client-error-forbidden)
        status-message="client-error-forbidden"
        EXPECTED: job-state

Summary: 2 tests, 1 passed, 1 failed, 0 skipped
Score: 50%

Internally I see that the printer sees the "requesting-user-name" as
"bhenz" for the create-job operation but as "fred" for the
Get-Job-Attributes operation.

p.s. I could not get ipptool to generate an ipptool.log file.  :-(

Link: https://www.cups.org/str.php?L4642
Version: 1.7.2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJVeExRAAoJENujp6sI12IjD2kP/1hcU+GQdvqwBLlZkozwVfXN
/KDVN2UTASKz5FBfojQ2h+eXSqyXhKCRf8kHDc1Is7GT480D/r/Ha/gsLi9iZlH9
LnLVqP8iauqkSQD+M0k2IBFekzWVcUIQoML/5sJNSRn9noonQmJ0P88rXYtwJ8fY
ueLb/Y1IE9ExtLWttfjTLNaIZZ0NcfKcl11aTwhX1lWmViX4c4EOlmp7dU4xkHZQ
3f0slEIWZ5KsOTzvi8pyDLdIcos8zXiMxD6zzr58LjIrwam77MnPyyIOsc1jZYjj
qIOY1/nlxdKywym2RewIFyi1oKCXdyky89wy1paVzlKPX6VIea6rI0kYop4qEkl2
aU/oekYCoGEjBT80oEwuVOgT1P0HEU2BVvJOlRO4tKFhEVP6+/w2AVxu264Qdvt9
qchT03eU+3LVvU50MusqXhe7CRufx/dri4jRwrM6kO8zGiYA8HxpEaku/4PRQktC
YOxaPOu0QOA3SjOCnEB1G8IO5dbzqcU7mkYKar7N4g+E8Js0eTrqq5z+mRR7EVtf
QZxvV6zp5Yyqp7K3d2pMEAZvJ0q0ss/wt8Bd2aiRz5PvCe7XTL20xLEvKHfHShPH
D/aqUGoEQ8gsdVbxc4LytD7edM5YwoPwh3IdiSeLbepSqSGj50Wq4gbx4TN6mb+v
MnZQA5crX+MGiIi/Bllf
=VNA6
-----END PGP SIGNATURE-----




More information about the cups-devel mailing list