Summary: | Exception when trying to empty trash | ||
---|---|---|---|
Product: | Lenya | Reporter: | Rainer Schöpf <rainer.schoepf> |
Component: | Site Management | Assignee: | Lenya Developers <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.0.4 | ||
Target Milestone: | 2.0.4 | ||
Hardware: | All | ||
OS: | All |
Description
Rainer Schöpf
2011-02-05 15:52:40 UTC
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. (In reply to comment #2) > Fixed in r1068192 (2.0.4), added test case in r1070690. > > Needs to be merged to 2.1.X Done in r1072602. Fixed for Release 2.0.4. |