[opencms-dev] isssue with after publish static export

Chirouze Olivier olivier.chirouze at volvo.com
Wed Aug 6 10:25:19 CEST 2008


Hi Stefano,

Don't know if you still have this problem.
However, I have seen strange behaviour with "AfterPublish" and manual
static export: it was due to rights on files.

Basically:

- I set some specific rights on directories (only some groups are
allowed)
- I login and click "publish"
=> the directories are correctly published, but only some of them are
actually exported.

- if I do a "manual" static export, everything is exported properly.

I did the test to allow all directories to everybody => the static
export worked fine.

This is something that seems unlogical to me: if you are allowed to
publish a directory, you should be allowed to export it as well.

Anyway, you might want to check that your welcome file doesn't have
specific rights that prevent it from being exported after publish.

Olivier


> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Stefano Crespi
> Sent: 31 July 2008 09:30
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] isssue with after publish static export
> 
> Hi all,
> 
> I have an issue with static export with opencms 7.0.4
> 
> I have configured static export for "incremental" export 
> using after publish
> and a set of export rules.
> All works fine but, when publishing something under
> /sites/187/section2/news/ all was exported but not the site 
> home page as
> declared in export resource.
> 
> Export rule involved was:
> 					<export-rule>
> 	
> <name>187.section2.news</name>
> 						<description> publishing
> resources  in section2/news export section2/news/, rss and site home
> page</description>
> 						<modified-resources>
> 	
> <regex>/sites/187/section2/news/.*</regex>
> 						</modified-resources>
> 						<export-resources>
> 	
> <uri>/sites/187/index.html</uri>
> 	
> <uri>/sites/187/section2/news/</uri>
> 	
> <uri>/sites/187/rss/</uri>
> 						</export-resources>
> 					</export-rule>
> Doing a full static export via administration console, 
> opencms export all
> and homepage too!
> 
> Some idea about this behiavour?
> Rule look like that appears in opencms documentation and examples.
> 
> Thank you in advance, Stefano.
> 
> Full opencms-importexport.xml was:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE opencms SYSTEM
> "http://www.opencms.org/dtd/6.0/opencms-importexport.dtd">
> 
> <opencms>
> 	<importexport>
> 		<importexporthandlers>
> 			<importexporthandler
> class="org.opencms.importexport.CmsVfsImportExportHandler"/>
> 			<importexporthandler
> class="org.opencms.module.CmsModuleImportExportHandler"/>
> 		</importexporthandlers>
> 		<import>
> 			<overwrite>true</overwrite>
> 			<convert>true</convert>
> 			<importversions>
> 				<importversion
> class="org.opencms.importexport.CmsImportVersion2"/>
> 				<importversion
> class="org.opencms.importexport.CmsImportVersion3"/>
> 				<importversion
> class="org.opencms.importexport.CmsImportVersion4"/>
> 				<importversion
> class="org.opencms.importexport.CmsImportVersion5"/>
> 				<importversion
> class="org.opencms.importexport.CmsImportVersion6"/>
> 				<importversion
> class="org.opencms.importexport.CmsImportVersion7"/>
> 			</importversions>
> 			<immutables>
> 				<resource uri="/system/"/>
> 				<resource uri="/system/categories/"/>
> 				<resource uri="/system/galleries/"/>
> 				<resource
> uri="/system/galleries/download/"/>
> 				<resource
> uri="/system/galleries/externallinks/"/>
> 				<resource
> uri="/system/galleries/htmlgalleries/"/>
> 				<resource 
> uri="/system/galleries/pics/"/>
> 				<resource uri="/system/login/"/>
> 				<resource uri="/system/modules/"/>
> 				<resource uri="/system/shared/"/>
> 				<resource uri="/system/workplace/"/>
> 				<resource 
> uri="/system/workplace/admin/"/>
> 				<resource 
> uri="/system/workplace/help/"/>
> 				<resource 
> uri="/system/workplace/locales/"/>
> 				<resource
> uri="/system/workplace/resources/"/>
> 				<resource
> uri="/system/workplace/restypes/"/>
> 				<resource 
> uri="/system/workplace/scripts/"/>
> 				<resource
> uri="/system/workplace/templates/"/>
> 				<resource 
> uri="/system/workplace/views/"/>
> 				<resource uri="/sites/"/>
> 			</immutables>
> 			<principaltranslations/>
> 			<ignoredproperties/>
> 		</import>
> 	</importexport>
> 	<staticexport enabled="true">
> 		<!--
> staticexporthandler>org.opencms.staticexport.CmsOnDemandStatic
> ExportHandler<
> /staticexporthandler -->
> 	
> <staticexporthandler>org.opencms.staticexport.CmsAfterPublishS
> taticExportHan
> dler</staticexporthandler>
> 	
> <linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLi
> nkSubstitution
> Handler</linksubstitutionhandler>		
> 		<exportpath>export</exportpath>
> 		<exportworkpath>temp</exportworkpath>
> 		<exportbackups>10</exportbackups>
> 		<defaultpropertyvalue>false</defaultpropertyvalue>
> 		<defaultsuffixes>
> 			<!--
> 			<suffix key=".jpg"/>
> 			<suffix key=".gif"/>
> 			<suffix key=".png"/>
> 			<suffix key=".doc"/>
> 			<suffix key=".xls"/>
> 			<suffix key=".ppt"/>
> 			<suffix key=".pdf"/>
> 			<suffix key=".txt"/>
> 			<suffix key=".css"/>
> 			<suffix key=".zip"/>
> 			<suffix key=".swf"/>
> 			-->
> 			<suffix key=".*"/>
> 		</defaultsuffixes>
> 		<rendersettings>
> 			<rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix>
> 	
> <vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix>
> 			<userelativelinks>true</userelativelinks>
> 
> 	
> <exporturl>http://be.tuo.telecomitalia.local${CONTEXT_NAME}/ha
> ndle404</expor
> turl>
> 			<plainoptimization>true</plainoptimization>
> 			<testresource uri="/system/shared/page.dtd"/>
> 			<resourcestorender>
> 				<!--<regex>/sites/.*</regex>-->
> 				<!--START Declare site export-->
> 				<regex>/sites/187/.*</regex>
> 	
> <regex>/system/modules/tuo.telecomitalia.mastersite/resources/
> .*</regex>
> 				<!--END Declare site export
> 	
> <regex>/system/workplace/commons/style/.*</regex>
> 				<regex>/system/galleries/.*</regex>
> 	
> <regex>/system/modules/.*/resources/.*</regex>
> 				-->
> 				<export-rules>
> 					<export-rule>
> 						<name>SYSTEM</name>
> 						
> <description>when publishing
> resource in /system nothing was done (full static export
> required)</description>
> 						<modified-resources>
> 	
> <regex>/system/.*</regex>
> 						</modified-resources>
> 						<export-resources>
> 	
> <uri>/system/lost-found/</uri>
> 						</export-resources>
> 					</export-rule>
> 
> 					<export-rule>
> 						<name>187</name>
> 						
> <description>when publishing
> resources not in "section" sections export all but 
> sections</description>
> 						<modified-resources>
> 	
> <regex>/sites/187/app/.*</regex>
> 	
> <regex>/sites/187/archive/.*</regex>
> 	
> <regex>/sites/187/footer/.*</regex>
> 	
> <regex>/sites/187/messages/.*</regex>
> 	
> <regex>/sites/187/rss/.*</regex>
> 	
> <regex>/sites/187/search/.*</regex>
> 						</modified-resources>
> 						<export-resources>
> 	
> <uri>/sites/187/app/</uri>
> 	
> <uri>/sites/187/archive/</uri>
> 	
> <uri>/sites/187/footer/</uri>
> 	
> <uri>/sites/187/messages/</uri>
> 	
> <uri>/sites/187/rss/</uri>
> 	
> <uri>/sites/187/search/</uri>
> 						</export-resources>
> 					</export-rule>
> 					<export-rule>
> 						
> <name>187.section1</name>
> 						
> <description>when publishing
> resources in section1 export section1 and rss</description>
> 						<modified-resources>
> 	
> <regex>/sites/187/section1/.*</regex>
> 						</modified-resources>
> 						<export-resources>
> 	
> <uri>/sites/187/section1/</uri>
> 	
> <uri>/sites/187/rss/</uri>
> 						</export-resources>
> 					</export-rule>
> 					<export-rule>
> 	
> <name>187.section2.community</name>
> 						
> <description>when publishing
> resources in section2/community export section2/community and
> rss</description>
> 						<modified-resources>
> 	
> <regex>/sites/187/section2/community/.*</regex>
> 						</modified-resources>
> 						<export-resources>
> 	
> <uri>/sites/187/section2/community/</uri>
> 	
> <uri>/sites/187/rss/</uri>
> 						</export-resources>
> 					</export-rule>
> 					<export-rule>
> 	
> <name>187.section2.incentive</name>
> 						
> <description>when publishing
> resources in section2/incentive export 
> section2/incentive</description>
> 						<modified-resources>
> 	
> <regex>/sites/187/section2/incentive/.*</regex>
> 						</modified-resources>
> 						<export-resources>
> 	
> <uri>/sites/187/section2/incentive/</uri>
> 						</export-resources>
> 					</export-rule>
> 					<export-rule>
> 	
> <name>187.section2.news</name>
> 						<description> publishing
> resources  in section2/news export section2/news/, rss and site home
> page</description>
> 						<modified-resources>
> 	
> <regex>/sites/187/section2/news/.*</regex>
> 						</modified-resources>
> 						<export-resources>
> 	
> <uri>/sites/187/index.html</uri>
> 	
> <uri>/sites/187/section2/news/</uri>
> 	
> <uri>/sites/187/rss/</uri>
> 						</export-resources>
> 					</export-rule>
> 					</export-rule>
> 				</export-rules>
> 			</resourcestorender>
> 		</rendersettings>
> 	</staticexport>
> 	<usercsvexport>
>         <separator>;</separator>
>         <columns>
>         	<column>description</column>
>             <column>lastname</column>
>             <column>firstname</column>
>             <column>email</column>
>             <column>address</column>
>             <column>zipcode</column>
>             <column>city</column>
>             <column>country</column>
>             
> <column>USERPREFERENCES_workplace-startupsettingssite</column>
>             
> <column>USERPREFERENCES_workplace-startupsettingslocale</column>
>             <column>password</column>
>         </columns>
> 	</usercsvexport>
> 	<repositories>
> 		<repository name="standard"
> class="org.opencms.repository.CmsRepository">
> 			<params>
>   				<param
> name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWr
> apperJsp</para
> m>
>   				<param
> name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWr
> apperXmlConten
> t</param>
>   				<param
> name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWr
> apperXmlPage</
> param>
>   				<param
> name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSyst
> emFolder</para
> m>
>   				<param
> name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperProp
> ertyFile</para
> m>
> 			</params>
> 			<filter type="include">
> 				<regex>/</regex>
> 				<regex>/__properties/.*</regex>
> 				<regex>/sites/.*</regex>
> 				<regex>/system/</regex>
> 				<regex>/system/__properties/.*</regex>
> 				<regex>/system/galleries/.*</regex>
> 				<regex>/system/modules/.*</regex>
> 				<regex>/system/workplace/.*</regex>
> 			</filter>
> 		</repository>
> 		<repository name="extended"
> class="org.opencms.repository.CmsRepository">
> 			<params>
> 				<param
> name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWr
> apperJsp</para
> m>
> 				<param
> name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWr
> apperXmlConten
> t</param>
> 				<param
> name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperXmlP
> age</param>
> 				<param
> name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSyst
> emFolder</para
> m>
> 				<param
> name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperProp
> ertyFile</para
> m>
> 			</params>
> 			<filter type="include">
> 				<regex>/</regex>
> 				<regex>/__properties/.*</regex>
> 				<regex>/sites/.*</regex>
> 				<regex>/system/</regex>
> 				<regex>/system/__properties/.*</regex>
> 				<regex>/system/galleries/.*</regex>
> 				<regex>/system/modules/</regex>
> 				<regex>/system/modules/[^/]*/</regex>
> 	
> <regex>/system/modules/[^/]*/__properties/.*</regex>
> 	
> <regex>/system/modules/[^/]*/resources/.*</regex>
> 			</filter>
> 		</repository>
> 	</repositories>
> </opencms>
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 



More information about the opencms-dev mailing list