From 3ba71950969414447fc6bf65412b98c33731ca54 Mon Sep 17 00:00:00 2001 From: pkupczyk <pkupczyk> Date: Tue, 22 Dec 2015 08:30:33 +0000 Subject: [PATCH] SSDM-2718: temporary rollback changes from rev 35363 because they break multiple system tests: - openbis-oai-pmh - ch.ethz.sis.openbis.oai_pmh.systemtests.PublishServletTest - screening - ch.systemsx.cisd.openbis.screening.systemtests.AggregatedFeatureVectorsTest.dropAnExampleDataSet - js-tests - getExperimentImageMetadata() After the rollback the new tests: ExecuteServiceTest and SearchServiceTest would not work, therefore they got disabled. Once we fix the core plugins problem they should be enabled again. SVN: 35391 --- .../ExposablePropertyPlaceholderConfigurer.java | 14 ++++---------- ...ginsInjectingPropertyPlaceholderConfigurer.java | 8 +++++--- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/common/source/java/ch/systemsx/cisd/common/spring/ExposablePropertyPlaceholderConfigurer.java b/common/source/java/ch/systemsx/cisd/common/spring/ExposablePropertyPlaceholderConfigurer.java index 2df08293c9f..36b25f0b72c 100644 --- a/common/source/java/ch/systemsx/cisd/common/spring/ExposablePropertyPlaceholderConfigurer.java +++ b/common/source/java/ch/systemsx/cisd/common/spring/ExposablePropertyPlaceholderConfigurer.java @@ -26,8 +26,8 @@ import org.springframework.core.Constants; import org.springframework.util.StringUtils; /** - * Bean that should be used instead of the {@link PropertyPlaceholderConfigurer} if you want to have - * access to the resolved properties not obligatory from the Spring context. e.g. from JSP or so. + * Bean that should be used instead of the {@link PropertyPlaceholderConfigurer} if you want to have access to the resolved properties not obligatory + * from the Spring context. e.g. from JSP or so. * * @author Christian Ribeaud */ @@ -35,10 +35,11 @@ public class ExposablePropertyPlaceholderConfigurer extends PropertyPlaceholderC { /** Standard bean name in an application context file. */ public static final String PROPERTY_CONFIGURER_BEAN_NAME = "propertyConfigurer"; - + private Properties resolvedProps; private int systemPropertiesMode = PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_FALLBACK; + private static final Constants constants = new Constants(PropertyPlaceholderConfigurer.class); /** Returns the resolved properties. */ @@ -50,7 +51,6 @@ public class ExposablePropertyPlaceholderConfigurer extends PropertyPlaceholderC // // PropertyPlaceholderConfigurer // - @Override protected final String convertPropertyValue(final String originalValue) @@ -58,7 +58,6 @@ public class ExposablePropertyPlaceholderConfigurer extends PropertyPlaceholderC // Can handle null value return StringUtils.trimWhitespace(originalValue); } - @Override public void setSystemPropertiesModeName(String constantName) throws IllegalArgumentException @@ -85,11 +84,6 @@ public class ExposablePropertyPlaceholderConfigurer extends PropertyPlaceholderC final String keyStr = key.toString(); resolvedProps.setProperty(keyStr, getResolvedProperty(props, keyStr)); } - injectPropertiesInto(resolvedProps); - } - - protected void injectPropertiesInto(Properties properties) - { } @SuppressWarnings("deprecation") diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/coreplugin/CorePluginsInjectingPropertyPlaceholderConfigurer.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/coreplugin/CorePluginsInjectingPropertyPlaceholderConfigurer.java index 46904943707..ba56c8cf567 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/coreplugin/CorePluginsInjectingPropertyPlaceholderConfigurer.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/coreplugin/CorePluginsInjectingPropertyPlaceholderConfigurer.java @@ -16,6 +16,7 @@ package ch.systemsx.cisd.openbis.generic.server.coreplugin; +import java.io.IOException; import java.util.Properties; import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.method.ServiceProvider; @@ -43,8 +44,9 @@ public class CorePluginsInjectingPropertyPlaceholderConfigurer extends BasicConstant.WEB_APPS_PROPERTY); @Override - protected void injectPropertiesInto(Properties properties) + protected void loadProperties(Properties properties) throws IOException { + super.loadProperties(properties); CorePluginsUtils.addCorePluginsProperties(properties, ScannerType.AS); PluginType dssDataSources = createPluginTypeDssDataSources(); PluginType maintenanceTasks = @@ -61,8 +63,8 @@ public class CorePluginsInjectingPropertyPlaceholderConfigurer extends PluginType webapps = PLUGIN_TYPE_WEBAPPS; new CorePluginsInjector(ScannerType.AS, new IPluginType[] - { maintenanceTasks, services, customImports, queryDatabases, miscellaneous, dssDataSources, - webapps }).injectCorePlugins(properties); + { maintenanceTasks, services, customImports, queryDatabases, miscellaneous, dssDataSources, + webapps }).injectCorePlugins(properties); // Inject the web apps into jetty new JettyWebAppPluginInjector(properties).injectWebApps(); -- GitLab