Your message dated Sun, 11 Dec 2016 10:34:10 +0000
with message-id <[email protected]>
and subject line Bug#847181: fixed in wikipediafs 0.4-7
has caused the Debian Bug report #847181,
regarding wikipediafs sometimes requires editing files in /usr
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 [email protected]
immediately.)


-- 
847181: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847181
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: wikipediafs
Version: 0.4-6.1
Severity: important

Hi,

appearantly it's possible to use custom cookie names with mediawiki, at
least wiki.hamburg.ccc.de uses "ccchhwikiUserName" as the cookie name
containing the username… thus I had to patch wikipediafs as following:

$ diff src/wikipediafs/user.py 
/usr/lib/python2.7/dist-packages/wikipediafs/user.py
69c69
<         cookie_list = []
---
>         cookies = {}
104c104,105
<         token_session = re.search('(.*?);', 
response.getheader("Set-Cookie")).group(1)
---
>         token_matches = re.search('((.*?)=(.*?));', 
> response.getheader("Set-Cookie"));
>         token_session = token_matches.group(1)
107c108
<             cookie_list.append(token_session)
---
>             cookies[token_matches.group(2)] = token_matches.group(3)
128c129
<         in_cookie = re.compile(': (.*?);')
---
>         in_cookie = re.compile(': ((.*?)=(.*?));')
130a132
>             printlog(self.logger, "debug", "cookie: %s" % cookie_value)
134c136
<                 cookie_list.append(it_matches.group(1))
---
>                 cookies[it_matches.group(2)] = it_matches.group(3)
139c141
<         printlog(self.logger, "debug", cookie_list)
---
>         printlog(self.logger, "debug", cookies)
141,146c143,151
<         if len(cookie_list) == 4:
<             cookie_list.pop()
<             printlog(self.logger, "info",
<                      "Logged in successfully with username %s" % 
self.username)
<                 #self.logger.info("; ".join(cookie_list))
<             return "; ".join(cookie_list)
---
>         if cookies.has_key('ccchhwikiUserName'):
>             cookie_str = ""
>             for k, v in cookies.iteritems():
>                 if cookie_str == "":
>                     cookie_str = "%s=%s;" % (k, v)
>                 else:
>                     cookie_str += " %s=%s;" % (k, v)
>             printlog(self.logger, "info", "Logged in successfully with 
> username %s" % self.username)
>             return cookie_str
148,149c153
<             printlog(self.logger, "warning",
<                      "Could not log in with username %s: %s" % self.username)
---
>             printlog(self.logger, "warning", "Could not log in with username 
> %s" % self.username)



-- 
cheers,
        Holger

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: wikipediafs
Source-Version: 0.4-7

We believe that the bug you reported is fixed in the latest version of
wikipediafs, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sebastien Delafond <[email protected]> (supplier of updated wikipediafs 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 [email protected])


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

Format: 1.8
Date: Sun, 11 Dec 2016 11:05:28 +0100
Source: wikipediafs
Binary: wikipediafs
Architecture: source all
Version: 0.4-7
Distribution: unstable
Urgency: medium
Maintainer: Sebastien Delafond <[email protected]>
Changed-By: Sebastien Delafond <[email protected]>
Description:
 wikipediafs - View and edit Wikipedia articles as if they were real files
Closes: 847180 847181
Changes:
 wikipediafs (0.4-7) unstable; urgency=medium
 .
   * Patch contributed by Holger Levsen <[email protected]> to fix the
     custom cookie names that can be used by some mediwawiki installs
     (Closes: #847180, #847181)
Checksums-Sha1:
 21265dc162fa4b8408e8a367cfe40c1497e7b2f2 1554 wikipediafs_0.4-7.dsc
 9aa4c6799e5122c59346cee71e5c3147455b4e93 4788 wikipediafs_0.4-7.debian.tar.xz
 f02b5c755cbe9654537c69b500524c0325dba80d 19304 wikipediafs_0.4-7_all.deb
 36030a3e94a0e4a1debdbcd1f0980c3327072944 5059 wikipediafs_0.4-7_amd64.buildinfo
Checksums-Sha256:
 97fe3fe0f5714cd45019bb3b1088c1ec906d121a0eb9b140af6d59743ebe446d 1554 
wikipediafs_0.4-7.dsc
 735ed955e35b40e2c483703456aeb82aca508790a807f8515bd95e33e1cd0a5c 4788 
wikipediafs_0.4-7.debian.tar.xz
 22fc41da600e06dfed5f85754917faa426a1f017dde4938fd66a2424658920aa 19304 
wikipediafs_0.4-7_all.deb
 6c8ffd86778ff9981c41292bf153a5c479b603d4db53841ffd83203f0e926cfb 5059 
wikipediafs_0.4-7_amd64.buildinfo
Files:
 84b08980953c7230f6b451a189a2e014 1554 utils extra wikipediafs_0.4-7.dsc
 c4894ff4259bd438d856f4283df30964 4788 utils extra 
wikipediafs_0.4-7.debian.tar.xz
 cc686276a6ddc5d4b0baeb692a1448c5 19304 utils extra wikipediafs_0.4-7_all.deb
 f7940d744d35b00bad15d3defbf55512 5059 utils extra 
wikipediafs_0.4-7_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJYTSbtAAoJEBC+iYPz1Z1kxQ0IAJG2yiD9bw9vs7kXISi5S/9J
TkE05b8lFXDvU9uSqCGpiE+oAMrZdWn7BJlELgLRtyMxohyvy36NtC3OlmD8Jc8J
2YaYtKbv9WtWgyBfiiTTLk3pydLu4+9wzjXblC19SPqLu/iEX68IGGobL5eocPey
qRuGsKBA/Pnex8bbvrtquixAV+bqDmL19ois+luoMWXHxv0PY6rjYSy+XF6OB3rr
dr+EwVjw7FLM1N5X/c1cLKknEM5mnTVhllxgq8n/hwXnK65P5A9EcomjOolt5m7c
xAQcveCKHnh11Qddjq711IRyKKtgSGkBMAGhkWBqvGEJjpVtRGczFSinVsdOoMA=
=12ex
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to