This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-3.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.20.x by this push:
     new 279cfa114c0 CAMEL-18636 - azure data lake component: authentication 
can not be configured using string properties - Do not validate the 
configuration in component
279cfa114c0 is described below

commit 279cfa114c0468c486fb101aaf9533756ade2e94
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Mar 15 11:38:35 2023 +0100

    CAMEL-18636 - azure data lake component: authentication can not be 
configured using string properties - Do not validate the configuration in 
component
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../camel/component/azure/storage/datalake/DataLakeComponent.java | 8 --------
 1 file changed, 8 deletions(-)

diff --git 
a/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/DataLakeComponent.java
 
b/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/DataLakeComponent.java
index 962ebb97808..7e6178a86b6 100644
--- 
a/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/DataLakeComponent.java
+++ 
b/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/DataLakeComponent.java
@@ -67,7 +67,6 @@ public class DataLakeComponent extends DefaultComponent {
         setProperties(endpoint, parameters);
 
         setCredentialsFromRegistry(configuration);
-        validateConfiguration(configuration);
 
         return endpoint;
     }
@@ -98,11 +97,4 @@ public class DataLakeComponent extends DefaultComponent {
         }
     }
 
-    private void validateConfiguration(final DataLakeConfiguration config) {
-        if (config.getServiceClient() == null && 
config.getClientSecretCredential() == null
-                && config.getSharedKeyCredential() == null) {
-            throw new IllegalArgumentException("client or credentials must be 
specified");
-        }
-    }
-
 }

Reply via email to