RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1726383 - "lpadmin -p <queue> -o cupsSNMPSupplies:false" doesn't work
Summary: "lpadmin -p <queue> -o cupsSNMPSupplies:false" doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cups
Version: 8.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.1
Assignee: Zdenek Dohnal
QA Contact: Petr Dancak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-02 17:47 UTC by Bryan Mason
Modified: 2022-05-10 16:35 UTC (History)
4 users (show)

Fixed In Version: cups-2.2.6-41.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 15:21:27 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pdancak: needinfo+


Attachments (Terms of Use)
Proposed patch (840 bytes, patch)
2019-07-11 14:43 UTC, Zdenek Dohnal
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-36352 0 None None None 2021-10-06 16:42:34 UTC
Red Hat Knowledge Base (Solution) 6389401 0 None None None 2021-10-06 17:43:37 UTC
Red Hat Product Errata RHBA-2022:2032 0 None None None 2022-05-10 15:21:38 UTC

Description Bryan Mason 2019-07-02 17:47:24 UTC
Description of problem:

  running

    lpadmin -p printq -o cupsSNMPSupplies=false

  and

    lpadmin -p printq -o cupsIPPSupplies=false    

  doesn't work

Version-Release number of selected component (if applicable):

  cups-2.2.6-21.el8.x86_64

How reproducible:

  100%

Steps to Reproduce:

  lpadmin -p printq -o cupsSNMPSupplies=false
  grep SNMP /etc/cups/ppd/printq.ppd

Actual results:

  grep should find "*cupsSNMPSupplies: False" in the PPD file

Expected results:

  The expected line isn't written to the PPD file

Additional info:

  The lpadmin command creates a new PPD file, but when it sends
  the CUPS-Add-Modify-Printer request to the CUPS server, it doesn't
  include the "ppd-name" attribute in the request, so the server
  never uses the new PPD.

  (At least I think that's what's going on)

  I'll do further investigation to determine the root cause, work on a patch,
  and then submit the patch upstream.

Comment 1 Bryan Mason 2019-07-02 17:48:44 UTC
This issue also exists in RHEL 7.

Comment 2 Zdenek Dohnal 2019-07-09 06:39:41 UTC
Hi Bryan,

thank you for reporting the issue and investigation so far! I tried it on my Fedora 29 and it does not work too - I'll try to dig a little deeper before I clone bugzilla though.

Comment 3 Zdenek Dohnal 2019-07-09 11:11:44 UTC
Adding 'ppdchanged = 1;' line into 'if' statements where program checks if *cupsSNMPSupplies is on the line and if boolean value is used for cupsSNMPSupplies in 'options' variable does the trick.

I'll check it with upstream if it is correct way for fixing the issue.

Comment 4 Zdenek Dohnal 2019-07-11 13:08:42 UTC
Pull request https://github.com/apple/cups/pull/5610
Issue https://github.com/apple/cups/issues/5609

Comment 5 Zdenek Dohnal 2019-07-11 14:43:01 UTC
Created attachment 1589569 [details]
Proposed patch

Comment 29 errata-xmlrpc 2022-05-10 15:21:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (cups bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2032


Note You need to log in before you can comment on or make changes to this bug.