Issue #136 invalid

destroy of trash item

Reimar Bauer
created an issue

if we destroy a trashed item it gives

{{{

!python

Traceback (most recent call last): File "/home/ree/tmp/BilalAkhtar/env/lib/python2.7/site-packages/flask/app.py", line 1518, in call return self.wsgi_app(environ, start_response) File "/home/ree/tmp/BilalAkhtar/env/lib/python2.7/site-packages/flask/app.py", line 1506, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/home/ree/tmp/BilalAkhtar/env/lib/python2.7/site-packages/flask/app.py", line 1504, in wsgi_app response = self.full_dispatch_request() File "/home/ree/tmp/BilalAkhtar/env/lib/python2.7/site-packages/flask/app.py", line 1264, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/ree/tmp/BilalAkhtar/env/lib/python2.7/site-packages/flask/app.py", line 1262, in full_dispatch_request rv = self.dispatch_request() File "/home/ree/tmp/BilalAkhtar/env/lib/python2.7/site-packages/flask/app.py", line 1248, in dispatch_request return self.view_functionsrule.endpoint File "/home/ree/tmp/BilalAkhtar/MoinMoin/apps/frontend/views.py", line 596, in destroy_item item.destroy(comment=comment, destroy_item=destroy_item) File "/home/ree/tmp/BilalAkhtar/MoinMoin/items/init.py", line 412, in destroy self.rev.item.destroy_all_revisions() File "/home/ree/tmp/BilalAkhtar/MoinMoin/storage/middleware/protecting.py", line 235, in destroy_all_revisions self.destroy_revision(rev.revid) File "/home/ree/tmp/BilalAkhtar/MoinMoin/storage/middleware/protecting.py", line 231, in destroy_revision self.item.destroy_revision(revid) File "/home/ree/tmp/BilalAkhtar/MoinMoin/storage/middleware/indexing.py", line 827, in destroy_revision self.backend.remove(rev.name, revid) File "/home/ree/tmp/BilalAkhtar/MoinMoin/storage/middleware/routing.py", line 116, in remove backend.remove(revid) File "/home/ree/tmp/BilalAkhtar/MoinMoin/storage/backends/stores.py", line 171, in remove self._del_data(dataid) File "/home/ree/tmp/BilalAkhtar/MoinMoin/storage/backends/stores.py", line 165, in _del_data del self.data_store[dataid] File "/home/ree/tmp/BilalAkhtar/MoinMoin/storage/stores/fs.py", line 55, in delitem os.remove(self._mkpath(key)) OSError: [Errno 2] No such file or directory: '/home/ree/tmp/BilalAkhtar/wiki/data/content/data/d9afb46b226e43599e78659c54a1533e' }}}

Comments (1)

  1. Log in to comment