From cf5ded58d1881113cda6811b74ce16b0def9d035 Mon Sep 17 00:00:00 2001
From: cramakri <cramakri>
Date: Tue, 8 Feb 2011 13:23:02 +0000
Subject: [PATCH] LMS-2033 Fixed dependency problem.

SVN: 19812
---
 .../cisd/etlserver/registrator/DataSetStorageAlgorithm.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/DataSetStorageAlgorithm.java b/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/DataSetStorageAlgorithm.java
index 4205e1606d7..354fc3b46ce 100644
--- a/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/DataSetStorageAlgorithm.java
+++ b/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/DataSetStorageAlgorithm.java
@@ -48,7 +48,6 @@ import ch.systemsx.cisd.etlserver.TransferredDataSetHandler;
 import ch.systemsx.cisd.etlserver.validation.IDataSetValidator;
 import ch.systemsx.cisd.openbis.dss.generic.server.DataStoreService;
 import ch.systemsx.cisd.openbis.dss.generic.shared.dto.DataSetInformation;
-import ch.systemsx.cisd.openbis.generic.client.web.client.exception.UserFailureException;
 import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataSetType;
 import ch.systemsx.cisd.openbis.generic.shared.dto.NewExternalData;
 import ch.systemsx.cisd.openbis.generic.shared.dto.StorageFormat;
@@ -121,10 +120,7 @@ public class DataSetStorageAlgorithm<T extends DataSetInformation>
         this.storeRoot = storageProcessor.getStoreRootDirectory();
         this.dataSetType = registrationDetails.getDataSetType();
 
-        if (dataStoreStrategy.getKey() != DataStoreStrategyKey.IDENTIFIED)
-        {
-            throw new UserFailureException("Data set must be associated with an experiment ");
-        }
+        assert dataStoreStrategy.getKey() == DataStoreStrategyKey.IDENTIFIED : "Data set must be associated with an experiment ";
 
         dataSetValidator.assertValidDataSet(dataSetType, incomingDataSetFile);
 
-- 
GitLab