Fix for Alfresco Content Services 7.x / 23.x / 25.x that prevents lost or incomplete metadata updates when the legacy
extracter.Asynchronousbean processes file updatings.
This repository ships a drop-in JAR module that transparently overrides Alfresco’s default asynchronous metadata extractor with an improved implementation (EnhancedAsynchronousExtractor) delivered under Hyland ticket MNT-25250.
If updating a file does not trigger the extract-metadata action on the new content, you need to apply this patch.
The patch applies to the following Alfresco operations and clients:
- Edit in Alfresco Share — opens the document metadata form in Share for editing with content field
- Upload New Version — replaces the current file with a newly uploaded version
- CMIS check-in / check-out — ensures
extract-metadatais executed after a new version is created via CMIS clients such as CMIS Workbench - This is handled by the new
ExtractOnNewVersionBehaviourclass, which binds to theAfterCreateVersionpolicy so that metadata extraction runs even when updates occur through CMIS instead of Share or REST.
Together, the asynchronous extractor and version behaviour ensure consistent metadata extraction across all upload and update paths (Share, ADF, CMIS, REST, WebDAV).
# 1. Clone and build
git clone https://github.com/aborroy/alfresco-fix-extracter-update.git
cd fix-extracter-updates
mvn clean package -DskipTests
# 2. Copy the resulting JAR into Alfresco
cp target/fix-extracter-updates-*.jar $ALF_HOME/modules/platform/
# 3. Restart AlfrescoAlternatively
fix-extracter-updates-*.jarcan be copied to$ALF_HOME/webapps/alfresco/WEB-INF/libfolder
Upon startup you should see:
INFO [repo.module.ModuleServiceImpl] [main] Installing module 'fix-extracter-updates' version 1.1.0.
That’s it, the patch is active.
- Drop the built JAR to
modules/platform/orwebapps/alfresco/WEB-INF/lib - Restart Tomcat
# Dockerfile
FROM alfresco/alfresco-content-repository-community:23.4.0
COPY target/fix-extracter-updates-*.jar /usr/local/tomcat/modules/platform/docker build -t acs-mnt-25250 .
docker-compose -f your-compose.yml up -d --buildSimply remove the JAR and restart Alfresco:
rm $ALF_HOME/modules/platform/fix-extracter-updates-*.jarBecause the patch only overrides Spring beans and adds a lightweight repository behaviour, no repository data or configuration is modified.
The patch introduces two complementary components:
-
EnhancedAsynchronousExtractor Replaces Alfresco’s legacy
extracter.Asynchronousbean to guarantee correct metadata extraction after content updates. -
ExtractOnNewVersionBehaviour New behaviour bound to the
AfterCreateVersionpolicy (cm:content) that triggers metadata extraction when a new version is created — closing the gap for CMIS and other versioning workflows.
These improvements ensure that the extract-metadata action always executes once per new content stream, regardless of how the content is uploaded or updated.
This patch is provided as-is.
For commercial support open a Hyland ticket quoting MNT-25250 or contact support@hyland.com.