Edgewall Software
Modify

Opened 15 years ago

Closed 14 years ago

#8971 closed defect (worksforme)

Trac internal error on wiki submit changes without wiki_admin permission

Reported by: jan.hadas@… Owned by:
Priority: normal Milestone:
Component: wiki system Version: 0.12dev
Severity: normal Keywords: permission, needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When user with permissions wiki_view, wiki_create, wiki_modify tries to submit changes on edited wiki page, assertion error arises: "AssertionError: Response not started".

Traceback from Trac standalone deamon: Exception happened during processing of request from ('127.0.0.1', 59467) Traceback (most recent call last):

  File "/usr/lib/python2.6/SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 331, in handle
    self.handle_one_request()
  File "build/bdist.linux-i686/egg/trac/web/wsgi.py", line 187, in handle_one_request
    gateway.run(self.server.application)
  File "build/bdist.linux-i686/egg/trac/web/wsgi.py", line 99, in run
    self._write('')
  File "build/bdist.linux-i686/egg/trac/web/wsgi.py", line 205, in _write
    assert self.headers_set, 'Response not started'
AssertionError: Response not started

Traceback from mod_python:

[Fri Jan 15 14:51:37 2010] [error] [client 194.228.27.162] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last):, referer: https://doxologic.net/trac/globus/wiki/ProjectReports?action=edit
[Fri Jan 15 14:51:37 2010] [error] [client 194.228.27.162] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n    result = object(req), referer: https://doxologic.net/trac/globus/wiki/ProjectReports?action=edit
[Fri Jan 15 14:51:37 2010] [error] [client 194.228.27.162] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/Trac-0.12dev_r0-py2.4.egg/trac/web/modpython_frontend.py", line 149, in handler\n    gateway.run(dispatch_request), referer: https://doxologic.net/trac/globus/wiki/ProjectReports?action=edit
[Fri Jan 15 14:51:37 2010] [error] [client 194.228.27.162] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/Trac-0.12dev_r0-py2.4.egg/trac/web/wsgi.py", line 99, in run\n    self._write(''), referer: https://doxologic.net/trac/globus/wiki/ProjectReports?action=edit
[Fri Jan 15 14:51:37 2010] [error] [client 194.228.27.162] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/Trac-0.12dev_r0-py2.4.egg/trac/web/modpython_frontend.py", line 117, in _write\n    self._send_headers(), referer: https://doxologic.net/trac/globus/wiki/ProjectReports?action=edit
[Fri Jan 15 14:51:37 2010] [error] [client 194.228.27.162] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/Trac-0.12dev_r0-py2.4.egg/trac/web/modpython_frontend.py", line 95, in _send_headers\n    assert self.headers_set, 'Response not started', referer: https://doxologic.net/trac/globus/wiki/ProjectReports?action=edit
[Fri Jan 15 14:51:37 2010] [error] [client 194.228.27.162] PythonHandler trac.web.modpython_frontend: AssertionError: Response not started, referer: https://doxologic.net/trac/globus/wiki/ProjectReports?action=edit

The error don't arrises with wiki_admin permission.

Version information:

Trac:  	0.12dev-r0
Python: 	2.4.3 (#1, Jun 11 2009, 14:09:58) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)]
setuptools: 	0.6c9
pytz: 	2009r
SQLite: 	3.3.6
pysqlite: 	2.3.3
Genshi: 	0.6dev-r0
Babel: 	0.9.4
mod_python: 	3.2.8
Subversion: 	1.6.4 (r38063)
jQuery:	1.3.2

Attachments (0)

Change History (5)

comment:1 by Remy Blank, 15 years ago

Could you please tell us which revision of trunk you are using? Your setuptools hasn't been able to find it out, and says 0.12dev-r0.

comment:2 by anonymous, 15 years ago

I am using revision 8812.

comment:3 by Remy Blank, 15 years ago

Keywords: needinfo added; wiki wiki_modifi wiki_admin removed

I cannot reproduce the issue with current trunk. Editing existing pages and creating new ones works with only WIKI_VIEW, WIKI_EDIT and WIKI_CREATE.

There's something strange in your report: the first traceback shows that you are using Python 2.6, the second and the version info show Python 2.4. Could it be that you have multiple Trac installations and that they somehow interfere?

comment:4 by Remy Blank, 15 years ago

Milestone: 0.12

Removing milestone until the issue can be reproduced.

comment:5 by Christian Boos, 14 years ago

Resolution: worksforme
Status: newclosed

No feedback, closing.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.