[opencms-dev] Bug in 6.2.1: synchronizing operation fails because saveSiteRoot() executed more than once

Jonathan Woods jonathan.woods at scintillance.com
Thu Jun 8 08:38:01 CEST 2006


Summary:
 
There's a bug in org.opencms.synchronize.CmsSynchronize: it ends up trying
to call saveSiteRoot() more than once, and consequently fails.  Actually,
it's a more general problem associated with the use of
CmsRequestContext.saveSiteRoot() and .restoreSiteRoot(): those methods have
long out-lived their usefulness, because (i) it's wrong to assume that a
single user-initiated operation involves only one set of save/restore
operations, and (ii) it's not good practice to change the state of something
(an instance of RequestContext) just to get some operation carried out.
 
If this has affected you or you have a workaround (or you think I'm wrong!),
you may like to see the bug report I've just filed:
 
http://www.opencms.org/bugzilla/show_bug.cgi?id=1173
 
Jon
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060608/59c98329/attachment.htm>


More information about the opencms-dev mailing list