Bug 2250191 - sieveshell CLI fails with AttributeError 'socket' object has no attribute 'sslsocket_class'
Summary: sieveshell CLI fails with AttributeError 'socket' object has no attribute 'ss...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-managesieve
Version: 38
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Sandro
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-16 21:41 UTC by Marius Hoch
Modified: 2023-11-26 03:08 UTC (History)
1 user (show)

Fixed In Version: python-managesieve-0.7.1-16.fc39 python-managesieve-0.7.1-14.fc38 python-managesieve-0.7.1-7.fc37
Clone Of:
Environment:
Last Closed: 2023-11-26 01:55:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab htgoebel managesieve issues 8 0 None opened ssl.wrap_socket() function, deprecated in Python 3.7 2023-11-16 23:42:42 UTC

Description Marius Hoch 2023-11-16 21:41:48 UTC
Currently the sieveshell CLI from python3-managesieve will fail to connect to and an SSL related error will occur.

See also: https://gitlab.com/htgoebel/managesieve/-/issues/8

Reproducible: Always

Steps to Reproduce:
1. Try to run the sieveshell CLI like, "sieveshell --user example-user example.foo"
Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/sieveshell", line 410, in <module>
    raise SystemExit(main())
                     ^^^^^^
  File "/usr/bin/sieveshell", line 401, in main
    shell(args.authname, args.username, args.passwd,
  File "/usr/bin/sieveshell", line 290, in shell
    sieve = managesieve.MANAGESIEVE(server, port=port, use_tls=use_tls)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/managesieve.py", line 225, in __init__
    typ, data = self.starttls(keyfile=keyfile, certfile=certfile)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/managesieve.py", line 665, in starttls
    sslobj = ssl_wrap_socket(self.sock, keyfile, certfile)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'socket' object has no attribute 'sslsocket_class'


Expected Results:  
Correctly login and start the sieve shell.

Comment 1 Sandro 2023-11-16 23:42:42 UTC
Thanks for the bug report and the PR. I saw the scratch build failed, so I'll comment on the PR.

Comment 2 Fedora Update System 2023-11-17 12:00:55 UTC
FEDORA-2023-c9e55553c1 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c9e55553c1

Comment 3 Fedora Update System 2023-11-17 12:02:30 UTC
FEDORA-2023-a656c42764 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a656c42764

Comment 4 Fedora Update System 2023-11-17 12:04:50 UTC
FEDORA-2023-4b9ff2cb2f has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-4b9ff2cb2f

Comment 5 Fedora Update System 2023-11-18 02:41:19 UTC
FEDORA-2023-c9e55553c1 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-c9e55553c1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-c9e55553c1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2023-11-18 02:47:45 UTC
FEDORA-2023-a656c42764 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-a656c42764`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a656c42764

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-11-18 02:57:11 UTC
FEDORA-2023-4b9ff2cb2f has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-4b9ff2cb2f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-4b9ff2cb2f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-11-26 01:55:08 UTC
FEDORA-2023-c9e55553c1 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2023-11-26 03:04:59 UTC
FEDORA-2023-a656c42764 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2023-11-26 03:08:00 UTC
FEDORA-2023-4b9ff2cb2f has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


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