You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/03/16 08:43:50 UTC

[camel] 01/03: CAMEL-18636 - azure data lake component: authentication can not be configured using string properties - Do not validate the configuration in component

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

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

commit a19dd3137478843bc7b91928a714fe0e7bc9badd
Author: Andrea Cosentino <an...@gmail.com>
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 <an...@gmail.com>
---
 .../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");
-        }
-    }
-
 }