<div dir="ltr"><div>I've now extended the cmsshell with a class to trigger synchronize and experience the same here. This convince me that this is a bug in opencms.</div><div><br></div><div>I'm changing bootstrap-template.jsp in the external directory and trigger synchronize with cmsshell script:</div>
<div><br></div><div> login Admin admin</div><div> setCurrentProject Offline</div><div> synchronize</div><div> publishProjectAndWait</div><div> exit</div><div><br></div>
<div>The synchronize method has the following content:</div><div>public void synchronize() {</div><div><span class="" style="white-space:pre"> </span>I_CmsReport vI_CmsReport = new CmsShellReport(mCmsObject.getRequestContext().getLocale());</div>
<div><br></div><div><span class="" style="white-space:pre"> </span>CmsUserSettings vCmsUserSettings = new CmsUserSettings(mCmsObject);</div><div><br></div><div><span class="" style="white-space:pre"> </span>CmsSynchronize vCmsSynchronize = null;</div>
<div><span class="" style="white-space:pre"> </span>try {</div><div><span class="" style="white-space:pre"> </span>vCmsSynchronize = new CmsSynchronize(mCmsObject, vCmsUserSettings.getSynchronizeSettings(), vI_CmsReport);</div>
<div><span class="" style="white-space:pre"> </span>} catch (CmsException e) {</div><div><span class="" style="white-space:pre"> </span>e.printStackTrace();</div><div><span class="" style="white-space:pre"> </span>return;</div>
<div><span class="" style="white-space:pre"> </span>}</div><div><br></div><div><span class="" style="white-space:pre"> </span>System.out.println((vCmsSynchronize.getCount()-1)+" files synchronized.");</div><div>
<span class="" style="white-space:pre"> </span>}</div><div><br></div><div>The output from the method tells me that the changed file is published and the file is (still) marked as published but the Date Last Modified column in workplace isn't updated. If I do a Edit Source I see the changes.</div>
<div><br></div><div>If I leave out publishProjectAndWait the status change to Unpublished isn't discovered in workplace unless I log out and back in or open the file with Edit Source.</div><div><br></div><div>As publish do detect the file for publishing I'm uncertain if that workplace doesn't pickup the change is a minor side problem or it's part of the core problem?</div>
<div><br></div><div>Is this a bug or do I need to trigger a cache eviction or something?? I tried with clearCaches and purgeJspRepository without luck.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div>
Med venlig hilsen / Kind regards,<br><br>Christian Bjørnbak<br><br>Chefudvikler / Lead Developer<br>TouristOnline A/S<br>Islands Brygge 43<br>2300 København S<br>Denmark<br>TLF: +45 32888230<br>Dir. TLF: +45 32888235<br></div>
<br><br><div class="gmail_quote">2013/11/28 Christian Bjørnbak <span dir="ltr"><<a href="mailto:cbj@touristonline.dk" target="_blank">cbj@touristonline.dk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div style="font-family:arial,sans-serif;font-size:13px">Hi</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I've created a custom version of the com.alkacon.bootstrap.formatters module by exporting this with <a href="http://sourceforge.net/projects/opencmsantbuild/" style="font-family:arial;font-size:small" target="_blank">http://sourceforge.net/projects/opencmsantbuild/</a>, changing the name where ever it's used in directory and file names and within files and the importing it again.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">But eventhough the changes is visible in workplace and the offline preview and the module seems to be published the changes aren't visible online.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">The above ant script generate a manifest.xml and packs the modules and the calls cmsshell with following script:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div><span style="white-space:pre-wrap"> </span>login ${opencms.username} ${opencms.password}</div>
<div><span style="white-space:pre-wrap"> </span>setCurrentProject ${opencms.info.project}</div><div><span style="white-space:pre-wrap"> </span>deleteModule "${<a href="http://module.module.name/" target="_blank">module.module.name</a>}"</div>
<div><span style="white-space:pre-wrap"> </span>importModuleFromDefault "${name.zip}"</div><div><span style="white-space:pre-wrap"> </span>exit</div></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">This gives an output with lots of:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
<div> [java] Importing /system/modules/dk.touristonline.bootstrap.formatters/ ... o.k.</div><div> [java] Importing /system/modules/dk.touristonline.bootstrap.formatters/elements/ ... o.k.</div><div> [java] Importing /system/modules/dk.touristonline.bootstrap.formatters/formatters/ ... o.k.</div>
<div> [java] Importing /system/modules/dk.touristonline.bootstrap.formatters/functions/ ... o.k.</div><div> [java] Importing /system/modules/dk.touristonline.bootstrap.formatters/i18n/ ... o.k.</div><div> [java] Importing /system/modules/dk.touristonline.bootstrap.formatters/resources/ ... o.k.</div>
<div> [java] Importing /system/modules/dk.touristonline.bootstrap.formatters/resources/css/ ... o.k.</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
and</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div> [java] ( 1 / 55 ) Parsing links for "/system/modules/dk.touristonline.bootstrap.formatters/.config"... o.k.</div>
<div> [java] ( 2 / 55 ) Parsing links for "/system/modules/dk.touristonline.bootstrap.formatters/elements/login.jsp"... o.k.</div><div> [java] ( 3 / 55 ) Parsing links for "/system/modules/dk.touristonline.bootstrap.formatters/elements/module-clone-action.jsp"... o.k.</div>
<div> [java] ( 4 / 55 ) Parsing links for "/system/modules/dk.touristonline.bootstrap.formatters/elements/module-clone.jsp"... o.k.</div><div> [java] ( 5 / 55 ) Parsing links for "/system/modules/dk.touristonline.bootstrap.formatters/elements/nav-breadcrumb.jsp"... o.k.</div>
<div> [java] ( 6 / 55 ) Parsing links for "/system/modules/dk.touristonline.bootstrap.formatters/elements/nav-main.jsp"... o.k.</div><div> [java] ( 7 / 55 ) Parsing links for "/system/modules/dk.touristonline.bootstrap.formatters/elements/opencms-info.jsp"... o.k.</div>
<div> [java] ( 8 / 55 ) Parsing links for "/system/modules/dk.touristonline.bootstrap.formatters/formatters/blog-detail.jsp"... o.k.</div><div> [java] ( 9 / 55 ) Parsing links for "/system/modules/dk.touristonline.bootstrap.formatters/formatters/blog-detail.xml"... o.k.</div>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">og </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
<div> [java] Updating file /system/modules/dk.touristonline.bootstrap.formatters/elements/login.jsp ... o.k.</div><div> [java] Updating file /system/modules/dk.touristonline.bootstrap.formatters/elements/module-clone-action.jsp ... o.k.</div>
<div> [java] Updating file /system/modules/dk.touristonline.bootstrap.formatters/elements/module-clone.jsp ... o.k.</div><div> [java] Updating file /system/modules/dk.touristonline.bootstrap.formatters/elements/nav-breadcrumb.jsp ... o.k.</div>
<div> [java] Updating file /system/modules/dk.touristonline.bootstrap.formatters/elements/nav-main.jsp ... o.k.</div><div> [java] Updating file /system/modules/dk.touristonline.bootstrap.formatters/elements/opencms-info.jsp ... o.k.</div>
<div> [java] Updating file /system/modules/dk.touristonline.bootstrap.formatters/formatters/blog-detail.jsp ... o.k.</div><div> [java] Updating file /system/modules/dk.touristonline.bootstrap.formatters/formatters/blog.jsp ... o.k.</div>
<div> [java] Updating file /system/modules/dk.touristonline.bootstrap.formatters/formatters/carousel.jsp ... o.k.</div><div> [java] Updating file /system/modules/dk.touristonline.bootstrap.formatters/formatters/flexible.jsp ... o.k.</div>
<div> [java] Updating file /system/modules/dk.touristonline.bootstrap.formatters/formatters/imagegalleryshow.jsp ... o.k.</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
and</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div> [java] ( 1 / 51 ) Publishing folder /system/modules/dk.touristonline.bootstrap.formatters/ ... o.k.</div>
<div> [java] ( 2 / 51 ) Publishing folder /system/modules/dk.touristonline.bootstrap.formatters/elements/ ... o.k.</div><div> [java] ( 3 / 51 ) Publishing folder /system/modules/dk.touristonline.bootstrap.formatters/formatters/ ... o.k.</div>
<div> [java] ( 4 / 51 ) Publishing folder /system/modules/dk.touristonline.bootstrap.formatters/functions/ ... o.k.</div><div> [java] ( 5 / 51 ) Publishing folder /system/modules/dk.touristonline.bootstrap.formatters/i18n/ ... o.k.</div>
<div> [java] ( 6 / 51 ) Publishing folder /system/modules/dk.touristonline.bootstrap.formatters/resources/ ... o.k.</div><div> [java] ( 7 / 51 ) Publishing folder /system/modules/dk.touristonline.bootstrap.formatters/resources/css/ ... o.k.</div>
<div> [java] ( 8 / 51 ) Publishing folder /system/modules/dk.touristonline.bootstrap.formatters/resources/css/headers/ ... o.k.</div><div> [java] ( 9 / 51 ) Publishing folder /system/modules/dk.touristonline.bootstrap.formatters/resources/css/pages/ ... o.k.</div>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">and</div><div style="font-family:arial,sans-serif;font-size:13px"><div> [java] ( 1 / 462 ) Publishing file /system/modules/dk.touristonline.bootstrap.formatters/.config ... o.k.</div>
<div> [java] ( 2 / 462 ) Publishing file /system/modules/dk.touristonline.bootstrap.formatters/elements/login.jsp ... o.k.</div><div> [java] ( 3 / 462 ) Publishing file /system/modules/dk.touristonline.bootstrap.formatters/elements/module-clone-action.jsp ... o.k.</div>
<div> [java] ( 4 / 462 ) Publishing file /system/modules/dk.touristonline.bootstrap.formatters/elements/module-clone.jsp ... o.k.</div><div> [java] ( 5 / 462 ) Publishing file /system/modules/dk.touristonline.bootstrap.formatters/elements/nav-breadcrumb.jsp ... o.k.</div>
<div> [java] ( 6 / 462 ) Publishing file /system/modules/dk.touristonline.bootstrap.formatters/elements/nav-main.jsp ... o.k.</div><div> [java] ( 7 / 462 ) Publishing file /system/modules/dk.touristonline.bootstrap.formatters/elements/opencms-info.jsp ... o.k.</div>
<div> [java] ( 8 / 462 ) Publishing file /system/modules/dk.touristonline.bootstrap.formatters/formatters/blog-detail.jsp ... o.k.</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
If I open the file with Edit sourcecode, save and publish directly the changes become visible online.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
I've tried with setCurrentProjekt as both Online and Offline. No difference.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I've noticed that Date last modified doesn't change in Workplace when I import the module. How come? Does this have a connection to my base problem?</div>
</div><br clear="all"><div>Med venlig hilsen / Kind regards,<br><br>Christian Bjørnbak<br><br>Chefudvikler / Lead Developer<br>TouristOnline A/S<br>Islands Brygge 43<br>2300 København S<br>Denmark<br>TLF: <a href="tel:%2B45%2032888230" value="+4532888230" target="_blank">+45 32888230</a><br>
Dir. TLF: <a href="tel:%2B45%2032888235" value="+4532888235" target="_blank">+45 32888235</a><br></div>
</div>
</blockquote></div><br></div>