1. Thomas Waldmann
  2. moin-2.0
  3. Issues
Issue #407 resolved

Assertion Error when reverting a deleted file

kumar rishabh
created an issue

Steps to recreate the Error

-Delete an item

-Try reverting the item from trash

-The Reverting Action gives assertion Error

AssertionError
AssertionError

Traceback (most recent call last)
File "/home/hellboy2k8/Documents/moinmoin/moinAlter/moin-2.0Back-venv-python/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/home/hellboy2k8/Documents/moinmoin/moinAlter/moin-2.0Back-venv-python/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/home/hellboy2k8/Documents/moinmoin/moinAlter/moin-2.0Back-venv-python/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/hellboy2k8/Documents/moinmoin/moinAlter/moin-2.0Back-venv-python/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/home/hellboy2k8/Documents/moinmoin/moinAlter/moin-2.0Back-venv-python/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/hellboy2k8/Documents/moinmoin/moinAlter/moin-2.0Back-venv-python/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/hellboy2k8/Documents/moinmoin/moinAlter/moin-2.0Back-venv-python/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/home/hellboy2k8/Documents/moinmoin/moinAlter/moin-2.0Back-venv-python/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/hellboy2k8/Documents/moinmoin/moinAlter/moin-2.0Back/MoinMoin/apps/frontend/views.py", line 630, in revert_item
item.revert(form['comment'])
File "/home/hellboy2k8/Documents/moinmoin/moinAlter/moin-2.0Back/MoinMoin/items/__init__.py", line 457, in revert
return self._save(self.meta, self.content.data, action=ACTION_REVERT, comment=comment)
File "/home/hellboy2k8/Documents/moinmoin/moinAlter/moin-2.0Back/MoinMoin/items/__init__.py", line 619, in _save
assert name is not None  # fail early
AssertionError

Comments (4)

  1. Log in to comment