This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 86b03153df8 CAMEL-18648: Google-bigqery - fixed ArrayIndexOutOfBoundsException during endpoint creation 86b03153df8 is described below commit 86b03153df812234ab8f591b07dbfa106fa281cd Author: JiriOndrusek <ondrusek.j...@gmail.com> AuthorDate: Tue Oct 25 09:50:41 2022 +0200 CAMEL-18648: Google-bigqery - fixed ArrayIndexOutOfBoundsException during endpoint creation --- .../camel/component/google/bigquery/GoogleBigQueryConfiguration.java | 2 +- .../camel/component/google/bigquery/unit/BaseBigQueryTest.java | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConfiguration.java b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConfiguration.java index 3c01196fbc4..82091b07f84 100644 --- a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConfiguration.java +++ b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConfiguration.java @@ -59,7 +59,7 @@ public class GoogleBigQueryConfiguration implements Cloneable { projectId = parts[0]; datasetId = parts[1]; if (parts.length > 2) { - tableId = parts[3]; + tableId = parts[2]; } } diff --git a/components/camel-google/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/unit/BaseBigQueryTest.java b/components/camel-google/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/unit/BaseBigQueryTest.java index d6352d8bb30..76bca553387 100644 --- a/components/camel-google/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/unit/BaseBigQueryTest.java +++ b/components/camel-google/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/unit/BaseBigQueryTest.java @@ -47,10 +47,7 @@ public abstract class BaseBigQueryTest extends CamelTestSupport { } protected GoogleBigQueryProducer createProducer() { - configuration.setProjectId(projectId); - configuration.setTableId(tableId); - configuration.setDatasetId(datasetId); - configuration.setTableId("testTableId"); + configuration.parseRemaining(projectId + ":" + datasetId + ":" + tableId); return new GoogleBigQueryProducer(bigquery, endpoint, configuration); }