Description

When removing an entry in the OpenID server user preferences, the Moin 1.8 request API is used to get the request method, thus causing an error.

Steps to reproduce

  1. Have an OpenID server association set up.
  2. Go into the OpenID server user preferences.
  3. Try and delete the "trusted websites" association.

Component selection

Details

The traceback ends with this:

  File ".../MoinMoin/action/userprefs.py", line 95, in execute
    text, title, msg_class, msg = _create_page(request)
  File ".../MoinMoin/action/userprefs.py", line 67, in _create_page
    msg_class, msg = _handle_submission(request)
  File ".../MoinMoin/action/userprefs.py", line 34, in _handle_submission
    res = obj.handle_form()
  File ".../MoinMoin/userprefs/oidserv.py", line 57, in handle_form
    if self.request.request_method != 'POST':
  File ".../MoinMoin/web/contexts.py", line 224, in __getattr__
    return super(HTTPContext, self).__getattribute__(name)
AttributeError: 'AllContext' object has no attribute 'request_method'

MoinMoin Version

1.9.3

OS and Version

Kubuntu 8.04

Python Version

2.5.2

Server Setup

CGI

Server Details

Apache 2.2.8

Language you are using the wiki in (set in the browser/UserPreferences)

English

Workaround

You need to apply the given patch.

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.9RequestMethodErrorInOpenIDUserPrefs (last edited 2011-03-29 07:10:46 by ThomasWaldmann)