From b66bae9b79206b36749e754a8db985d778a4f096 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Thu, 8 Jan 2009 11:48:48 +0000 Subject: [PATCH] Clean up and fixes for webstudio/merge issues with getDocumentPaths() and associated remote store methods. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12620 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../web-scripts-application-context.xml | 24 ++----------------- .../repo/web/scripts/bean/AVMRemoteStore.java | 4 ++-- .../web/scripts/bean/BaseRemoteStore.java | 2 +- 3 files changed, 5 insertions(+), 25 deletions(-) diff --git a/config/alfresco/web-scripts-application-context.xml b/config/alfresco/web-scripts-application-context.xml index f9fa0b832d..3d64d1b0cc 100644 --- a/config/alfresco/web-scripts-application-context.xml +++ b/config/alfresco/web-scripts-application-context.xml @@ -247,47 +247,27 @@ - - - - - - - - + + diff --git a/source/java/org/alfresco/repo/web/scripts/bean/AVMRemoteStore.java b/source/java/org/alfresco/repo/web/scripts/bean/AVMRemoteStore.java index c29b27f42c..9319a86200 100644 --- a/source/java/org/alfresco/repo/web/scripts/bean/AVMRemoteStore.java +++ b/source/java/org/alfresco/repo/web/scripts/bean/AVMRemoteStore.java @@ -77,9 +77,9 @@ public class AVMRemoteStore extends BaseRemoteStore */ public void setRootPath(String rootPath) { - if (rootPath != null && rootPath.length() == 0) + if (rootPath == null || rootPath.length() == 0) { - rootPath = "/"; + throw new IllegalArgumentException("Root path must be specified."); } this.rootPath = rootPath; diff --git a/source/java/org/alfresco/repo/web/scripts/bean/BaseRemoteStore.java b/source/java/org/alfresco/repo/web/scripts/bean/BaseRemoteStore.java index 97cdee6d00..841b4f26b2 100644 --- a/source/java/org/alfresco/repo/web/scripts/bean/BaseRemoteStore.java +++ b/source/java/org/alfresco/repo/web/scripts/bean/BaseRemoteStore.java @@ -227,7 +227,7 @@ public abstract class BaseRemoteStore extends AbstractWebScript String path = pathBuilder.toString(); if (logger.isDebugEnabled()) - logger.debug("Remote method: " + methodName + " Store Id: " + store + " Path: " + path); + logger.debug("Remote method: " + methodName.toUpperCase() + " Store Id: " + store + " Path: " + path); try {