[MNT-2288] After upgrading vanilla Alfresco 4.1.1 to 4.1.2 IMAP subsystem fails to start Created: 11-Feb-13  Updated: 19-Mar-13  Resolved: 13-Feb-13

Status: Closed
Project: Service Packs and Hot Fixes
Component/s: IMAP
Affects Version/s: 4.1.2
Fix Version/s: 4.1.3

Type: Service Pack Request
Reporter: Levin Ulrich Assignee: Closed Bugs
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: 1 day, 1 hour
Original Estimate: 0 minutes
Environment:

Windows, Tomcat, MySQL


Attachments: File ALF-17917.diff     Zip Archive Upgrade-4.1.1.14-4.1.2.1.zip     File alfresco-global.properties     Text File alfresco.log    
Issue Links:
Related
relates to MNT-5531 'Imap Attachments' folder is not loca... Closed
is related to by MNT-2042 Setting folder path on IMAP causes er... Closed
Bug Priority:
Category 2
ACT Numbers:

60914


 Description   

Description

If Alfresco 4.1.1 has IMAP enabled with default settings and an upgrade is performed to 4.1.2 the subsystem will not start anymore due to the exception "Existing file or folder Imap Attachments already exists" or "Existing file or folder Imap Home already exists". Customer sees the Imap Home issue and I got at reprodcution the Imap Attachment one

Steps to reproduce

1. Setup Alfresco 4.1.1 and enable IMAP with the default values
2. Upgrade to 4.1.2 and check the log for IMAP subsystem is not starting

Expected Behaviour

Subsystem should start

Observed Behaviour

Subsystem is not starting

Analysis to date



 Comments   
Comment by Andrew Hunt [X] (Inactive) [ 11-Feb-13 ]

As part of ALF-15700 , the RepositoryFolderConfigBean was changed to address folders by QName rather than name.

The attachmnents folder was amended:
imap.attachments.folder.folderPath=${spaces.imap_attachments.childname}
spaces.imap_attachments.childname=cm:Imap Attachments

But the imap home was not.

One fix is just to change repository.properties :

  • imap.config.home.folderPath=Imap Home
    + imap.config.home.folderPath=cm:Imap Home

This will also need to be passed to documentation to document that

  • if a customer on 4.1.1 or earlier has explicitly set
    imap.config.home.folderPath=
    or
    imap.attachments.folder.folderPath
    in alfresco-global.properties, then they will need to change it to the QName in order to be able to upgrade.
Comment by Andrew Hunt [X] (Inactive) [ 11-Feb-13 ]

Can we change the repository.properties so that it works by default?

Comment by Derek Hulley [X] (Inactive) [ 12-Feb-13 ]

I think that the compensating action (as proposed in the diff file) is not safe as it will allow the bug to persist in cases where people have the property overridden. Instead, just fix the default repository.properties - this will cover most of the systems, I suspect - and a documentation process will have to follow for the rest.

Comment by Dave Ward [X] (Inactive) [ 13-Feb-13 ]

Corrected internationalization of Imap Home folder

Comment by Ravi Manthena [X] (Inactive) [ 15-Feb-13 ]

use build 85 to test this issue

Comment by Ravi Manthena [X] (Inactive) [ 15-Feb-13 ]

use build 85 to test this issue

Comment by Alfresco QA Team (Inactive) [ 20-Feb-13 ]

The issue is not reproduced on Alfresco Enterprise v4.1.3 (b85).
Environment: Windows Server 2008 R2 x64, MS SQL Server 2008 R2, net.sourceforge.jtds.jdbc.Driver jtds-1.2.5.jar, Tomcat 6.0.35 as windows service, JDK 6 U33 X64
ChristinaSh

Generated at Sat Aug 15 20:17:52 BST 2020 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.