diff --git a/config/alfresco/action-services-context.xml b/config/alfresco/action-services-context.xml index 821560d3a5..349ff953ab 100644 --- a/config/alfresco/action-services-context.xml +++ b/config/alfresco/action-services-context.xml @@ -10,7 +10,7 @@ - + @@ -414,7 +414,7 @@ - + @@ -468,7 +468,7 @@ - + false @@ -477,7 +477,7 @@ - + false diff --git a/config/alfresco/authentication-services-context.xml b/config/alfresco/authentication-services-context.xml index 77d732f5d6..e65d7ab19d 100644 --- a/config/alfresco/authentication-services-context.xml +++ b/config/alfresco/authentication-services-context.xml @@ -86,7 +86,7 @@ - + ${user.name.caseSensitive} @@ -182,7 +182,7 @@ - + diff --git a/config/alfresco/authority-services-context.xml b/config/alfresco/authority-services-context.xml index 06bb7fc42c..f62d644e25 100644 --- a/config/alfresco/authority-services-context.xml +++ b/config/alfresco/authority-services-context.xml @@ -62,7 +62,7 @@ - + diff --git a/config/alfresco/avm-console-context.xml b/config/alfresco/avm-console-context.xml index b81a726440..b26d31f92c 100644 --- a/config/alfresco/avm-console-context.xml +++ b/config/alfresco/avm-console-context.xml @@ -17,13 +17,13 @@ - + - + diff --git a/config/alfresco/core-services-context.xml b/config/alfresco/core-services-context.xml index 26d4681a10..d6945f3750 100644 --- a/config/alfresco/core-services-context.xml +++ b/config/alfresco/core-services-context.xml @@ -269,6 +269,12 @@ + + + + + + @@ -471,7 +477,7 @@ - + @@ -491,7 +497,7 @@ - + @@ -675,7 +681,7 @@ - + diff --git a/config/alfresco/model-specific-services-context.xml b/config/alfresco/model-specific-services-context.xml index de1236d733..c27800d16b 100644 --- a/config/alfresco/model-specific-services-context.xml +++ b/config/alfresco/model-specific-services-context.xml @@ -10,7 +10,7 @@ - + @@ -57,7 +57,7 @@ - + diff --git a/config/alfresco/network-protocol-context.xml b/config/alfresco/network-protocol-context.xml index b0ced99745..490f856887 100644 --- a/config/alfresco/network-protocol-context.xml +++ b/config/alfresco/network-protocol-context.xml @@ -77,7 +77,7 @@ - + diff --git a/config/alfresco/public-services-context.xml b/config/alfresco/public-services-context.xml index 75db5d0c25..bc77fc0515 100644 --- a/config/alfresco/public-services-context.xml +++ b/config/alfresco/public-services-context.xml @@ -147,6 +147,23 @@ + + + + org.alfresco.service.cmr.search.SearchService + + + + + + + + + + + + + @@ -692,7 +709,7 @@ - + diff --git a/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerAndSearcherFactory.java b/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerAndSearcherFactory.java index a06c8b2600..fd573a694a 100644 --- a/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerAndSearcherFactory.java +++ b/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerAndSearcherFactory.java @@ -38,6 +38,8 @@ import org.alfresco.service.cmr.repository.ContentService; import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.cmr.repository.StoreRef; import org.alfresco.service.namespace.NamespaceService; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; /** * Factory for AVM indexers and searchers @@ -47,6 +49,8 @@ import org.alfresco.service.namespace.NamespaceService; */ public class AVMLuceneIndexerAndSearcherFactory extends AbstractLuceneIndexerAndSearcherFactory { + private static Log s_logger = LogFactory.getLog(AVMLuceneIndexerAndSearcherFactory.class); + private DictionaryService dictionaryService; private NamespaceService nameSpaceService; @@ -61,6 +65,11 @@ public class AVMLuceneIndexerAndSearcherFactory extends AbstractLuceneIndexerAnd private ContentStore contentStore; + public AVMLuceneIndexerAndSearcherFactory() + { + s_logger.error("Creating AVMLuceneIndexerAndSearcherFactory"); + } + /** * Set the dictionary service * @param dictionaryService diff --git a/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerImpl.java b/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerImpl.java index b989304207..648393b4df 100644 --- a/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerImpl.java +++ b/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerImpl.java @@ -250,6 +250,10 @@ public class AVMLuceneIndexerImpl extends AbstractLuceneIndexerImpl impl { return docs; } + if (desc.isLayeredDirectory() || desc.isLayeredFile()) + { + return docs; + } List> paths = avmService.getHeadPaths(desc); if(paths.size() == 0) diff --git a/source/java/org/alfresco/repo/search/impl/lucene/AbstractLuceneIndexerAndSearcherFactory.java b/source/java/org/alfresco/repo/search/impl/lucene/AbstractLuceneIndexerAndSearcherFactory.java index a92e74f61d..ed837dfa15 100644 --- a/source/java/org/alfresco/repo/search/impl/lucene/AbstractLuceneIndexerAndSearcherFactory.java +++ b/source/java/org/alfresco/repo/search/impl/lucene/AbstractLuceneIndexerAndSearcherFactory.java @@ -83,18 +83,18 @@ public abstract class AbstractLuceneIndexerAndSearcherFactory implements LuceneI * indexer for each store within a transaction */ - private static Map> activeIndexersInGlobalTx = new HashMap>(); + private Map> activeIndexersInGlobalTx = new HashMap>(); /** * Suspended global transactions. */ - private static Map> suspendedIndexersInGlobalTx = new HashMap>(); + private Map> suspendedIndexersInGlobalTx = new HashMap>(); /** * Thread local indexers - used outside a global transaction */ - private static ThreadLocal> threadLocalIndexers = new ThreadLocal>(); + private ThreadLocal> threadLocalIndexers = new ThreadLocal>(); /** * The dafault timeout for transactions TODO: Respect this @@ -311,7 +311,7 @@ public abstract class AbstractLuceneIndexerAndSearcherFactory implements LuceneI * @param tx * @return - the transaction id */ - private static String getTransactionId(Transaction tx, StoreRef storeRef) + private String getTransactionId(Transaction tx, StoreRef storeRef) { if (tx instanceof SimpleTransaction) { diff --git a/source/java/org/alfresco/repo/search/impl/lucene/index/IndexInfo.java b/source/java/org/alfresco/repo/search/impl/lucene/index/IndexInfo.java index abb3cae363..868da72995 100644 --- a/source/java/org/alfresco/repo/search/impl/lucene/index/IndexInfo.java +++ b/source/java/org/alfresco/repo/search/impl/lucene/index/IndexInfo.java @@ -1442,7 +1442,7 @@ public class IndexInfo { public void beforeWithReadLock(String id, Set toDelete, Set read) throws IOException { - + closeDelta(id); } public void transition(String id, Set toDelete, Set read) throws IOException diff --git a/source/java/org/alfresco/repo/security/authentication/userModel.xml b/source/java/org/alfresco/repo/security/authentication/userModel.xml index ce732b07c2..03e995403a 100644 --- a/source/java/org/alfresco/repo/security/authentication/userModel.xml +++ b/source/java/org/alfresco/repo/security/authentication/userModel.xml @@ -80,6 +80,11 @@ d:text true + + true + false + false +