Bug 500858

Summary: DeprecationWarning: socket.ssl() is deprecated.
Product: [Fedora] Fedora Reporter: Adam Tkac <atkac>
Component: offlineimapAssignee: Christoph Höger <choeger>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: choeger, clasohm, ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-27 14:30:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix deprecation warning none

Description Adam Tkac 2009-05-14 15:12:18 UTC
Description of problem:
There is annoying message written every time when I start offlineimap:

/usr/lib/python2.6/site-packages/offlineimap/imaplibutil.py:172:
DeprecationWarning: socket.ssl() is deprecated.  Use ssl.wrap_socket() instead.

Version-Release number of selected component (if applicable):
$ rpm -q offlineimap
offlineimap-6.0.3-3.fc11.noarch

How reproducible:
always

Steps to Reproduce:
1. configure offlineimap to use ssl:

[Repository remote-gmail]
type = IMAP
remotehost = imap.gmail.com
remoteuser = my_name
ssl = yes
remoteport = 993
remotepass = XXX

2. run offlineimap

Actual results:
annoying msg is written

Expected results:
no deprecation warnings

Additional info:
http://software.complete.org/software/issues/show/110

Comment 1 Christoph Höger 2009-05-14 17:40:52 UTC
Created attachment 344018 [details]
fix deprecation warning

This should fix.

Comment 2 Christoph Höger 2009-05-14 17:41:19 UTC
Hi,

thank you for reminding me on that. 
I've just sended a patch to upstream on that issue. 

I'll attach so you can test that out. Also there is a md5 deprecation I need to fix. I'll wait to see what upstream does with a new release. 

does it work for you?

Comment 3 Adam Tkac 2009-05-18 07:24:08 UTC
No, that patch doesn't work, warning is still printed. If I understand correctly DeprecationWarning says you should not use socket.ssl function.

Comment 4 Christoph Höger 2009-05-18 07:34:33 UTC
Oh man, sorry that patch was meant the other way around. Could you please try patch -R?

Comment 5 Adam Tkac 2009-05-18 09:54:32 UTC
Yes, reverse patch solves this issue.

Comment 6 Bug Zapper 2009-06-09 15:49:34 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Christoph Höger 2009-06-27 14:30:09 UTC
A patch has been sent upstream. Closing for now.