Comment 10 for bug 689328

Revision history for this message
Jared Greenwald (jetsaredim) wrote :

Here's the stack and a bit of the trace...

$ editmoin http://<personal_page_url>
Password for <my_moin_id>:
Traceback (most recent call last):
  File "/usr/bin/editmoin", line 503, in <module>
    main()
  File "/usr/bin/editmoin", line 497, in main
    edit(argv[0], template)
  File "/usr/bin/editmoin", line 459, in edit
    cookiename, cookievalue = get_session_cookie(user, url)
  File "/usr/bin/editmoin", line 442, in get_session_cookie
    cookie.load(result.info()["set-cookie"])
  File "/usr/lib/python2.7/rfc822.py", line 388, in __getitem__
    return self.dict[name.lower()]
KeyError: 'set-cookie'

Ran pdb to see what this was all about...

$ /usr/lib/python2.7/pdb.py /usr/bin/editmoin http://<personal_page_url>
> /usr/bin/editmoin(19)<module>()
-> """
(Pdb) b 442
Breakpoint 1 at /usr/bin/editmoin:442
(Pdb) r
Password for <my_moin_id>:
> /usr/bin/editmoin(442)get_session_cookie()
-> cookie.load(result.info()["set-cookie"])
(Pdb) print result.info()
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
Date: Thu, 15 Sep 2011 17:50:39 GMT
Expires: Wed, 15 Sep 2010 17:50:40 GMT
Keep-Alive: timeout=15, max=100
Pragma: no-cache
Proxy-Connection: close
Server: Apache/2.2.3 (Oracle) DAV/2 SVN/1.4.4-dev PHP/5.1.6 mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 mod_perl/2.0.4 Perl/v5.8.8
Vary: Cookie,User-Agent,Accept-Language

Not sure where set-cookie is coming from...?