Closed wifiprintguy closed 2 years ago
This is caused by a fixed size (128k) buffer in ipptool, but in this case the size of the media-col-database attribute value exceeds that buffer when converted to a string...
Does fixing this require changes locally to ipptool or to libcups?
@wifiprintguy I’ll end up fixing this in CUPS and then merge back into ippsample/ippeveselfcert.
@wifiprintguy I increased the buffer size to 1MB:
[master 5f5a24a] Merge changes from CUPS master@b94651b24d277d5ff9fe2c3c4756001400bc957b
Let me know how it works for you...
Sorry for not replying sooner. Problem still seems to exist...
@wifiprintguy OK, so this still needs to be fixed in CUPS - can you attach the output from:
ipptool --ippserver attributes.conf PRINTER-URI get-printer-attributes.test
That will allow me to do some local testing.
Thanks!
Tracking in libcups issue 5, so please attach ipptool output there... Thanks!
I used the attached .test file to perform a Get-Printer-Attributes on a printer I have, requesting "media-col-database" among other attributes. Unfortunately, while the response included a "media-col-database" attribute and value (large collection), ipptool failed to present it in its textual output.
Here's the textual output:
Notice the line:
gpa-media-col-and-printer-input-tray copy.test.txt ipptool-query-and-response-no-media-col-database-presented-packet-capture.pcapng.gz