Your message dated Fri, 02 Aug 2013 06:03:21 +0000
with message-id <e1v58sp-0002h9...@franck.debian.org>
and subject line Bug#708642: fixed in nicovideo-dl 0.0.20120212-2
has caused the Debian Bug report #708642,
regarding nicovideo-dl: nicovideo-dl does not work at all
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
708642: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708642
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: nicovideo-dl
Version: 0.0.20120212-1
Severity: grave

Dear Maintainer,
nicovideo-dl does not work at all because of Bug #678035 "python2.7: urllib2
doesn't connect to some HTTPS sites".

Workaround from http://bugs.python.org/issue11220 can fix this problem.

--- /usr/bin/nicovideo-dl       2012-06-26 00:43:34.000000000 +0900
+++ nicovideo-dl        2013-05-17 20:08:10.635010732 +0900
@@ -45,6 +45,28 @@
 import codecs
 import xml.parsers.expat
 
+
+# custom HTTPS opener, banner's oracle 10g server supports SSLv3 only
+import httplib, ssl, urllib2, socket
+class HTTPSConnectionV3(httplib.HTTPSConnection):
+    def __init__(self, *args, **kwargs):
+        httplib.HTTPSConnection.__init__(self, *args, **kwargs)
+
+    def connect(self):
+        sock = socket.create_connection((self.host, self.port), self.timeout)
+        if self._tunnel_host:
+            self.sock = sock
+            self._tunnel()
+        try:
+            self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file, 
ssl_version=ssl.PROTOCOL_SSLv3)
+        except ssl.SSLError, e:
+            print("Trying SSLv3.")
+            self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file, 
ssl_version=ssl.PROTOCOL_SSLv23)
+
+class HTTPSHandlerV3(urllib2.HTTPSHandler):
+    def https_open(self, req):
+        return self.do_open(HTTPSConnectionV3, req)
+
 # Global constants
 const_version = '2011.02.08'
 const_project_url = 'http://sourceforge.jp/projects/nicovideo-dl'
@@ -397,9 +419,9 @@
                account_username = raw_input("Type Niconico E-mail account: ")
                account_password = getpass.getpass('Type Niconico password and 
press return: ')
 
-# Install cookie and proxy handlers
-urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler()))
-urllib2.install_opener(urllib2.build_opener(urllib2.HTTPCookieProcessor()))
+# Install cookie and custom https handlers
+urllib2.install_opener(urllib2.build_opener(urllib2.HTTPCookieProcessor(), 
HTTPSHandlerV3()))
+
 
 # Log in
 if account_username is not None:


-- System Information:
Debian Release: 7.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9.2-dirty (SMP w/12 CPU cores; PREEMPT)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nicovideo-dl depends on:
ii  python  2.7.3-4

nicovideo-dl recommends no packages.

nicovideo-dl suggests no packages.

-- debconf-show failed

--- End Message ---
--- Begin Message ---
Source: nicovideo-dl
Source-Version: 0.0.20120212-2

We believe that the bug you reported is fixed in the latest version of
nicovideo-dl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 708...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ying-Chun Liu (PaulLiu) <paul...@debian.org> (supplier of updated nicovideo-dl 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 01 Aug 2013 23:20:22 +0800
Source: nicovideo-dl
Binary: nicovideo-dl
Architecture: source all
Version: 0.0.20120212-2
Distribution: unstable
Urgency: low
Maintainer: Ying-Chun Liu (PaulLiu) <paul...@debian.org>
Changed-By: Ying-Chun Liu (PaulLiu) <paul...@debian.org>
Description: 
 nicovideo-dl - Download videos from www.nicovideo.jp
Closes: 708642
Changes: 
 nicovideo-dl (0.0.20120212-2) unstable; urgency=low
 .
   * Add debian/patches/002_sslworkaround.patch: workaround for a bug in python
     urllib2 that makes nicovideo-dl doesn't work at all. (Closes: #708642)
     - Thanks to Kouichi ONO <kou1....@gmail.com>
   * Bump Standards-Version to 3.9.4: nothing needs to be changed
Checksums-Sha1: 
 b1c040dbd9301d8f9d2f55a9f3a0b12f63d24fb4 1847 nicovideo-dl_0.0.20120212-2.dsc
 6f0db3b836e27789f7a22aa6f27f46f4397e05fd 5501 
nicovideo-dl_0.0.20120212-2.debian.tar.gz
 35216a638962bfe23805eb4fe46d0e5fc6b7aeb8 9562 
nicovideo-dl_0.0.20120212-2_all.deb
Checksums-Sha256: 
 edf0d61bef6d92c16de3bc4bc118b5270f640ded1c7d8d821783e703375a5228 1847 
nicovideo-dl_0.0.20120212-2.dsc
 d0763662325b4439286cff830a4a261845f26d06fd5728c8a55d0908cabc96bc 5501 
nicovideo-dl_0.0.20120212-2.debian.tar.gz
 8e1acd2ffdcae62a0b5861a314569e52133d57fccff767a912a1b671f95aed1c 9562 
nicovideo-dl_0.0.20120212-2_all.deb
Files: 
 b8083831d45e0f2ffcf9064f758a414d 1847 web optional 
nicovideo-dl_0.0.20120212-2.dsc
 a1027535c5daa4d554af23db41d80b95 5501 web optional 
nicovideo-dl_0.0.20120212-2.debian.tar.gz
 fdc5ce17d56a65beaafe59e54223820c 9562 web optional 
nicovideo-dl_0.0.20120212-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQIcBAEBCgAGBQJR+0k0AAoJEPgLgUbQQog23iAP/3gMe/gpI3NUc/YuvATzIsY+
vHFN18/RCC3lSKXRfTdaeFgCLt3waswhYMfP0ThLosAcBuT+7IDUYwEdF0nEcZ0Z
uIbmQD+vLD1syXRp96F8o4yrfG5Nd1Nm1SUzsiCxH9yR/zMErBXxsFUYcEie3j3f
8KBrIJuRv5fdTJPXby6DqZ6P6HgoXlKgbM0b9mFj8xeUFaKPgSMngVlsr2p9YnR1
enh22hatHBuN8bHbeaj3D1dp8L0zqdirPrc7UXG1+t5Fg6VojhbCZqADu63e6MPP
ggopcpEuDKF3ERwCoIhW0QN1u4giaSwJmXX6k4F3CtbSGG2fpvYXz/JuwsMZ2mF+
FTwH25Gp0GA7tZRmd5Y5WwvAUJOznv1c3jZWh2uvaREmYFg1/eYgn6gEOMbS7W1H
F7dnOm+ZfXD2uQBkzGmI4RviSrn1mW06pHqy8CYRCSVbPQMcQ+YPh3vAQi/z4foV
bltvU/GwfKGLnE8vui3Bcw1YuduoavA6abWqNgn5OPJyTQotWnb/grXXMNdtMWny
dMqYTcmRw7oSKHE7DOSV7XicpI/oXRubVeF/raSBddBRb47pwctTMvHQMhqYgRjR
U1CjU4+CMjvTj9Jz1DXa1SmlP29Raq3ewrkobhRWN4TS7Bz0pSEw7KAgnPg/s/T9
l4wCqd+emK/GDVMTSn6Y
=IYiu
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to