From b58125d07879d9b9d578d958bc5074a5bd452c4b Mon Sep 17 00:00:00 2001 From: Dave Ward Date: Sun, 21 Oct 2012 18:09:03 +0000 Subject: [PATCH] Merged V4.1-BUG-FIX to HEAD 42804: Merged BRANCHES/DEV/BELARUS/V4.1-BUG-FIX-2012_10_17 to BRANCHES/DEV/V4.1-BUG-FIX: 42748: ALF-14200: Adding Invalid Aspects Via CMIS ATOM API Results in NullPointerException 42810: Fix for ALF-15276 - sys:locale Attribute No Longer Available From jsnode 42814: ALF-15276 - small improvement to remove duplicated data from response 42824: ALF-15048: Merged PATCHES/V4.0.2 to V4.1-BUG-FIX 42724: ALF-16048: CLONE - Version history doesn't go beyond two versions (0.1 and 0.2) when dragged and dropped via CIFS from Mac Lion OSx 42739: ALF-16048: New files missing from previous check in 42742: ALF-16048: Another missing file. 42839: ALF-16417: Fix "Hybrid Sync - can retain invalid cloud tickets in a local cache" - retry once for invalid auth - also externalise the implicit/default cache config 42849: NodeDAO: Added new method to retrieve specific store ID - public Pair getStore(StoreRef storeRef); 42857: Merged DEV to V4.1-BUG-FIX 42821: ALF-13506 : WCMQS Example Application Caching Causes Changes to Inconsistently Appear on the Editorial Web Site Concurrency was improved for AssetImpl class. The returned values of the collections were made unmodifiable in the classes which implement Resource interface. 42872: ALF-15601: "Performance issue using CMIS method getChildren() - gets version history" - avoids getting the version history (an expensive operation) if possible i.e. in the case of current version (live) nodes like for getChildren 42900: Merged DEV to V4.1-BUG-FIX 42734: ALF-15335 : 'external' authentication subsystem debug information too scarce Extended debug information in the authentication subsystem. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@42904 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../node-common-SqlMap.xml | 14 +- config/alfresco/script-services-context.xml | 82 +++--- .../default/network-protocol-context.xml | 21 +- .../alfresco/RepositoryDiskInterface.java | 32 +++ .../filesys/repo/CommandExecutorImpl.java | 9 +- .../filesys/repo/ContentDiskDriver2.java | 82 +++++- .../filesys/repo/ContentDiskDriverTest.java | 176 +++++++++++++ .../filesys/repo/rules/DependentInstance.java | 21 ++ .../filesys/repo/rules/RuleEvaluatorImpl.java | 85 ++++--- .../repo/rules/ScenarioDeleteRestore.java | 112 +++++++++ .../rules/ScenarioDeleteRestoreInstance.java | 232 +++++++++++++++++ .../repo/rules/ScenarioOpenFileInstance.java | 31 ++- .../filesys/repo/rules/ScenarioResult.java | 32 +++ .../rules/commands/RestoreFileCommand.java | 82 ++++++ .../opencmis/AlfrescoCmisServiceImpl.java | 5 + .../alfresco/opencmis/CMISNodeInfoImpl.java | 235 +++++++++++++----- .../alfresco/opencmis/OpenCmisLocalTest.java | 1 + .../repo/domain/node/AbstractNodeDAOImpl.java | 17 +- .../alfresco/repo/domain/node/NodeDAO.java | 7 + .../repo/domain/node/NodeDAOTest.java | 15 ++ .../repo/domain/node/ibatis/NodeDAOImpl.java | 9 +- .../RemoteConnectorServiceImpl.java | 6 +- .../repo/version/Version2ServiceImpl.java | 32 ++- .../repo/version/VersionServiceImpl.java | 12 + .../service/cmr/version/VersionService.java | 17 +- 25 files changed, 1191 insertions(+), 176 deletions(-) create mode 100644 source/java/org/alfresco/filesys/repo/rules/DependentInstance.java create mode 100644 source/java/org/alfresco/filesys/repo/rules/ScenarioDeleteRestore.java create mode 100644 source/java/org/alfresco/filesys/repo/rules/ScenarioDeleteRestoreInstance.java create mode 100644 source/java/org/alfresco/filesys/repo/rules/ScenarioResult.java create mode 100644 source/java/org/alfresco/filesys/repo/rules/commands/RestoreFileCommand.java diff --git a/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml b/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml index 256ba83850..92623b2f08 100644 --- a/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml +++ b/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml @@ -628,18 +628,16 @@ alf_store - select - node.id as id, - store.id as storeId, - store.protocol as storeProtocol, - store.identifier as storeIdentifier, - node.uuid as uuid + store.id as id, + store.protocol as protocol, + store.identifier as identifier from alf_store store - join alf_node node on (store.root_node_id = node.id) where - store.id = #{id} + store.protocol = #{protocol} and + store.identifier = #{identifier}