https://issues.apache.org/bugzilla/show_bug.cgi?id=50722

--- Comment #1 from Rainer Schöpf <rainer.scho...@gmx.net> 2011-02-07 15:08:20 
EST ---
Analysis of the bug:

The exception happens if you try to delete more than one language version of a
document. EmptyTrash.doExecute passes a list of documents to
DocumentManager.delete. Different language versions are passed as separate
documents.

However, the method DeleteVisitor.visitDocument (in DocumentManagerImpl) calls
deleteAllLanguageVersions on each of the documents, hence on each of the
language versions, ie. tries to delete the same thing several times.

Replacing the call of deleteAllLanguageVersions by delete seems to do the
trick.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lenya.apache.org
For additional commands, e-mail: dev-h...@lenya.apache.org

Reply via email to