Debian Bug report logs - #619681
wiki login fails

Package:; Maintainer for is Debian WWW Team <>;

Reported by: Ben Hutchings <>

Date: Sat, 26 Mar 2011 02:12:02 UTC

Severity: grave

Done: Paul Wise <>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to, Debian WWW Team <>:
Bug#619681; Package (Sat, 26 Mar 2011 02:12:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ben Hutchings <>:
New Bug report received and forwarded. Copy sent to Debian WWW Team <>. (Sat, 26 Mar 2011 02:12:05 GMT) Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: Ben Hutchings <>
To: Debian Bug Tracking System <>
Subject: wiki login fails
Date: Sat, 26 Mar 2011 02:09:47 +0000
Severity: grave

Please don't experimental on live sites!

My login attempt results in:


global name 'sha' is not defined

If you want to report a bug, please save this page and attach it to your bug report.

    Show debugging information
    Report bug
    Visit MoinMoin wiki


A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

    /srv/ in __init__ (self=<MoinMoin.request.request_wsgi.Request object at 0xbb81a32c>, env={'CONTENT_LENGTH': '59', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DOCUMENT_ROOT': '/etc/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1252,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-gb,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': '', ...})
        34 self._setup_vars_from_std_env(env)
        35 RequestBase.__init__(self, {})
        37 except Exception, err:
        global RequestBase = <class 'MoinMoin.request.RequestBase'>
        RequestBase.__init__ = <unbound method RequestBase.__init__>
        self = <MoinMoin.request.request_wsgi.Request object at 0xbb81a32c>

    /srv/ in __init__ (self=<MoinMoin.request.request_wsgi.Request object at 0xbb81a32c>, properties={})
        216 # set self.user even if _handle_auth_form raises an Exception
        217 self.user = None
        218 self.user = self._handle_auth_form(user_obj)
        219 del user_obj
        220 self.cfg.session_handler.after_auth(self, self.cfg.session_id_handler, self.user)
        self = <MoinMoin.request.request_wsgi.Request object at 0xbb81a32c>
        self.user = None
        self._handle_auth_form = <bound method Request._handle_auth_form of < object at 0xbb81a32c>>
        user_obj = None

    /srv/ in _handle_auth_form (self=<MoinMoin.request.request_wsgi.Request object at 0xbb81a32c>, user_obj=None)
        630 return self.handle_auth(user_obj, attended=True, username=username,
        631 password=password, login=login, logout=logout,
        632 stage=stage, openid_identifier=oid)
        634 def handle_auth(self, user_obj, attended=False, **kw):
        stage = None
        openid_identifier undefined
        oid = None

    /srv/ in handle_auth (self=<MoinMoin.request.request_wsgi.Request object at 0xbb81a32c>, user_obj=None, attended=True, **kw={'login': True, 'logout': False, 'openid_identifier': None, 'password': u'*******', 'stage': None, 'username': u'BenHutchings'})
        662 if stage and != stage:
        663 continue
        664 ret = authmethod.login(self, user_obj, **extra)
        665 user_obj = ret.user_obj
        666 cont = ret.continue_flag
        ret undefined
        authmethod = <MoinMoin.auth.MoinAuth instance at 0xb801528c>
        authmethod.login = <bound method MoinAuth.login of <MoinMoin.auth.MoinAuth instance at 0xb801528c>>
        self = <MoinMoin.request.request_wsgi.Request object at 0xbb81a32c>
        user_obj = None
        extra = {'attended': True, 'cookie': <SimpleCookie: >, 'openid_identifier': None, 'password': u'*******', 'username': u'BenHutchings'}

    /srv/ in login (self=<MoinMoin.auth.MoinAuth instance at 0xb801528c>, request=<MoinMoin.request.request_wsgi.Request object at 0xbb81a32c>, user_obj=None, **kw={'attended': True, 'cookie': <SimpleCookie: >, 'openid_identifier': None, 'password': u'*******', 'username': u'BenHutchings'})
        241 return ContinueLogin(user_obj, _('Missing password. Please enter user name and password.'))
        243 u = user.User(request, name=username, password=password,
        244 if u.valid:
        245 logging.debug("%s: successfully authenticated user %r (valid)" % (,
        u undefined
        global user = <module 'MoinMoin.user' from '/srv/'>
        user.User = <class MoinMoin.user.User at 0xb7f6acbc>
        request = <MoinMoin.request.request_wsgi.Request object at 0xbb81a32c>
        name undefined
        username = u'BenHutchings'
        password = u'*******'
        auth_method undefined
        self = <MoinMoin.auth.MoinAuth instance at 0xb801528c> = 'moin'

    /srv/ in __init__ (self=<MoinMoin.user.User at 0xbb81a7ac name:u'BenHutchings' valid:0>, request=<MoinMoin.request.request_wsgi.Request object at 0xbb81a32c>, id=None, name=u'BenHutchings', password=u'*******', auth_username='', **kw={'auth_method': 'moin'})
        319 if password:
        320 try:
        321 self.enc_password = encodePassword(password)
        322 except UnicodeError:
        323 pass # Should never happen
        self = <MoinMoin.user.User at 0xbb81a7ac name:u'BenHutchings' valid:0>
        self.enc_password = <HIDDEN>
        global encodePassword = <function encodePassword at 0xb7fa002c>
        password = u'*******'

    /srv/ in encodePassword (pwd='*******', charset='utf-8')
        162 pwd = pwd.encode(charset)
        164 pwd =
        165 pwd = '{SHA}' + base64.encodestring(pwd).rstrip()
        166 return pwd
        pwd = '*******'
        sha undefined
        ).digest undefined


global name 'sha' is not defined

    args = ("global name 'sha' is not defined",)
    message = "global name 'sha' is not defined"

System Details

    Date: Sat, 26 Mar 2011 02:07:56 +0000
    Platform: Linux widor 2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011 i686
    Python: Python 2.5.5 (/usr/bin/python)
    MoinMoin: Release 1.7.1 (release)

Reply sent to Paul Wise <>:
You have taken responsibility. (Sat, 26 Mar 2011 03:48:04 GMT) Full text and rfc822 format available.

Notification sent to Ben Hutchings <>:
Bug acknowledged by developer. (Sat, 26 Mar 2011 03:48:04 GMT) Full text and rfc822 format available.

Message #10 received at (full text, mbox):

From: Paul Wise <>
Subject: wiki: login issue fixed
Date: Sat, 26 Mar 2011 11:47:12 +0800
[Message part 1 (text/plain, inline)]
The wiki underwent an upgrade by DSA, which turned out to be incomplete.
I've finished most of the manual parts of the upgrade process and the
wiki is mostly back to normal now, login certainly works again.

[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <> to (Sat, 23 Apr 2011 07:33:38 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Mon Apr 21 12:53:36 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.