AnsweredAssumed Answered

Conflict between IMAP and Audit

Question asked by bertrandf on Jun 7, 2010
Latest reply on Jun 7, 2010 by bertrandf
Hi,
I've got some troubles with IMAP and Audit on Alfresco 3.3.

I've enable IMAP on my Alfresco where Audit is already enable, my alfresco-global.properties :
# Audit
audit.enabled=true
audit.useNewConfig=false

# IMAP
imap.server.enabled=true
imap.server.port=143
imap.server.host=192.168.1.135

In Thunderbird, when I try to access to Alfresco via IMAP, I've got the error :
LSUB failed. Unannotated service method SiteService.listSites


In debug mode, I find that SiteService is @PublicService (add on r19348 on HEAD).

When IMAP try to retrieve share sites (getNonFavouriteSites(user) in ImapServiceImpl) :
res = serviceRegistry.getSiteService().listSites(userName);

An error is thrown in AuditComponent.audit() method :
if (method.getDeclaringClass().isInterface() && method.getDeclaringClass().isAnnotationPresent(PublicService.class))
{
    throw new RuntimeException("Unannotated service method " + serviceName + "." + methodName);
}

Does some Auditable annotations are missing in SiteService Interface?

Sincerly.
(Sorry for my poor english)

Outcomes