cups-browsed finds the printers and removes them during discovery

オープン
#41 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
c

調査の方向性

まず、アップグレード後とダウングレード後の 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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenPrinting/cups-browsed のほかの issue

OpenPrinting/cups-browsed の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。