Attributes repeated in printer-attributes group
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by tracing the Get-Printer-Attributes response for the reported HP LaserJet 1320, using the attached bad-attributes.bin.gz dump and the IPP attribute generation entry points in the repository. Check why printer-device-id and printer-strings-languages-supported are emitted repeatedly and why orientation-requested-default is 7; done means the response contains each attribute once and the orientation value matches the supported enum.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- C
- Stars
- 70
- Forks
- 25
- Avg merge
- 9h 18m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenPrinting/hplip-printer-app
-
Difficulty 2/5 1-3 hours Newbie friendliness 57/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
OpenPrinting/hplip-printer-app#26 · 10 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
OpenPrinting/hplip-printer-app#25 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
OpenPrinting/hplip-printer-app#20 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
OpenPrinting/hplip-printer-app#19 · 1 comment ·
All issues in OpenPrinting/hplip-printer-app
Similar issues
-
`sha256()` returns a wrong hash when libsql-ffi is built with gcc 11 or laterPossibly taken @colinhacks claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tursodatabase/libsql#2333 ·
Maintainers usually reply within 11 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenPrinting/cups#1826 ·
Maintainers usually reply within 1 day
-
Backport to 3.0 advertises a suffix that does not existPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
389ds/389-ds-base#8152 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RetroAchievements/rcheevos#580 · 1 comment ·
Maintainers usually reply within 5 days