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 1145739 - cannot add samba printer without python-smbc
Summary: cannot add samba printer without python-smbc
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: system-config-printer
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Zdenek Dohnal
QA Contact: Petr Sklenar
URL:
Whiteboard:
Depends On: 1025946
Blocks: 1400961 1472751
TreeView+ depends on / blocked
 
Reported: 2014-09-23 15:23 UTC by Radka Brychtova
Modified: 2018-04-10 18:27 UTC (History)
6 users (show)

Fixed In Version: system-config-printer-1.4.1-20.el7
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of: 1025946
Environment:
Last Closed: 2018-04-10 18:26:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Backported patch (1.61 KB, patch)
2017-11-02 18:46 UTC, Zdenek Dohnal
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0984 0 None None None 2018-04-10 18:27:10 UTC

Description Radka Brychtova 2014-09-23 15:23:30 UTC
In RHEL7 repository is missing python-smbc package, which is needed by system-config-printer when try to add samba printer. 

+++ This bug was initially created as a clone of Bug #1025946 +++

Description of problem:
system-config-printer cannot add new printer from samba network without python-smbc

$ system-config-printer

** (system-config-printer.py:13193): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist

** (system-config-printer.py:13193): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
Caught non-fatal exception.  Traceback:
File "/usr/share/system-config-printer/newprinter.py", line 2531, in on_btnSMBVerify_clicked
    ctx = pysmb.smbc.Context (debug=debug, auth_fn=do_auth)
NameError: global name 'pysmb' is not defined
Continuing anyway..



Actual results:
no error message printer is just inaccessible


Expected results:
I should see error message: "You are stupid user, you have to install python-smbc before you try to add samba printer"


Additional info:

--- Additional comment from Tim Waugh on 2013-11-04 06:25:39 EST ---

Inaccessible? The Verify button won't work, but surely Forward works fine?

--- Additional comment from Jozef Mlich on 2013-11-04 09:08:31 EST ---

I apologize for misleading description of problem. I don't know whether forward button works. I didn't even tried it, because password was "wrong".

In case the python-smbc is not installed, the user enters correct password, its verification fails. At the end the users ask administrator of network printer for help. 

The problem is, the system-config-printer should distinguish whether the password is incorrect, or the necessary package is missing. 

The expected behaviour is to show correct error message. The error message should lead to installation of package instead of printer password change. But not in the opposite case, when the package is installed and functional.

In case of need of additional information, please run "yum remove python-smbc" command.

--- Additional comment from Tim Waugh on 2013-11-18 07:55:35 EST ---

I think the upstream system-config-printer commit 1dffd4a is the final bit of the fix for this.
https://git.fedorahosted.org/cgit/system-config-printer.git/commit/?id=1dffd4a

--- Additional comment from Fedora Update System on 2014-03-17 05:10:50 EDT ---

system-config-printer-1.4.4-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/system-config-printer-1.4.4-1.fc20

--- Additional comment from Fedora Update System on 2014-03-18 04:14:54 EDT ---

Package system-config-printer-1.4.4-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing system-config-printer-1.4.4-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4014/system-config-printer-1.4.4-1.fc20
then log in and leave karma (feedback).

--- Additional comment from Fedora Update System on 2014-03-30 02:03:19 EDT ---

system-config-printer-1.4.4-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Zdenek Dohnal 2017-11-02 18:46:03 UTC
Created attachment 1347098 [details]
Backported patch

Patch backported from upstream and works.

Steps to test it:

1) and 2) same as in previous comment

3) when trying to add SAMBA printer "Verify..." button is now grey and dialog shows "Verification requires the pysmbc module" now when mouse is focused on button.

Comment 21 errata-xmlrpc 2018-04-10 18:26:49 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, 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-2018:0984


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