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 2005/06/16 06:21:11 UTC

DO NOT REPLY [Bug 35381] New: - [Patch] Deactivate fails

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35381>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35381

           Summary: [Patch] Deactivate fails
           Product: Lenya
           Version: Trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Workflow
        AssignedTo: dev@lenya.apache.org
        ReportedBy: dhc4z@virginia.edu


Deactivate attempt fails with the message:

An error occured.

Cannot write to source
[lenya://lenya/pubs/nextlev/content/authoring/index/index_en.xml.meta]: not locked!

org.apache.avalon.framework.CascadingRuntimeException: uncaught JavaScript
exception: at executeUsecase
(file:/C:/src/lenya-1.4.x.WEBDAV/build/lenya/webapp/lenya/usecases/usecases.js,
Line 168): org.apache.lenya.cms.usecase.UsecaseException:
java.lang.RuntimeException: java.lang.RuntimeException:
org.apache.lenya.cms.publication.DocumentException: java.lang.RuntimeException:
Cannot write to source
[lenya://lenya/pubs/nextlev/content/authoring/index/index_en.xml.meta]: not locked!


This patch seems to have resolved the problem for me:

Index:
C:/src/lenya-1.4.x.WEBDAV/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/usecases/Deactivate.java
===================================================================
---
C:/src/lenya-1.4.x.WEBDAV/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/usecases/Deactivate.java
(revision 190330)
+++
C:/src/lenya-1.4.x.WEBDAV/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/usecases/Deactivate.java
(working copy)
@@ -93,6 +93,12 @@
             for (int i = 0; i < documents.length; i++) {
                 nodes.addAll(Arrays.asList(documents[i].getRepositoryNodes()));
             }
+            
+            set = SiteUtil.getSubSite(this.manager, doc);
+            documents = set.getDocuments();
+            for (int i = 0; i < documents.length; i++) {
+                nodes.addAll(Arrays.asList(documents[i].getRepositoryNodes()));
+            }
 
             nodes.add(SiteUtil.getSiteStructure(this.manager,
                     doc.getIdentityMap(),

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org