diff --git a/NOTICE b/NOTICE index 2d4af556bf276516d0b1e50763c0567b2c9fc727..b971edc7f1d020c5c4b5f0bab75bb9d5ff5690e9 100644 --- a/NOTICE +++ b/NOTICE @@ -78,14 +78,14 @@ The following software have components provided under the terms of this license: - Converter: Jackson (from https://repo1.maven.org/maven2/com/squareup/retrofit2/converter-jackson) - Core functionality for the Reactor Netty library (from https://github.com/reactor/reactor-netty) - Elastic JNA Distribution (from https://github.com/java-native-access/jna) -- Expression Language 3.0 (from https://projects.eclipse.org/projects/ee4j.el) - Expression Language 3.0 (from http://uel.java.net) +- Expression Language 3.0 (from https://projects.eclipse.org/projects/ee4j.el) - FindBugs-jsr305 (from http://findbugs.sourceforge.net/) - GSON extensions to the Google HTTP Client Library for Java. (from https://repo1.maven.org/maven2/com/google/http-client/google-http-client-gson) - Google APIs Client Library for Java (from https://repo1.maven.org/maven2/com/google/api-client/google-api-client) - Google App Engine extensions to the Google HTTP Client Library for Java. (from https://repo1.maven.org/maven2/com/google/http-client/google-http-client-appengine) -- Google Cloud Core (from https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core) -- Google Cloud Core HTTP (from https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-http) +- Google Cloud Core (from https://github.com/googleapis/java-core) +- Google Cloud Core HTTP (from https://github.com/googleapis/java-core) - Google Cloud Core gRPC (from https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-grpc) - Google Cloud Datastore (from https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-datastore) - Google Cloud IAM Service Account Credentials (from https://github.com/googleapis/java-iamcredentials) @@ -114,10 +114,9 @@ The following software have components provided under the terms of this license: - IBM COS SDK for Java - Core (from https://github.com/ibm/ibm-cos-sdk-java) - Identity and Access Management (IAM) API v1-rev307-1.25.0 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-iam) - Identity and Access Management (IAM) API v1-rev307-1.25.0 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-iam) -- IntelliJ IDEA Annotations (from http://www.jetbrains.org) - J2ObjC Annotations (from https://github.com/google/j2objc/) - JBoss Logging 3 (from http://www.jboss.org) -- JBoss Threads (from ) +- JBoss Threads (from https://repo1.maven.org/maven2/org/jboss/threads/jboss-threads) - JCIP Annotations under Apache License (from http://stephenc.github.com/jcip-annotations) - JMES Path Query library (from https://aws.amazon.com/sdkforjava) - JSON Small and Fast Parser (from https://repo1.maven.org/maven2/net/minidev/json-smart) @@ -150,6 +149,7 @@ The following software have components provided under the terms of this license: - Java UUID Generator (from http://wiki.fasterxml.com/JugHome) - Javassist (from http://www.javassist.org/) - Javassist (from http://www.javassist.org/) +- JetBrains Java Annotations (from https://github.com/JetBrains/java-annotations) - Joda-Time (from https://www.joda.org/joda-time/) - KeePassJava2 :: All (from https://repo1.maven.org/maven2/org/linguafranca/pwdb/KeePassJava2) - KeePassJava2 :: DOM (from https://repo1.maven.org/maven2/org/linguafranca/pwdb/KeePassJava2-dom) @@ -165,8 +165,8 @@ The following software have components provided under the terms of this license: - Lucene Grouping (from https://repo1.maven.org/maven2/org/apache/lucene/lucene-grouping) - Lucene Highlighter (from https://repo1.maven.org/maven2/org/apache/lucene/lucene-highlighter) - Lucene Join (from https://repo1.maven.org/maven2/org/apache/lucene/lucene-join) -- Lucene Memory (from https://repo1.maven.org/maven2/org/apache/lucene/lucene-backward-codecs) - Lucene Memory (from https://repo1.maven.org/maven2/org/apache/lucene/lucene-memory) +- Lucene Memory (from https://repo1.maven.org/maven2/org/apache/lucene/lucene-backward-codecs) - Lucene Miscellaneous (from https://repo1.maven.org/maven2/org/apache/lucene/lucene-misc) - Lucene Queries (from https://repo1.maven.org/maven2/org/apache/lucene/lucene-queries) - Lucene QueryParsers (from https://repo1.maven.org/maven2/org/apache/lucene/lucene-queryparser) @@ -246,6 +246,7 @@ The following software have components provided under the terms of this license: - Spring Boot Actuator AutoConfigure (from https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-actuator-autoconfigure) - Spring Boot Actuator Starter (from http://projects.spring.io/spring-boot/) - Spring Boot AutoConfigure (from http://projects.spring.io/spring-boot/) +- Spring Boot Dependencies (from https://projects.spring.io/spring-boot/#) - Spring Boot Logging Starter (from http://projects.spring.io/spring-boot/) - Spring Boot Reactor Netty Starter (from https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-reactor-netty) - Spring Boot Security Starter (from http://projects.spring.io/spring-boot/) @@ -363,7 +364,6 @@ The following software have components provided under the terms of this license: - rest-high-level (from https://github.com/elastic/elasticsearch) - rxjava (from https://github.com/ReactiveX/RxJava) - server (from https://github.com/elastic/elasticsearch) -- spring-boot-dependencies (from https://spring.io/projects/spring-boot) - spring-boot-starter-aop (from https://spring.io/projects/spring-boot) - spring-boot-starter-json (from https://spring.io/projects/spring-boot) - spring-boot-starter-log4j2 (from https://spring.io/projects/spring-boot) @@ -372,14 +372,14 @@ The following software have components provided under the terms of this license: - spring-boot-starter-undertow (from https://spring.io/projects/spring-boot) - spring-boot-starter-web (from https://spring.io/projects/spring-boot) - spring-boot-starter-web (from https://spring.io/projects/spring-boot) -- spring-security-config (from http://spring.io/spring-security) -- spring-security-config (from http://spring.io/spring-security) -- spring-security-core (from http://spring.io/spring-security) +- spring-security-config (from https://spring.io/projects/spring-security) +- spring-security-config (from https://spring.io/projects/spring-security) +- spring-security-core (from https://spring.io/projects/spring-security) - spring-security-oauth2-core (from http://spring.io/spring-security) - spring-security-oauth2-jose (from http://spring.io/spring-security) - spring-security-oauth2-resource-server (from http://spring.io/spring-security) -- spring-security-web (from http://spring.io/spring-security) -- spring-security-web (from http://spring.io/spring-security) +- spring-security-web (from https://spring.io/projects/spring-security) +- spring-security-web (from https://spring.io/projects/spring-security) - springfox-core (from https://github.com/springfox/springfox) - springfox-schema (from https://github.com/springfox/springfox) - springfox-spi (from https://github.com/springfox/springfox) @@ -400,10 +400,10 @@ BSD-2-Clause ======================================================================== The following software have components provided under the terms of this license: -- API Common (from https://github.com/googleapis) -- GAX (Google Api eXtensions) (from https://github.com/googleapis) +- API Common (from https://github.com/googleapis/api-common-java) - GAX (Google Api eXtensions) (from https://github.com/googleapis) - GAX (Google Api eXtensions) for Java (from https://github.com/googleapis/gax-java) +- GAX (Google Api eXtensions) for Java (from https://github.com/googleapis/gax-java) - Lucene Common Analyzers (from https://repo1.maven.org/maven2/org/apache/lucene/lucene-analyzers-common) - Lucene Core (from https://repo1.maven.org/maven2/org/apache/lucene/lucene-core) - Reflections (from http://github.com/ronmamo/reflections) @@ -415,11 +415,11 @@ BSD-3-Clause ======================================================================== The following software have components provided under the terms of this license: -- API Common (from https://github.com/googleapis) +- API Common (from https://github.com/googleapis/api-common-java) - ASM Core (from https://repo1.maven.org/maven2/org/ow2/asm/asm) - Apache Commons Codec (from https://commons.apache.org/proper/commons-codec/) - GAX (Google Api eXtensions) (from https://github.com/googleapis) -- GAX (Google Api eXtensions) (from https://github.com/googleapis) +- GAX (Google Api eXtensions) for Java (from https://github.com/googleapis/gax-java) - GAX (Google Api eXtensions) for Java (from https://github.com/googleapis/gax-java) - Google APIs Client Library for Java (from https://repo1.maven.org/maven2/com/google/api-client/google-api-client) - Google Auth Library for Java - Credentials (from https://repo1.maven.org/maven2/com/google/auth/google-auth-library-credentials) @@ -653,7 +653,7 @@ LGPL-2.1-or-later ======================================================================== The following software have components provided under the terms of this license: -- JBoss Threads (from ) +- JBoss Threads (from https://repo1.maven.org/maven2/org/jboss/threads/jboss-threads) - Javassist (from http://www.javassist.org/) - Javassist (from http://www.javassist.org/) - SnakeYAML (from http://www.snakeyaml.org) @@ -722,7 +722,7 @@ The following software have components provided under the terms of this license: - mockito-junit-jupiter (from https://github.com/mockito/mockito) - msal4j (from https://github.com/AzureAD/microsoft-authentication-library-for-java) - msal4j-persistence-extension (from https://github.com/AzureAD/microsoft-authentication-extensions-for-java) -- spring-security-core (from http://spring.io/spring-security) +- spring-security-core (from https://spring.io/projects/spring-security) ======================================================================== MPL-1.1 diff --git a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/extractor/EventGridServiceBusRequestBodyExtractor.java b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/extractor/EventGridServiceBusRequestBodyExtractor.java index 03d2e0c415e05a5f3381aed339a65a84e6471661..cac95d9777a48303350beb26c87200fc80e4a6af 100644 --- a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/extractor/EventGridServiceBusRequestBodyExtractor.java +++ b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/extractor/EventGridServiceBusRequestBodyExtractor.java @@ -23,6 +23,8 @@ import org.opengroup.osdu.notification.provider.azure.models.NotificationEventGr import org.opengroup.osdu.notification.provider.azure.models.NotificationRecordsChangedData; import org.opengroup.osdu.notification.provider.azure.messageBus.interfaces.IPullRequestBodyExtractor; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.context.annotation.Scope; +import org.springframework.context.annotation.ScopedProxyMode; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Component; @@ -32,6 +34,7 @@ import java.util.Map; import static java.nio.charset.StandardCharsets.UTF_8; @Component +@Scope(value = "ThreadScope", proxyMode = ScopedProxyMode.TARGET_CLASS) @ConditionalOnProperty(value = "azure.eventGridToServiceBus.enabled", havingValue = "true", matchIfMissing = false) public class EventGridServiceBusRequestBodyExtractor implements IPullRequestBodyExtractor { private static final Gson GSON = new Gson(); diff --git a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/extractor/ServiceBusRequestBodyExtractor.java b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/extractor/ServiceBusRequestBodyExtractor.java index aaec1012e29baf29ee75ae7bf2ffe2afa67f2826..070029c6be6fb7e2f73c50636d0047517fdaf57d 100644 --- a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/extractor/ServiceBusRequestBodyExtractor.java +++ b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/extractor/ServiceBusRequestBodyExtractor.java @@ -22,6 +22,8 @@ import org.opengroup.osdu.notification.provider.azure.models.NotificationRecords import org.opengroup.osdu.notification.provider.azure.models.NotificationServiceBusRequest; import org.opengroup.osdu.notification.provider.azure.messageBus.interfaces.IPullRequestBodyExtractor; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.context.annotation.Scope; +import org.springframework.context.annotation.ScopedProxyMode; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Component; @@ -31,6 +33,7 @@ import java.util.Map; import static java.nio.charset.StandardCharsets.UTF_8; @Component +@Scope(value = "ThreadScope", proxyMode = ScopedProxyMode.TARGET_CLASS) @ConditionalOnProperty(value = "azure.serviceBus.enabled", havingValue = "true", matchIfMissing = false) public class ServiceBusRequestBodyExtractor implements IPullRequestBodyExtractor { private IMessage message; diff --git a/testing/notification-test-azure/pom.xml b/testing/notification-test-azure/pom.xml index 7444278ce50a5f58769565c22072fef6b48ba4a3..b7320b85139b8558dad80a72f74848a9ca8364ab 100644 --- a/testing/notification-test-azure/pom.xml +++ b/testing/notification-test-azure/pom.xml @@ -54,6 +54,10 @@ <groupId>io.projectreactor</groupId> <artifactId>reactor-core</artifactId> </exclusion> + <exclusion> + <groupId>com.azure</groupId> + <artifactId>azure-storage-blob</artifactId> + </exclusion> <exclusion> <groupId>io.projectreactor.netty</groupId> <artifactId>reactor-netty</artifactId>