summaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/problem-reports/src
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-03-12 16:43:41 +0000
committerOlivier Lamy <olamy@apache.org>2012-03-12 16:43:41 +0000
commit5ff0f0ee146a5eaef9b191edca69a21aff457150 (patch)
treeffd2736a1b2e0f2eded098d33f352504072452f8 /archiva-modules/plugins/problem-reports/src
parentbe29e9e81cdc69ce1004222acefccb46a599a5a9 (diff)
downloadarchiva-5ff0f0ee146a5eaef9b191edca69a21aff457150.tar.gz
archiva-5ff0f0ee146a5eaef9b191edca69a21aff457150.zip
managed repositories add link to do a directories scan immediate.
Take about correctly close jackrabbit session in case of exception and open session when it's closed. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1299735 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins/problem-reports/src')
-rw-r--r--archiva-modules/plugins/problem-reports/src/main/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/archiva-modules/plugins/problem-reports/src/main/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumer.java b/archiva-modules/plugins/problem-reports/src/main/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumer.java
index 3b4917390..648e06add 100644
--- a/archiva-modules/plugins/problem-reports/src/main/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumer.java
+++ b/archiva-modules/plugins/problem-reports/src/main/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumer.java
@@ -181,6 +181,7 @@ public class DuplicateArtifactsConsumer
}
catch ( MetadataRepositoryException e )
{
+ repositorySession.close();
throw new ConsumerException( e.getMessage(), e );
}