cancel
Showing results for 
Search instead for 
Did you mean: 

How to desactivate a patch (patch.siteLoadPatch.swsdp)

cpotter
Champ on-the-rise
Champ on-the-rise
I am trying to upgrade from a 3.4c to the trunk version (4.0.a) because I can't have IMAP working on the 3.4c version (was working on 3.4a)

I have Spaces in the Sites directory, even if I don't use "Share"

Unfortunately, everything goes find until a specific patch is applied :


18:27:23,678 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /var/alfresco/alf_data
18:27:23,709 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
18:27:24,670 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.fixUserQNames' (Fixes user store qnames to improve native authentication performance).
18:27:24,744 INFO  [org.alfresco.repo.admin.patch.impl.FixUserQNamesPatch] FixUserQNamesPatch: Commencing batch of 1 entries
18:27:24,816 INFO  [org.alfresco.repo.admin.patch.impl.FixUserQNamesPatch] FixUserQNamesPatch: Processed 1 entries out of 1. 100 % complete. Rate: 13 per second. 0 failures detected.
18:27:24,817 INFO  [org.alfresco.repo.admin.patch.impl.FixUserQNamesPatch] FixUserQNamesPatch: Completed batch of 1 entries
18:27:25,165 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.mtFixAdminExistingTenants' (Fix bootstrapped creator/modifier).
18:27:25,286 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.activitiesEmailTemplate' (null).
18:27:25,855 WARN  [org.alfresco.repo.admin.patch.PatchExecuter] Patch description is not available: Patch[ id=patch.activitiesEmailTemplate, description=patch.activitiesEmailTemplate.description,
fixesFromSchema=0, fixesToSchema=5005, targetSchema=5006]
18:27:25,871 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.newUserEmailTemplates' (Adds the email templates for notifying new users of their accounts).
18:27:26,276 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.inviteEmailTemplates' (Adds the email templates for inviting users to a Site).
18:27:26,619 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.htmlNotificationMailTemplates' (Adds HTML email templates for notifying users of new content).
18:27:26,951 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.imapSpacesLocaleTemplates' (Adds content templates for IMAP clients (Non-default locales only)).
18:27:27,700 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.fixAclInheritance' (Fixes any ACL inheritance issues.).
18:27:27,762 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.imap.clear.old.messages' (Remove old IMAP message templates).
18:27:27,969 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.migrateAttrDropOldTables' (Drops old alf_*attribute* tables and sequence).
18:27:27,999 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.siteLoadPatch.swsdp' (Loads a sample site into the repository.).
18:27:28,028 ERROR [org.alfresco.repo.admin.patch.PatchExecuter] 05130001 java.lang.IllegalArgumentException: nodeRef is a mandatory parameter
   at org.alfresco.util.ParameterCheck.mandatory(ParameterCheck.java:42)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.getNodePairNotNull(DbNodeServiceImpl.java:150)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.getChildByName(DbNodeServiceImpl.java:1715)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.alfresco.repo.tenant.MultiTNodeServiceInterceptor.invoke(MultiTNodeServiceInterceptor.java:104)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy8.getChildByName(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


It seems that this patch (patch.siteLoadPatch.swsdp) is not very useful : create a sample site.

Therefore I would like to have it not applied during the upgrade process, how can I do that ?

Thanks a lot
Christopher
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Override patch-service-context.xml and remove that bean. (or whatever the file name is - it's something like that.)

However I'd recommend against trying to upgrade to HEAD at the moment.    Its unlikely to work.

cpotter
Champ on-the-rise
Champ on-the-rise
Override patch-service-context.xml and remove that bean. (or whatever the file name is - it's something like that.)

However I'd recommend against trying to upgrade to HEAD at the moment.    Its unlikely to work.

Thank you for your quick reply.

The fact is that IMAP seems to work again in TRUNK (4.0.a). The last revision that was working was 3.4.a. And in between there are a lot of useful patches that required to leave the 3.4.a for a newer version but IMAP is mandatory

cpotter
Champ on-the-rise
Champ on-the-rise
So I deactivated the swsdp patch and Alfresco started.

However after importing my 3.4.x database, 4 IMAP templates where missing (should have been overwritten during import phase)

emailbody_texthtml_share.ftl
emailbody_texthtml_alfresco.ftl
emailbody_textplain_share.ftl
emailbody_textplain_alfresco.ftl

This raises another question, how is it possible to backup Sites and User Homes (our Groups and Users are on LDAP, so it is not an issue), without 'internal' repository as Data Dictionary