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:46:03 UTC

[camel] branch camel-3.14.x updated: 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 camel-3.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git


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

commit ff1516c5fb67fd7e5a0b0c4d86d0edbac00bc9aa
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 737619e131e..dfd065bb311 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
@@ -71,7 +71,6 @@ public class DataLakeComponent extends DefaultComponent {
         setProperties(endpoint, parameters);
 
         setCredentialsFromRegistry(configuration);
-        validateConfiguration(configuration);
 
         return endpoint;
     }
@@ -102,11 +101,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");
-        }
-    }
-
 }