Description

trying to unzip on current 1.9 changeset 4957 fba959635dcd by localhost:8080/Example2?action=AttachFile&do=unzip&target=1.7.2beta5.zip

2009-08-22 12:11:35,964 INFO MoinMoin.web.serving:41 127.0.0.1 "GET /Example2?action=AttachFile&do=unzip&target=1.7.2beta5.zip HTTP/1.1" 500 -
2009-08-22 12:11:36,005 ERROR werkzeug:106 Error on request:
Traceback (most recent call last):
  File "/home/user/workspace/moin-1.9/MoinMoin/support/werkzeug/serving.py", line 151, in run_wsgi
    execute(app)
  File "/home/user/workspace/moin-1.9/MoinMoin/support/werkzeug/serving.py", line 138, in execute
    application_iter = app(environ, start_response)
  File "/home/user/workspace/moin-1.9/MoinMoin/support/werkzeug/utils.py", line 248, in __call__
    return self.app(environ, start_response)
  File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 250, in __call__
    response = run(context)
  File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 70, in run
    response = dispatch(request, context, action_name)
  File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 118, in dispatch
    response = handle_action(context, pagename, action_name)
  File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 177, in handle_action
    handler(context.page.page_name, context)
  File "/home/user/workspace/moin-1.9/MoinMoin/action/AttachFile.py", line 506, in execute
    msg = handler(pagename, request)
  File "/home/user/workspace/moin-1.9/MoinMoin/action/AttachFile.py", line 997, in _do_unzip
    add_attachment(request, pagename, finalname, zf.read(origname), overwrite)
  File "/home/user/workspace/moin-1.9/MoinMoin/action/AttachFile.py", line 210, in add_attachment
    send_event(event)
  File "/home/user/workspace/moin-1.9/MoinMoin/events/__init__.py", line 242, in send_event
    retval = handle(event)
  File "/home/user/workspace/moin-1.9/MoinMoin/events/xapian_index.py", line 77, in handle
    handle_attached(event)
  File "/home/user/workspace/moin-1.9/MoinMoin/events/xapian_index.py", line 64, in handle_attached
    index.update_page(event.pagename)
  File "/home/user/workspace/moin-1.9/MoinMoin/search/builtin.py", line 237, in update_page
    self._do_queued_updates_InNewThread()
  File "/home/user/workspace/moin-1.9/MoinMoin/search/builtin.py", line 343, in _do_queued_updates_InNewThread
    args=(self._indexingRequest(self.request), ))
  File "/home/user/workspace/moin-1.9/MoinMoin/search/builtin.py", line 407, in _indexingRequest
    r = ScriptContext(request.url)
  File "/home/user/workspace/moin-1.9/MoinMoin/web/contexts.py", line 420, in __init__
    environ = create_environ(base_url=url) # XXX not sure about base_url, but makes "make underlay" work
  File "/home/user/workspace/moin-1.9/MoinMoin/support/werkzeug/test.py", line 711, in create_environ
    builder = EnvironBuilder(*args, **kwargs)
  File "/home/user/workspace/moin-1.9/MoinMoin/support/werkzeug/test.py", line 257, in __init__
    self.base_url = base_url
  File "/home/user/workspace/moin-1.9/MoinMoin/support/werkzeug/test.py", line 331, in _set_base_url
    raise ValueError('base url must not contain a query string '
ValueError: base url must not contain a query string or fragment

1.7.2beta5.zip

Steps to reproduce

  1. do this...

Example

Component selection

Details

MoinMoin Version

1.9 4957 fba959635dcd

OS and Version

Python Version

Server Setup

Server Details

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

Workaround

Discussion

calling test.py looks very strange too.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.9UnzipWithXapianEnabledBroken (last edited 2009-08-30 12:47:54 by ReimarBauer)