Bug 1726383
| Summary: | "lpadmin -p <queue> -o cupsSNMPSupplies:false" doesn't work | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Bryan Mason <bmason> | ||||
| Component: | cups | Assignee: | Zdenek Dohnal <zdohnal> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Petr Dancak <pdancak> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 8.0 | CC: | byodlows, pdancak, psklenar, thozza | ||||
| Target Milestone: | rc | Keywords: | AutoVerified, Patch, TestCaseProvided, Triaged | ||||
| Target Release: | 8.1 | Flags: | pdancak:
needinfo+
pm-rhel: mirror+ |
||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | cups-2.2.6-41.el8 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2022-05-10 15:21:27 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
This issue also exists in RHEL 7. 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. 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. Pull request https://github.com/apple/cups/pull/5610 Issue https://github.com/apple/cups/issues/5609 Created attachment 1589569 [details]
Proposed patch
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 |
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.