Description

I get a ConfigurationError the first time a visit a link. If I do a back and then visit the link again it works.

Steps to reproduce

  1. load wiki http:/127.0.0.1/mywiki

  2. click on any link
  3. if get ConfigurationError, click on back button in browser

  4. click on same link as above and the 2nd time will succeed

Example

here is the trace:

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

  1. /var/lib/python-support/python2.4/MoinMoin/request.py in init (self=<MoinMoin.request.RequestModPy object>, req=<mp_request object>)

    1. 1838 env=req.subprocess_env
    2. 1839 self._setup_vars_from_std_env(env)
    3. 1840 RequestBase.init(self)

    4. 1841
    5. 1842 except Exception, err:
    6. global RequestBase = <class 'MoinMoin.request.RequestBase'>

    7. RequestBase.init = <unbound method RequestBase.init>

    8. self = <MoinMoin.request.RequestModPy object>

  2. /var/lib/python-support/python2.4/MoinMoin/request.py in init (self=<MoinMoin.request.RequestModPy object>, properties={})

    1. 111 # order is important here!
    2. 112 self.dict.update(properties)

    3. 113 self._load_multi_cfg()
    4. 114
    5. 115 self.isSpiderAgent = self.check_spider()
    6. self = <MoinMoin.request.RequestModPy object>

    7. self._load_multi_cfg = <bound method RequestModPy._load_multi_cfg of <MoinMoin.request.RequestModPy object>>

  3. /var/lib/python-support/python2.4/MoinMoin/request.py in _load_multi_cfg (self=<MoinMoin.request.RequestModPy object>)

    1. 259 if not hasattr(self, 'cfg'):
    2. 260 from MoinMoin import multiconfig

    3. 261 self.cfg = multiconfig.getConfig(self.url)
    4. 262
    5. 263 def setAcceptedCharsets(self, accept_charset):
    6. self = <MoinMoin.request.RequestModPy object>

    7. self.cfg undefined

    8. multiconfig = <module 'MoinMoin.multiconfig' from '/var/lib/python-support/python2.4/MoinMoin/multiconfig.pyc'>

    9. multiconfig.getConfig = <function getConfig>

    10. self.url = '127.0.0.1/mywiki//FrontPage/WikiSandBox'

  4. /var/lib/python-support/python2.4/MoinMoin/multiconfig.py in getConfig (url='127.0.0.1/mywiki//FrontPage/WikiSandBox')

    1. 148 @return: config object for specific wiki
    2. 149 """
    3. 150 configName = _getConfigName(url)
    4. 151 try:
    5. 152 config = _config_cache[configName]
    6. configName undefined

    7. global _getConfigName = <function _getConfigName>

    8. url = '127.0.0.1/mywiki//FrontPage/WikiSandBox'

  5. /var/lib/python-support/python2.4/MoinMoin/multiconfig.py in _getConfigName (url='127.0.0.1/mywiki//FrontPage/WikiSandBox')

    1. 134 "farmconfig.py".
    2. 135 % {'url': url}

    3. 136 raise error.ConfigurationError(msg)

    4. 137
    5. 138
    6. global error = <module 'MoinMoin.error' from '/var/lib/python-support/python2.4/MoinMoin/error.pyc'>

    7. error.ConfigurationError = <class MoinMoin.error.ConfigurationError>

    8. msg = '\nCould not find a match for url: "127.0.0.1/mywi...essions in the "wikis" list in\n"farmconfig.py". \n'

ConfigurationError

Check your URL regular expressions in the "wikis" list in "farmconfig.py".

Component selection

Details

MoinMoin Version 1.5.3

OS and Version Debian GNU/Linux Etch

Python Version 2.4.4

Server Setup Apache2 mod_python

Server Details set up as per Debian setup page on moinmoin wiki

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

Workaround

Discussion

The error msg '\nCould not find a match for url: "127.0.0.1/mywi...essions in the "wikis" list in\n"farmconfig.py". \n' should be pretty clear (see HelpOnConfiguration):

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/ConfigurationError (last edited 2007-10-29 19:10:11 by localhost)