AnsweredAssumed Answered

How to enable link validation?

Question asked by pyppe on Sep 17, 2009
Latest reply on Sep 23, 2009 by pyppe
Hi.

How do I enable link validation? I use Alfresco 3.2 CE. I've defined the following properties in file $ALFRESCO_HOME/WEB-INF/classes/alfresco/repository.properties:

linkvalidation.pollInterval=5000
linkvalidation.retryInterval=120000
linkvalidation.disableOnFail=false

By setting linkvalidation.pollInterval > 0, I've manged to get the "Check Links" feature visible in Alfresco Web Client GUI. However, when I try to execute the Check Links -action following Exception gets thrown:

13:55:00,211  ERROR [alfresco.linkvalidation.LinkValidationAction] Link Validation Error:
org.alfresco.error.AlfrescoRuntimeException: 08170004 Link validation not performed - currently disabled
        at org.alfresco.linkvalidation.LinkValidationAction.executeImpl(LinkValidationAction.java:173)
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:127)
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:711)
        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:648)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:369)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:233)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:378)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:489)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:381)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)

Have I missed something (documentation about enabling this feature is very slim), or is this a bug?

Outcomes