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: [email protected] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
