Debian Bug report logs - #619681
wiki login fails

Package: wiki.debian.org; Maintainer for wiki.debian.org is Debian WWW Team <debian-www@lists.debian.org>;

Reported by: Ben Hutchings <ben@decadent.org.uk>

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

Severity: grave

Done: Paul Wise <pabs@debian.org>

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-bugs-dist@lists.debian.org, Debian WWW Team <debian-www@lists.debian.org>:
Bug#619681; Package wiki.debian.org. (Sat, 26 Mar 2011 02:12:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ben Hutchings <ben@decadent.org.uk>:
New Bug report received and forwarded. Copy sent to Debian WWW Team <debian-www@lists.debian.org>. (Sat, 26 Mar 2011 02:12:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Ben Hutchings <ben@decadent.org.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: wiki login fails
Date: Sat, 26 Mar 2011 02:09:47 +0000
Package: wiki.debian.org
Severity: grave

Please don't experimental on live sites!

My login attempt results in:

NameError

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

Traceback

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/wiki.debian.org/etc/moin/MoinMoin/request/request_wsgi.py 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': 'wiki.debian.org', ...})
        33
        34 self._setup_vars_from_std_env(env)
        35 RequestBase.__init__(self, {})
        36
        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/wiki.debian.org/etc/moin/MoinMoin/request/__init__.py 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 <Moin...quest.request_wsgi.Request object at 0xbb81a32c>>
        user_obj = None

    /srv/wiki.debian.org/etc/moin/MoinMoin/request/__init__.py 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)
        633
        634 def handle_auth(self, user_obj, attended=False, **kw):
        stage = None
        openid_identifier undefined
        oid = None

    /srv/wiki.debian.org/etc/moin/MoinMoin/request/__init__.py 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 authmethod.name != 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/wiki.debian.org/etc/moin/MoinMoin/auth/__init__.py 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.'))
        242
        243 u = user.User(request, name=username, password=password, auth_method=self.name)
        244 if u.valid:
        245 logging.debug("%s: successfully authenticated user %r (valid)" % (self.name, u.name))
        u undefined
        global user = <module 'MoinMoin.user' from '/srv/wiki.debian.org/etc/moin/MoinMoin/user.pyc'>
        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>
        self.name = 'moin'

    /srv/wiki.debian.org/etc/moin/MoinMoin/user.py 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/wiki.debian.org/etc/moin/MoinMoin/user.py in encodePassword (pwd='*******', charset='utf-8')
        162 pwd = pwd.encode(charset)
        163
        164 pwd = sha.new(pwd).digest()
        165 pwd = '{SHA}' + base64.encodestring(pwd).rstrip()
        166 return pwd
        pwd = '*******'
        sha undefined
        ).digest undefined

NameError

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 <pabs@debian.org>:
You have taken responsibility. (Sat, 26 Mar 2011 03:48:04 GMT) Full text and rfc822 format available.

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

Message #10 received at 619681-done@bugs.debian.org (full text, mbox):

From: Paul Wise <pabs@debian.org>
To: 619681-done@bugs.debian.org
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.

http://wiki.debian.org/MigrationStatus

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (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 <owner@bugs.debian.org>. Last modified: Mon Apr 21 12:53:36 2014; Machine Name: buxtehude.debian.org

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