Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes repeated in printer-attributes group #8

Open
sde1000 opened this issue Aug 2, 2023 · 0 comments
Open

Attributes repeated in printer-attributes group #8

sde1000 opened this issue Aug 2, 2023 · 0 comments

Comments

@sde1000
Copy link

sde1000 commented Aug 2, 2023

I'm using the hplip-printer-app snap version 3.22.10-1 (rev 800) on Ubuntu. I've set it up with a HP LaserJet 1320.

The attributes returned from Get-Printer-Attributes look wrong. Some attributes are present multiple times (printer-device-id is present twice, printer-strings-languages-supported is present 10 or 11 times) and one attribute has an unexpected enum value (orientation-requested-default has value 7, but the enum only defined values 3, 4, 5 and 6).

Here is the relevent ipptool output:

$ cups.ipptool -t ipp://sinister.local:8002/ipp/print/LJ1320 get-printer-attributes-suite.test
"/snap/cups/980/share/cups/ipptool/get-printer-attributes-suite.test":
    Get-Printer-Attributes (no requested-attributes)                     [FAIL]
        RECEIVED: 15800 bytes in response
        status-code = successful-ok (successful-ok)
        Duplicate "printer-device-id" attribute in printer-attributes-tag group
        Duplicate "printer-strings-languages-supported" attribute in printer-attributes-tag group
        Duplicate "printer-strings-languages-supported" attribute in printer-attributes-tag group
        Duplicate "printer-strings-languages-supported" attribute in printer-attributes-tag group
        Duplicate "printer-strings-languages-supported" attribute in printer-attributes-tag group
        Duplicate "printer-strings-languages-supported" attribute in printer-attributes-tag group
        Duplicate "printer-strings-languages-supported" attribute in printer-attributes-tag group
        Duplicate "printer-strings-languages-supported" attribute in printer-attributes-tag group
        Duplicate "printer-strings-languages-supported" attribute in printer-attributes-tag group
        Duplicate "printer-strings-languages-supported" attribute in printer-attributes-tag group
        EXPECTED: orientation-requested-default WITH-VALUE "3,4,5,6"
        GOT: orientation-requested-default=7

Here is a dump of the response:
bad-attributes.bin.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant