Duplicated printer-device-id attribute breaks get-printer-attributes response
还没有人认领这个 Issue。
评估
调研方向
Start by tracing how the IPP Get-Printer-Attributes response is assembled and where printer-device-id is added; the issue does not name a source file or test. Reproduce with the shown ipptool command and check which response paths add the attribute. Done means the response contains printer-device-id only once and the command no longer reports a duplicate.
由索引模型根据 Issue 内容生成。
描述
Hi,
I've installed a printer via snapped ps-printer-app and tried to query it via ipptool for available attributes:
$ ipptool -tv ipp://localhost:8000/ipp/print/mytest get-printer-attributes.test
"/usr/share/cups/ipptool/get-printer-attributes.test":
Get-Printer-Attributes:
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en
printer-uri (uri) = ipp://localhost:8000/ipp/print/mytest
requested-attributes (1setOf keyword) = all,media-col-database
Get printer attributes using get-printer-attributes [FAIL]
RECEIVED: 15164 bytes in response
...
Duplicate "printer-device-id" attribute in printer-attributes-tag group
$ ipptool -tv ipp://localhost:8000/ipp/print/mytest get-printer-attributes.test | grep printer-device-id
printer-device-id (textWithoutLanguage) = MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,URP,PCL,PDF,POSTSCRIPT;MDL:HP LaserJet M1536dnf MFP;CLS:PRINTER;DES:Hewlett-Packard LaserJet M1536dnf MFP;MEM:MEM=112MB;COMMENT:RES=600x2;LEDMDIS:USB#ff#04#01;U
printer-device-id (textWithoutLanguage) = MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,URP,PCL,PDF,POSTSCRIPT;MDL:HP LaserJet M1536dnf MFP;CLS:PRINTER;DES:Hewlett-Packard LaserJet M1536dnf MFP;MEM:MEM=112MB;COMMENT:RES=600x2;LEDMDIS:USB#ff#04#01;U
Duplicate "printer-device-id" attribute in printer-attributes-tag group
I was not able to debug further at the moment, I will let you know if I find something.
- 主要语言
- PostScript
- 星标
- 54
- 派生
- 28
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenPrinting/ps-printer-app 的其他 Issue
-
Security Issue未关闭
难度 1/5 1 小时以内 新手友好度 20/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
Alpine Linux未关闭
难度 2/5 1-3 小时 新手友好度 25/100
-
LPR / LPD未关闭
难度 5/5 一周以上 新手友好度 20/100
OpenPrinting/ps-printer-app#13 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 15/100
OpenPrinting/ps-printer-app#7 · 4 条评论 ·
查看 OpenPrinting/ps-printer-app 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
AloisSeckar/elrh-cosca#36 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
trillium-rs/trillium#988 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
security stellar tech-debt
难度 2/5 1-3 小时 新手友好度 76/100