Skip to content
Snippets Groups Projects
Commit 3ba71950 authored by pkupczyk's avatar pkupczyk
Browse files

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
parent 7355469e
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment