cups-browsed finds the printers and removes them during discovery
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- c
- 領域
- backend, networking
調査の方向性
まず、アップグレード後とダウングレード後の cups-browsed の動作を比較し、get-printer-attributes の失敗およびプリンターの削除に関する cups-browsed_log のエントリを確認します。lpc status で検出とキューの状態を確認し、検出の完了後もプリンターが利用可能なままであることを確認します。
索引モデルが issue の本文から書いたものです。
説明
After using cups-browsed with the patches for CVE-2024-47076 and CVE-2024-47176 applied, a user opened bug #108350 [1] in Debian. More logfiles are attaches to the bugs. Do you have any idea what went wrong?
Thorsten
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1083050
after latest upgrade to 1.28.17-3+deb12u1 printing fails, cups-browsed finds the printers and removes them during discovery.
in the cups-browsed_log logfile there are entries like this one:
Mon Sep 30 15:58:37 2024 get-printer-attributes IPP call failed on printer ARCHIV (ipp://ARCHIV%20%40%20ps04._ipp._tcp.local/cups).
Mon Sep 30 15:58:37 2024 Printer ipp://ARCHIV%20%40%20ps04._ipp._tcp.local/cups (ps04.local, 192.168.60.34): Local queue ARCHIV, Remote CUPS Printer, Slave of None (To be created/updated)
Mon Sep 30 15:58:37 2024 DNS-SD IDs: Service name: "ARCHIV @ ps04", Service type: "_ipp._tcp", Domain: "local"
...
Mon Sep 30 15:59:03 2024 get-printer-attributes IPP call failed on printer ARCHIV (ipps://ARCHIV%20%40%20ps04._ipps._tcp.local/cups).
Mon Sep 30 15:59:03 2024 Printer ARCHIV (Host: ps04.local, Port: 631, URI: ipps://ARCHIV%20%40%20ps04._ipps._tcp.local/cups) disappeared and no slave available (or it is a slave of another printer), removing entry.
Mon Sep 30 15:59:03 2024 === Remote printer overview ===
Mon Sep 30 15:59:03 2024 Printer ipps://ARCHIV%20%40%20ps04._ipps._tcp.local/cups (ps04.local, 192.168.60.34): Local queue ARCHIV, Remote CUPS Printer, Slave of None (Disappeared)
Mon Sep 30 15:59:03 2024 ===============================
Mon Sep 30 15:59:03 2024 checking queues in 0s
Mon Sep 30 15:59:03 2024 Processing printer list ...
Mon Sep 30 15:59:03 2024 === Remote printer overview ===
Mon Sep 30 15:59:03 2024 Printer ipps://ARCHIV%20%40%20ps04._ipps._tcp.local/cups (ps04.local, 192.168.60.34): Local queue ARCHIV, Remote CUPS Printer, Slave of None (Disappeared)
Mon Sep 30 15:59:03 2024 ===============================
Mon Sep 30 15:59:03 2024 Removing entry ARCHIV (ipps://ARCHIV%20%40%20ps04._ipps._tcp.local/cups) and its CUPS queue.
Mon Sep 30 15:59:03 2024 Recording printer options for ARCHIV to /var/cache/cups/cups-browsed-options-ARCHIV
Mon Sep 30 15:59:03 2024 Unable to get PPD file for ARCHIV: Nicht gefunden
Mon Sep 30 15:59:03 2024 Recording option settings from the IPP attributes for ARCHIV:
Mon Sep 30 15:59:03 2024 Requested IPP attributes (get-printer-attributes) for printer with URI ipp://localhost/printers/ARCHIV
and afterwards the printer is remove from "lpc status" list.
if we downgrade to the old version without the latest secruity fixes everything works great.
the logfile looks like that:
Mon Sep 30 15:56:33 2024 Print queue ARCHIV is for remote CUPS queue(s) and we get notifications from CUPS, using implicit class device URI implicitclass://ARCHIV/
Mon Sep 30 15:56:33 2024 PPD generation successful: Apple Raster PPD generated.
Mon Sep 30 15:56:33 2024 Created temporary PPD file: /tmp/1918a567086ab5
Mon Sep 30 15:56:33 2024 Using PPD /tmp/1918a567086ab5 for queue ARCHIV.
Mon Sep 30 15:56:33 2024 Editing PPD file /tmp/1918a567086ab5 for printer ARCHIV, setting the option defaults of the previous cups-browsed session and doing client-side filtering of the job, saving the resulting PPD in /tmp/1918a5670872a1.
Mon Sep 30 15:56:33 2024 Non-raw queue ARCHIV with PPD file: /tmp/1918a5670872a1
Mon Sep 30 15:56:33 2024 Unsetting printer-is-shared bit.
Mon Sep 30 15:56:33 2024 Failed reading file /var/cache/cups/cups-browsed-remote-default-printer
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System Information:
- OS: [e.g. Ubuntu]
- Version [e.g. 22.04]
Additional context
Add any other context about the problem here.
- 主要言語
- C
- スター
- 51
- フォーク
- 21
- 平均マージ
- 22時間 49分
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenPrinting/cups-browsed のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
OpenPrinting/cups-browsed#82 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
OpenPrinting/cups-browsed#77 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
OpenPrinting/cups-browsed#76 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
OpenPrinting/cups-browsed#75 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
OpenPrinting/cups-browsed#71 ·
OpenPrinting/cups-browsed の issue をすべて見る
似ている issue
-
`sha256()` returns a wrong hash when libsql-ffi is built with gcc 11 or later対応中かも @colinhacks が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
tursodatabase/libsql#2333 ·
メンテナーはふだん 11 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
OpenPrinting/cups#1826 ·
メンテナーはふだん 1 日以内に返信
-
Backport to 3.0 advertises a suffix that does not exist対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
389ds/389-ds-base#8152 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
RetroAchievements/rcheevos#580 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信