You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2011/02/05 21:52:43 UTC

DO NOT REPLY [Bug 50722] New: Exception when trying to empty trash

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

           Summary: Exception when trying to empty trash
           Product: Lenya
           Version: 2.0.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Site Management
        AssignedTo: dev@lenya.apache.org
        ReportedBy: rainer.schoepf@gmx.net


On a fresh lenya 2.0.4 install, trying to empty the trash leads to (after
clicking on the delete button in the confirmation dialog):

java.lang.RuntimeException: The document
[test:trash:b005a910-315f-11e0-806c-93e5409e06ee:de] is not referenced in the
site structure.

        at
org.apache.lenya.cms.publication.DocumentImpl.getLocator(DocumentImpl.java:508)
        at
org.apache.lenya.cms.publication.DocumentManagerImpl.deleteAllLanguageVersions(DocumentManagerImpl.java:763)
        at
org.apache.lenya.cms.publication.DocumentManagerImpl$DeleteVisitor.visitDocument(DocumentManagerImpl.java:791)
        at
org.apache.lenya.cms.publication.DocumentImpl.accept(DocumentImpl.java:404)
        at
org.apache.lenya.cms.publication.util.DocumentSet.visit(DocumentSet.java:131)
        at
org.apache.lenya.cms.publication.DocumentManagerImpl.delete(DocumentManagerImpl.java:817)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at
org.apache.avalon.excalibur.component.ComponentProxyGenerator$ComponentInvocationHandler.invoke(ComponentProxyGenerator.java:143)
        at $Proxy56.delete(Unknown Source)
        at
org.apache.lenya.cms.site.usecases.EmptyTrash.doExecute(EmptyTrash.java:116)
        at
org.apache.lenya.cms.usecase.AbstractUsecase.execute(AbstractUsecase.java:319)

-- 
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-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 50722] Exception when trying to empty trash

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50722

--- Comment #2 from Rainer Schöpf <ra...@gmx.net> 2011-02-15 01:59:18 EST ---
Fixed in r1068192 (2.0.4), added test case in r1070690.

Needs to be merged to 2.1.X

-- 
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-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 50722] Exception when trying to empty trash

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50722

--- Comment #1 from Rainer Schöpf <ra...@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-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 50722] Exception when trying to empty trash

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50722

--- Comment #3 from Rainer Schöpf <ra...@gmx.net> 2011-02-20 09:24:56 EST ---
(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.

-- 
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-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 50722] Exception when trying to empty trash

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50722

Rainer Schöpf <ra...@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Rainer Schöpf <ra...@gmx.net> 2011-02-20 09:25:34 EST ---
Fixed for Release 2.0.4.

-- 
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-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org