Duplicated printer-device-id attribute breaks get-printer-attributes response
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- PostScript
- Star
- 54
- Fork
- 28
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenPrinting/ps-printer-app
-
Security IssueĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Alpine LinuxĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
-
LPR / LPDĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
OpenPrinting/ps-printer-app#13 · 1 bình luận ·
-
ps-printer-app - a release soon?Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 15/100
OpenPrinting/ps-printer-app#7 · 4 bình luận ·
Tất cả issue của OpenPrinting/ps-printer-app
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
JSON parser fails on commentsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
AloisSeckar/elrh-cosca#36 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
trillium-rs/trillium#988 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Civ13/Civ13#6229 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
security stellar tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100