Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • osdu/platform/security-and-compliance/legal
  • alanbraz-ibm/legal
  • pfarrell/legal
  • ankitsharma/legal
  • manishk/legal
  • harshit283/legal
6 results
Show changes
Commits on Source (30)
  • Matt Wise's avatar
    properly copy parent pom · ec98d1d3
    Matt Wise authored
    ec98d1d3
  • Spencer Sutton's avatar
    Removing snapshots · bf3dcae2
    Spencer Sutton authored
    bf3dcae2
  • Kyle Longhurst's avatar
    Use version 0.12.0-SNAPSHOT of core lib aws · e8c4d7b6
    Kyle Longhurst authored
    commit 50e76ac6 
    Author: Kyle Longhurst <kyle.longhurst@parivedasolutions.com> 
    Date: Mon Sep 27 2021 14:54:40 GMT-0700 (PDT) 
    
        Use version 0.12.0-SNAPSHOT of core lib aws
    e8c4d7b6
  • Spencer Sutton's avatar
    Compliance Trigger Fix · 2afb79a4
    Spencer Sutton authored
    commit 36b1e2f7 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 10:54:20 GMT-0500 (Central Daylight Time) 
    
        Adding log warning
    
    
    commit 3a0c1745 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 14:34:37 GMT-0500 (Central Daylight Time) 
    
        Fixing problem where data partitions got stuck across calls
    
    
    commit 9dbff512 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 12:51:01 GMT-0500 (Central Daylight Time) 
    
        Fixing bug with compliance process, partitions weren't handled right
    
    
    commit b663408a 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 08 2021 15:11:59 GMT-0500 (Central Daylight Time) 
    
        Adding custom class to include data partition
    2afb79a4
  • Spencer Sutton's avatar
    Legal int test fix · a332fae1
    Spencer Sutton authored
    commit bb5e4245 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 15:13:38 GMT-0500 (Central Daylight Time) 
    
        Merge branch 'dev' of codecommit::us-east-1://default@os-legal into compliance-trigger
    
    
    commit d8d0fd56 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 15:12:47 GMT-0500 (Central Daylight Time) 
    
        Fixing broken unit test
    
    
    commit 36b1e2f7 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 10:54:20 GMT-0500 (Central Daylight Time) 
    
        Adding log warning
    
    
    commit 3a0c1745 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 14:34:37 GMT-0500 (Central Daylight Time) 
    
        Fixing problem where data partitions got stuck across calls
    
    
    commit 9dbff512 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 12:51:01 GMT-0500 (Central Daylight Time) 
    
        Fixing bug with compliance process, partitions weren't handled right
    
    
    commit b663408a 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 08 2021 15:11:59 GMT-0500 (Central Daylight Time) 
    
        Adding custom class to include data partition
    a332fae1
  • Spencer Sutton's avatar
    RequestScope fix for AWS legal repo factory · 77355f27
    Spencer Sutton authored
    commit 1c6097e5 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 15 2021 14:46:06 GMT-0500 (Central Daylight Time) 
    
        Merge branch 'dev' of codecommit::us-east-1://default@os-legal into compliance-trigger
    
    
    commit 8e1b36f7 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 15 2021 14:45:31 GMT-0500 (Central Daylight Time) 
    
        Fixing int tests
    
    
    commit 88c9315c 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 15 2021 13:46:33 GMT-0500 (Central Daylight Time) 
    
        Disabling sonar
    
    
    commit 8a69da05 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 15 2021 13:45:51 GMT-0500 (Central Daylight Time) 
    
        Testing int test failure
    
    
    commit bb5e4245 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 15:13:38 GMT-0500 (Central Daylight Time) 
    
        Merge branch 'dev' of codecommit::us-east-1://default@os-legal into compliance-trigger
    
    
    commit d8d0fd56 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 15:12:47 GMT-0500 (Central Daylight Time) 
    
        Fixing broken unit test
    
    
    commit 36b1e2f7 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 10:54:20 GMT-0500 (Central Daylight Time) 
    
        Adding log warning
    
    
    commit 3a0c1745 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 14:34:37 GMT-0500 (Central Daylight Time) 
    
        Fixing problem where data partitions got stuck across calls
    
    
    commit 9dbff512 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 12:51:01 GMT-0500 (Central Daylight Time) 
    
        Fixing bug with compliance process, partitions weren't handled right
    
    
    commit b663408a 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 08 2021 15:11:59 GMT-0500 (Central Daylight Time) 
    
        Adding custom class to include data partition
    77355f27
  • Spencer Sutton's avatar
    Reverting pom version changes · ea102dec
    Spencer Sutton authored
    ea102dec
  • Spencer Sutton's avatar
    Reverting more · 76f4e283
    Spencer Sutton authored
    76f4e283
  • Spencer Sutton's avatar
    Merge · 7cdeb94c
    Spencer Sutton authored
    7cdeb94c
  • Spencer Sutton's avatar
    Fixing build · 6839b890
    Spencer Sutton authored
    6839b890
  • Spencer Sutton's avatar
    Updating notice · 6073a1da
    Spencer Sutton authored
    6073a1da
  • Spencer Sutton's avatar
    Fixing notice · 8c1d49f4
    Spencer Sutton authored
    8c1d49f4
  • Rustam Lotsmanenko (EPAM)'s avatar
    fix libs conflicts · 73b4c2e1
    Rustam Lotsmanenko (EPAM) authored
    73b4c2e1
  • Rustam Lotsmanenko (EPAM)'s avatar
    notice · 54ad7103
    Rustam Lotsmanenko (EPAM) authored
    54ad7103
  • Rustam Lotsmanenko (EPAM)'s avatar
    exclude google clients · b56db3c9
    Rustam Lotsmanenko (EPAM) authored
    b56db3c9
  • Rustam Lotsmanenko (EPAM)'s avatar
    notice · 82646e02
    Rustam Lotsmanenko (EPAM) authored
    82646e02
  • David Diederich's avatar
    Merge branch 'gcp-fix-dependencies' into 'master' · bf3cf3c3
    David Diederich authored
    Fix gcp dependencies conflicts
    
    See merge request !169
    bf3cf3c3
  • Matt Wise's avatar
    properly copy parent pom · b11416a8
    Matt Wise authored and Spencer Sutton's avatar Spencer Sutton committed
    b11416a8
  • Spencer Sutton's avatar
    Compliance Trigger Fix · 9a568752
    Spencer Sutton authored
    commit 36b1e2f7 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 10:54:20 GMT-0500 (Central Daylight Time) 
    
        Adding log warning
    
    
    commit 3a0c1745 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 14:34:37 GMT-0500 (Central Daylight Time) 
    
        Fixing problem where data partitions got stuck across calls
    
    
    commit 9dbff512 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 12:51:01 GMT-0500 (Central Daylight Time) 
    
        Fixing bug with compliance process, partitions weren't handled right
    
    
    commit b663408a 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 08 2021 15:11:59 GMT-0500 (Central Daylight Time) 
    
        Adding custom class to include data partition
    9a568752
  • Spencer Sutton's avatar
    Legal int test fix · a75678f9
    Spencer Sutton authored
    commit bb5e4245 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 15:13:38 GMT-0500 (Central Daylight Time) 
    
        Merge branch 'dev' of codecommit::us-east-1://default@os-legal into compliance-trigger
    
    
    commit d8d0fd56 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 15:12:47 GMT-0500 (Central Daylight Time) 
    
        Fixing broken unit test
    
    
    commit 36b1e2f7 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 10:54:20 GMT-0500 (Central Daylight Time) 
    
        Adding log warning
    
    
    commit 3a0c1745 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 14:34:37 GMT-0500 (Central Daylight Time) 
    
        Fixing problem where data partitions got stuck across calls
    
    
    commit 9dbff512 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 12:51:01 GMT-0500 (Central Daylight Time) 
    
        Fixing bug with compliance process, partitions weren't handled right
    
    
    commit b663408a 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 08 2021 15:11:59 GMT-0500 (Central Daylight Time) 
    
        Adding custom class to include data partition
    a75678f9
  • Spencer Sutton's avatar
    RequestScope fix for AWS legal repo factory · 800706a3
    Spencer Sutton authored
    commit 1c6097e5 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 15 2021 14:46:06 GMT-0500 (Central Daylight Time) 
    
        Merge branch 'dev' of codecommit::us-east-1://default@os-legal into compliance-trigger
    
    
    commit 8e1b36f7 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 15 2021 14:45:31 GMT-0500 (Central Daylight Time) 
    
        Fixing int tests
    
    
    commit 88c9315c 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 15 2021 13:46:33 GMT-0500 (Central Daylight Time) 
    
        Disabling sonar
    
    
    commit 8a69da05 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 15 2021 13:45:51 GMT-0500 (Central Daylight Time) 
    
        Testing int test failure
    
    
    commit bb5e4245 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 15:13:38 GMT-0500 (Central Daylight Time) 
    
        Merge branch 'dev' of codecommit::us-east-1://default@os-legal into compliance-trigger
    
    
    commit d8d0fd56 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 15:12:47 GMT-0500 (Central Daylight Time) 
    
        Fixing broken unit test
    
    
    commit 36b1e2f7 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu Oct 14 2021 10:54:20 GMT-0500 (Central Daylight Time) 
    
        Adding log warning
    
    
    commit 3a0c1745 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 14:34:37 GMT-0500 (Central Daylight Time) 
    
        Fixing problem where data partitions got stuck across calls
    
    
    commit 9dbff512 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Wed Oct 13 2021 12:51:01 GMT-0500 (Central Daylight Time) 
    
        Fixing bug with compliance process, partitions weren't handled right
    
    
    commit b663408a 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Fri Oct 08 2021 15:11:59 GMT-0500 (Central Daylight Time) 
    
        Adding custom class to include data partition
    800706a3
  • Spencer Sutton's avatar
    Merge conflict · f739c1b2
    Spencer Sutton authored
    f739c1b2
  • Spencer Sutton's avatar
    Merge conflict · 7e3f4cfe
    Spencer Sutton authored
    7e3f4cfe
  • Spencer Sutton's avatar
    Merge conflicts · db8ddcfc
    Spencer Sutton authored
    db8ddcfc
  • Spencer Sutton's avatar
    Updating notice · 3a62966a
    Spencer Sutton authored
    3a62966a
  • David Diederich's avatar
    1894beff
  • David Diederich's avatar
    Updating FOSSA NOTICE · bb9179de
    David Diederich authored
    bb9179de
  • Spencer Sutton's avatar
    Merge conflict · 992863df
    Spencer Sutton authored
    992863df
  • Spencer Sutton's avatar
    Notice changed again? · d34c8daf
    Spencer Sutton authored
    d34c8daf
  • Spencer Sutton's avatar
    Merge branch 'aws-eks' into 'master' · 6555ff73
    Spencer Sutton authored
    Fixing bug with Legal Job Run Process, some AWS Updates
    
    See merge request !163
    6555ff73
Showing
with 239 additions and 170 deletions
......@@ -289,22 +289,21 @@ The following software have components provided under the terms of this license:
- AWS SDK for Java - Models (from https://aws.amazon.com/sdkforjava)
- Adapter: RxJava (from https://repo1.maven.org/maven2/com/squareup/retrofit2/adapter-rxjava)
- Apache Ant + JUnit (from http://ant.apache.org/)
- Apache Ant Core (from http://ant.apache.org/)
- Apache Ant Launcher (from http://ant.apache.org/)
- Apache Ant Core (from https://ant.apache.org/)
- Apache Ant Launcher (from https://ant.apache.org/)
- Apache Commons BeanUtils (from http://commons.apache.org/proper/commons-beanutils/)
- Apache Commons CLI (from http://commons.apache.org/proper/commons-cli/)
- Apache Commons Codec (from https://commons.apache.org/proper/commons-codec/)
- Apache Commons Codec (from https://commons.apache.org/proper/commons-codec/)
- Apache Commons Collections (from http://commons.apache.org/proper/commons-collections/)
- Apache Commons IO (from https://commons.apache.org/proper/commons-io/)
- Apache Commons Lang (from http://commons.apache.org/proper/commons-lang/)
- Apache Commons Logging (from http://commons.apache.org/proper/commons-logging/)
- Apache Commons Logging (from http://commons.apache.org/proper/commons-logging/)
- Apache Commons Text (from https://commons.apache.org/proper/commons-text)
- Apache Geronimo JMS Spec 2.0 (from http://geronimo.apache.org/maven/${siteId}/${version})
- Apache Groovy (from https://groovy-lang.org)
- Apache Groovy (from https://groovy-lang.org)
- Apache Groovy (from https://groovy-lang.org)
- Apache Groovy (from http://groovy-lang.org)
- Apache Groovy (from http://groovy-lang.org)
- Apache Groovy (from http://groovy-lang.org)
- Apache HTTP transport v2 for the Google HTTP Client Library for Java. (from https://repo1.maven.org/maven2/com/google/http-client/google-http-client-apache-v2)
- Apache HttpClient Cache (from http://hc.apache.org/httpcomponents-client)
- Apache HttpCore (from http://hc.apache.org/httpcomponents-core-ga)
......@@ -334,11 +333,11 @@ The following software have components provided under the terms of this license:
- Byte Buddy Java agent (from https://repo1.maven.org/maven2/net/bytebuddy/byte-buddy-agent)
- ClassMate (from http://github.com/cowtowncoder/java-classmate)
- Cloud Key Management Service (KMS) API v1-rev20210820-1.32.1 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-cloudkms)
- Cloud Storage JSON API v1-rev20200814-1.30.10 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-storage)
- Cloud Storage JSON API v1-rev20200814-1.30.10 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-storage)
- Cloud Storage JSON API v1-rev20210918-1.32.1 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-storage)
- CloudWatch Metrics for AWS Java SDK (from https://aws.amazon.com/sdkforjava)
- Cobertura (from http://cobertura.sourceforge.net)
- Collections (from https://repo1.maven.org/maven2/commons-collections/commons-collections)
- Commons IO (from http://commons.apache.org/io/)
- Commons Lang (from http://commons.apache.org/lang/)
- Commons Lang (from http://commons.apache.org/lang/)
- Commons Validator (from http://commons.apache.org/validator/)
......@@ -358,21 +357,15 @@ The following software have components provided under the terms of this license:
- 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 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/java-core)
- Google Cloud Core (from https://github.com/googleapis/java-core)
- Google Cloud Core HTTP (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/java-core)
- Google Cloud Core gRPC (from https://github.com/googleapis/java-core)
- Google Cloud Datastore (from https://github.com/googleapis/java-datastore)
- Google Cloud Core gRPC (from https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-grpc)
- Google Cloud Datastore (from https://github.com/googleapis/java-datastore)
- Google Cloud IAM Service Account Credentials (from https://github.com/googleapis/java-iamcredentials)
- Google Cloud Logging (from https://github.com/googleapis/java-logging)
- Google Cloud Pub/Sub (from https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub)
- Google Cloud Pub/Sub (from https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub)
- Google Cloud Storage (from https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-storage)
- Google Cloud Storage (from https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-storage)
- Google Cloud Logging (from https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-logging)
- Google Cloud Pub/Sub (from https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub)
- Google Cloud Storage (from https://github.com/googleapis/java-storage)
- Google HTTP Client Library for Java (from https://repo1.maven.org/maven2/com/google/http-client/google-http-client)
- Google HTTP Client Library for Java (from https://repo1.maven.org/maven2/com/google/http-client/google-http-client)
- Google OAuth Client Library for Java (from https://repo1.maven.org/maven2/com/google/oauth-client/google-oauth-client)
- Gson (from http://code.google.com/p/google-gson/)
......@@ -387,7 +380,6 @@ The following software have components provided under the terms of this license:
- IBM COS Java SDK for COS KMS (from https://github.com/ibm/ibm-cos-sdk-java)
- IBM COS SDK For Java (from https://github.com/ibm/ibm-cos-sdk-java)
- IBM COS SDK for Java - Core (from https://github.com/ibm/ibm-cos-sdk-java)
- Identity and Access Management (IAM) API v1-rev20191010-1.30.3 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-iam)
- J2ObjC Annotations (from https://github.com/google/j2objc/)
- J2ObjC Annotations (from https://github.com/google/j2objc/)
- JBoss Logging 3 (from http://www.jboss.org)
......@@ -400,16 +392,14 @@ The following software have components provided under the terms of this license:
- JSON library from Android SDK (from http://developer.android.com/sdk)
- JSONassert (from http://github.com/skyscreamer/yoga)
- JSR107 API and SPI (from https://github.com/jsr107/jsr107spec)
- Jackson (from http://jackson.codehaus.org)
- Jackson 2 extensions to the Google HTTP Client Library for Java. (from https://repo1.maven.org/maven2/com/google/http-client/google-http-client-jackson2)
- Jackson dataformat: CBOR (from http://github.com/FasterXML/jackson-dataformats-binary)
- Jackson datatype: JSR310 (from https://repo1.maven.org/maven2/com/fasterxml/jackson/datatype/jackson-datatype-jsr310)
- Jackson datatype: jdk8 (from https://repo1.maven.org/maven2/com/fasterxml/jackson/datatype/jackson-datatype-jdk8)
- Jackson extensions to the Google HTTP Client Library for Java. (from https://repo1.maven.org/maven2/com/google/http-client/google-http-client-jackson)
- Jackson module: Afterburner (from https://github.com/FasterXML/jackson-modules-base)
- Jackson-annotations (from http://github.com/FasterXML/jackson)
- Jackson-core (from https://github.com/FasterXML/jackson)
- Jackson-dataformat-XML (from https://github.com/FasterXML/jackson-dataformat-xml)
- Jackson-dataformat-XML (from http://wiki.fasterxml.com/JacksonExtensionXmlDataBinding)
- Jackson-dataformat-YAML (from https://github.com/FasterXML/jackson-dataformats-text)
- Jackson-datatype-Joda (from http://wiki.fasterxml.com/JacksonModuleJoda)
- Jackson-module-JAXB-annotations (from http://wiki.fasterxml.com/JacksonJAXBAnnotations)
......@@ -443,7 +433,6 @@ The following software have components provided under the terms of this license:
- Maven Core (from https://repo1.maven.org/maven2/org/apache/maven/maven-core)
- Maven Error Diagnostics (from https://repo1.maven.org/maven2/org/apache/maven/maven-error-diagnostics)
- Maven Invoker (from https://repo1.maven.org/maven2/org/apache/maven/shared/maven-invoker)
- Maven Local Settings Model (from https://repo1.maven.org/maven2/org/apache/maven/maven-settings)
- Maven Model (from https://repo1.maven.org/maven2/org/apache/maven/maven-model)
- Maven Monitor (from https://repo1.maven.org/maven2/org/apache/maven/maven-monitor)
- Maven Plugin API (from https://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api)
......@@ -455,6 +444,7 @@ The following software have components provided under the terms of this license:
- Maven Reporting API (from https://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-api)
- Maven Reporting Implementation (from https://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-impl)
- Maven Repository Metadata Model (from https://repo1.maven.org/maven2/org/apache/maven/maven-repository-metadata)
- Maven Settings (from https://repo1.maven.org/maven2/org/apache/maven/maven-settings)
- Maven Wagon Lightweight HTTP Provider (from https://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-lightweight)
- Metrics Core (from https://repo1.maven.org/maven2/io/dropwizard/metrics/metrics-core)
- Microsoft Application Insights Java SDK Core (from https://github.com/Microsoft/ApplicationInsights-Java)
......@@ -488,6 +478,11 @@ The following software have components provided under the terms of this license:
- OAuth 2.0 SDK with OpenID Connect extensions (from https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions)
- Objenesis (from http://objenesis.org)
- Objenesis (from http://objenesis.org)
- OkHttp Logging Interceptor (from https://repo1.maven.org/maven2/com/squareup/okhttp3/logging-interceptor)
- OkHttp URLConnection (from https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp-urlconnection)
- Okio (from https://github.com/square/okio/)
- OpenCensus (from https://github.com/census-instrumentation/opencensus-java)
- OpenCensus (from https://github.com/census-instrumentation/opencensus-java)
- OpenCensus (from https://github.com/census-instrumentation/opencensus-java)
- OpenCensus (from https://github.com/census-instrumentation/opencensus-java)
- PWDB :: Database (from https://repo1.maven.org/maven2/org/linguafranca/pwdb/database)
......@@ -501,17 +496,29 @@ The following software have components provided under the terms of this license:
- PowerMock (from http://www.powermock.org)
- PowerMock (from http://www.powermock.org)
- Protocol Buffer extensions to the Google HTTP Client Library for Java. (from https://repo1.maven.org/maven2/com/google/http-client/google-http-client-protobuf)
- Protocol Buffer extensions to the Google HTTP Client Library for Java. (from https://repo1.maven.org/maven2/com/google/http-client/google-http-client-protobuf)
- Proton-J (from https://repo1.maven.org/maven2/org/apache/qpid/proton-j)
- QpidJMS Client (from https://repo1.maven.org/maven2/org/apache/qpid/qpid-jms-client)
- RabbitMQ Java Client (from https://www.rabbitmq.com)
- RabbitMQ Java Client (from http://www.rabbitmq.com)
- Reactive Streams Netty driver (from https://github.com/reactor/reactor-netty)
- Retrofit (from https://repo1.maven.org/maven2/com/squareup/retrofit2/retrofit)
- Servlet Specification 2.5 API (from http://jetty.mortbay.org)
- SnakeYAML (from http://www.snakeyaml.org)
- Spring AOP (from https://github.com/spring-projects/spring-framework)
- Spring Beans (from https://github.com/spring-projects/spring-framework)
- 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 WebFlux Starter (from https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-webflux)
- Spring Boot (from http://projects.spring.io/spring-boot/)
- Spring Boot AOP Starter (from http://projects.spring.io/spring-boot/)
- Spring Boot Actuator (from http://projects.spring.io/spring-boot/)
- Spring Boot Actuator Starter (from http://projects.spring.io/spring-boot/)
- Spring Boot AutoConfigure (from http://projects.spring.io/spring-boot/)
- Spring Boot Logging Starter (from http://projects.spring.io/spring-boot/)
- Spring Boot Security Starter (from http://projects.spring.io/spring-boot/)
- Spring Boot Starter (from http://projects.spring.io/spring-boot/)
- Spring Boot Test (from http://projects.spring.io/spring-boot/)
- Spring Boot Test Auto-Configure (from http://projects.spring.io/spring-boot/)
- Spring Boot Test Starter (from http://projects.spring.io/spring-boot/)
- Spring Boot Tomcat Starter (from http://projects.spring.io/spring-boot/)
- Spring Boot Validation Starter (from http://projects.spring.io/spring-boot/)
- Spring Boot Web Starter (from http://projects.spring.io/spring-boot/)
- Spring Commons Logging Bridge (from https://github.com/spring-projects/spring-framework)
- Spring Context (from https://github.com/spring-projects/spring-framework)
- Spring Core (from https://github.com/spring-projects/spring-framework)
......@@ -534,21 +541,17 @@ The following software have components provided under the terms of this license:
- Zipkin Core Library (from https://repo1.maven.org/maven2/io/zipkin/zipkin2/zipkin)
- Zipkin Reporter Brave (from https://repo1.maven.org/maven2/io/zipkin/reporter2/zipkin-reporter-brave)
- Zipkin Reporter: Core (from https://repo1.maven.org/maven2/io/zipkin/reporter2/zipkin-reporter)
- aalto-xml (from )
- datastore-v1-proto-client (from https://repo1.maven.org/maven2/com/google/cloud/datastore/datastore-v1-proto-client)
- aalto-xml (from https://repo1.maven.org/maven2/com/fasterxml/aalto-xml)
- datastore-v1-proto-client (from https://repo1.maven.org/maven2/com/google/cloud/datastore/datastore-v1-proto-client)
- error-prone annotations (from https://repo1.maven.org/maven2/com/google/errorprone/error_prone_annotations)
- error-prone annotations (from https://repo1.maven.org/maven2/com/google/errorprone/error_prone_annotations)
- error-prone annotations (from https://repo1.maven.org/maven2/com/google/errorprone/error_prone_annotations)
- grpc-google-cloud-pubsub-v1 (from https://repo1.maven.org/maven2/com/google/api/grpc/grpc-google-cloud-pubsub-v1)
- io.grpc:grpc-alts (from https://github.com/grpc/grpc-java)
- io.grpc:grpc-api (from https://github.com/grpc/grpc-java)
- io.grpc:grpc-api (from https://github.com/grpc/grpc-java)
- io.grpc:grpc-auth (from https://github.com/grpc/grpc-java)
- io.grpc:grpc-context (from https://github.com/grpc/grpc-java)
- io.grpc:grpc-context (from https://github.com/grpc/grpc-java)
- io.grpc:grpc-core (from https://github.com/grpc/grpc-java)
- io.grpc:grpc-core (from https://github.com/grpc/grpc-java)
- io.grpc:grpc-grpclb (from https://github.com/grpc/grpc-java)
- io.grpc:grpc-netty-shaded (from https://github.com/grpc/grpc-java)
- io.grpc:grpc-protobuf (from https://github.com/grpc/grpc-java)
......@@ -568,9 +571,6 @@ The following software have components provided under the terms of this license:
- mockito-core (from https://github.com/mockito/mockito)
- mockito-core (from https://github.com/mockito/mockito)
- okhttp (from https://square.github.io/okhttp/)
- okhttp-logging-interceptor (from https://square.github.io/okhttp/)
- okhttp-urlconnection (from https://square.github.io/okhttp/)
- okio (from https://github.com/square/okio/)
- org.apiguardian:apiguardian-api (from https://github.com/apiguardian-team/apiguardian)
- org.conscrypt:conscrypt-openjdk-uber (from https://conscrypt.org/)
- org.opentest4j:opentest4j (from https://github.com/ota4j-team/opentest4j)
......@@ -578,50 +578,35 @@ The following software have components provided under the terms of this license:
- perfmark:perfmark-api (from https://github.com/perfmark/perfmark)
- project ':json-path' (from https://github.com/jayway/JsonPath)
- proto-google-cloud-datastore-v1 (from https://github.com/googleapis/java-datastore/proto-google-cloud-datastore-v1)
- proto-google-cloud-datastore-v1 (from https://github.com/googleapis/java-datastore/proto-google-cloud-datastore-v1)
- proto-google-cloud-iamcredentials-v1 (from https://github.com/googleapis/java-iamcredentials/proto-google-cloud-iamcredentials-v1)
- proto-google-cloud-logging-v2 (from https://github.com/googleapis/java-logging/proto-google-cloud-logging-v2)
- proto-google-cloud-pubsub-v1 (from https://repo1.maven.org/maven2/com/google/api/grpc/proto-google-cloud-pubsub-v1)
- proto-google-cloud-logging-v2 (from https://repo1.maven.org/maven2/com/google/api/grpc/proto-google-cloud-logging-v2)
- proto-google-cloud-pubsub-v1 (from https://repo1.maven.org/maven2/com/google/api/grpc/proto-google-cloud-pubsub-v1)
- proto-google-common-protos (from https://github.com/googleapis/java-iam/proto-google-common-protos)
- proto-google-iam-v1 (from https://github.com/googleapis/java-iam/proto-google-iam-v1)
- proton-j (from https://repo1.maven.org/maven2/org/apache/qpid/proton-j)
- resilience4j (from https://github.com/resilience4j/resilience4j)
- resilience4j (from https://resilience4j.readme.io)
- resilience4j (from https://resilience4j.readme.io)
- resilience4j (from https://github.com/resilience4j/resilience4j)
- resilience4j (from https://github.com/resilience4j/resilience4j)
- resilience4j (from https://resilience4j.readme.io)
- resilience4j (from https://github.com/resilience4j/resilience4j)
- resilience4j (from https://github.com/resilience4j/resilience4j)
- resilience4j (from https://resilience4j.readme.io)
- resilience4j (from https://resilience4j.readme.io)
- rxjava (from https://github.com/ReactiveX/RxJava)
- spring-boot (from https://spring.io/projects/spring-boot)
- spring-boot-actuator (from https://spring.io/projects/spring-boot)
- spring-boot-actuator-autoconfigure (from https://spring.io/projects/spring-boot)
- spring-boot-autoconfigure (from https://spring.io/projects/spring-boot)
- spring-boot-dependencies (from https://spring.io/projects/spring-boot)
- spring-boot-starter (from https://spring.io/projects/spring-boot)
- spring-boot-starter-actuator (from https://spring.io/projects/spring-boot)
- spring-boot-starter-aop (from https://spring.io/projects/spring-boot)
- spring-boot-starter-data-mongodb (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)
- spring-boot-starter-logging (from https://spring.io/projects/spring-boot)
- spring-boot-starter-security (from https://spring.io/projects/spring-boot)
- spring-boot-starter-test (from https://spring.io/projects/spring-boot)
- spring-boot-starter-tomcat (from https://spring.io/projects/spring-boot)
- spring-boot-starter-validation (from https://spring.io/projects/spring-boot)
- spring-boot-starter-web (from https://spring.io/projects/spring-boot)
- spring-boot-test (from https://spring.io/projects/spring-boot)
- spring-boot-test-autoconfigure (from https://spring.io/projects/spring-boot)
- spring-security-config (from https://spring.io/spring-security)
- spring-security-core (from https://spring.io/spring-security)
- spring-boot-starter-reactor-netty (from https://spring.io/projects/spring-boot)
- spring-boot-starter-webflux (from https://spring.io/projects/spring-boot)
- spring-security-config (from http://spring.io/spring-security)
- spring-security-core (from http://spring.io/spring-security)
- spring-security-oauth2-client (from https://spring.io/spring-security)
- spring-security-oauth2-core (from https://spring.io/spring-security)
- spring-security-oauth2-jose (from https://spring.io/spring-security)
- spring-security-oauth2-resource-server (from https://spring.io/spring-security)
- spring-security-test (from https://spring.io/spring-security)
- spring-security-web (from https://spring.io/spring-security)
- spring-security-test (from http://spring.io/spring-security)
- spring-security-web (from http://spring.io/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)
......@@ -646,7 +631,6 @@ The following software have components provided under the terms of this license:
- 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)
- 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)
- Hamcrest (from http://hamcrest.org/JavaHamcrest/)
- Hamcrest Core (from https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core)
- HdrHistogram (from http://hdrhistogram.github.io/HdrHistogram/)
......@@ -664,8 +648,7 @@ The following software have components provided under the terms of this license:
- API Common (from https://github.com/googleapis/api-common-java)
- Apache Commons Codec (from https://commons.apache.org/proper/commons-codec/)
- Apache Commons Codec (from https://commons.apache.org/proper/commons-codec/)
- Apache Groovy (from https://groovy-lang.org)
- GAX (Google Api eXtensions) for Java (from https://github.com/googleapis/gax-java)
- Apache Groovy (from http://groovy-lang.org)
- 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)
- GAX (Google Api eXtensions) for Java (from https://github.com/googleapis/gax-java)
......@@ -684,6 +667,7 @@ The following software have components provided under the terms of this license:
- Netty/Codec/HTTP (from https://repo1.maven.org/maven2/io/netty/netty-codec-http)
- Plexus Common Utilities (from http://plexus.codehaus.org/plexus-utils)
- Protocol Buffers [Core] (from https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java)
- Protocol Buffers [Core] (from https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java)
- Protocol Buffers [Util] (from https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java-util)
- Reflections (from http://github.com/ronmamo/reflections)
- SnakeYAML (from http://www.snakeyaml.org)
......@@ -705,7 +689,6 @@ CC-BY-2.5
========================================================================
The following software have components provided under the terms of this license:
- Checker Qual (from https://checkerframework.org)
- FindBugs-jsr305 (from http://findbugs.sourceforge.net/)
- MongoDB Java Driver Core (from http://www.mongodb.org)
......@@ -803,7 +786,7 @@ The following software have components provided under the terms of this license:
- Java Servlet API (from http://servlet-spec.java.net)
- JavaBeans Activation Framework (from )
- Mojo's Maven plugin for Cobertura (from http://mojo.codehaus.org/cobertura-maven-plugin/)
- RabbitMQ Java Client (from https://www.rabbitmq.com)
- RabbitMQ Java Client (from http://www.rabbitmq.com)
- javax.annotation-api (from http://jcp.org/en/jsr/detail?id=250)
- tomcat-embed-core (from http://tomcat.apache.org/)
......@@ -824,7 +807,7 @@ The following software have components provided under the terms of this license:
- Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca)
- Java Servlet API (from http://servlet-spec.java.net)
- JavaBeans Activation Framework (from )
- RabbitMQ Java Client (from https://www.rabbitmq.com)
- RabbitMQ Java Client (from http://www.rabbitmq.com)
- javax.annotation-api (from http://jcp.org/en/jsr/detail?id=250)
- tomcat-embed-core (from http://tomcat.apache.org/)
......@@ -883,7 +866,7 @@ The following software have components provided under the terms of this license:
- Apache Log4j API (from https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api)
- Apache Log4j Core (from https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core)
- RabbitMQ Java Client (from https://www.rabbitmq.com)
- RabbitMQ Java Client (from http://www.rabbitmq.com)
========================================================================
MIT
......@@ -901,6 +884,7 @@ The following software have components provided under the terms of this license:
- Azure Spring Boot AutoConfigure (from https://github.com/Azure/azure-sdk-for-java)
- Checker Qual (from https://checkerframework.org)
- Checker Qual (from https://checkerframework.org)
- Extensions on Apache Proton-J library (from https://github.com/Azure/qpid-proton-j-extensions)
- JUL to SLF4J bridge (from http://www.slf4j.org)
- Java Client Runtime for AutoRest (from https://github.com/Azure/autorest-clientruntime-for-java)
- Microsoft Application Insights Java SDK Core (from https://github.com/Microsoft/ApplicationInsights-Java)
......@@ -940,8 +924,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)
- qpid-proton-j-extensions (from https://github.com/Azure/qpid-proton-j-extensions)
- spring-security-core (from https://spring.io/spring-security)
- spring-security-core (from http://spring.io/spring-security)
========================================================================
MPL-1.1
......@@ -951,7 +934,7 @@ The following software have components provided under the terms of this license:
- Cobertura (from http://cobertura.sourceforge.net)
- Javassist (from http://www.javassist.org/)
- Javassist (from http://www.javassist.org/)
- RabbitMQ Java Client (from https://www.rabbitmq.com)
- RabbitMQ Java Client (from http://www.rabbitmq.com)
========================================================================
MPL-2.0
......@@ -960,7 +943,7 @@ The following software have components provided under the terms of this license:
- Javassist (from http://www.javassist.org/)
- Javassist (from http://www.javassist.org/)
- RabbitMQ Java Client (from https://www.rabbitmq.com)
- RabbitMQ Java Client (from http://www.rabbitmq.com)
- okhttp (from https://square.github.io/okhttp/)
========================================================================
......@@ -984,15 +967,13 @@ SAX-PD
========================================================================
The following software have components provided under the terms of this license:
- Apache Ant Core (from http://ant.apache.org/)
- Apache Ant Core (from https://ant.apache.org/)
========================================================================
SPL-1.0
========================================================================
The following software have components provided under the terms of this license:
- Checker Qual (from https://checkerframework.org)
- Checker Qual (from https://checkerframework.org)
- Servlet Specification 2.5 API (from http://jetty.mortbay.org)
========================================================================
......@@ -1000,7 +981,7 @@ W3C
========================================================================
The following software have components provided under the terms of this license:
- Apache Ant Core (from http://ant.apache.org/)
- Apache Ant Core (from https://ant.apache.org/)
- JTidy (from http://jtidy.sourceforge.net)
- Xerces2-j (from https://xerces.apache.org/xerces2-j/)
- xml-apis (from )
......@@ -1018,8 +999,8 @@ public-domain
The following software have components provided under the terms of this license:
- AWS SDK for Java - Models (from https://aws.amazon.com/sdkforjava)
- Apache Groovy (from https://groovy-lang.org)
- Apache Groovy (from https://groovy-lang.org)
- Apache Groovy (from http://groovy-lang.org)
- Apache Groovy (from http://groovy-lang.org)
- Asynchronous Http Client (from https://repo1.maven.org/maven2/org/asynchttpclient/async-http-client)
- Guava: Google Core Libraries for Java (from https://repo1.maven.org/maven2/com/google/guava/guava)
- Guava: Google Core Libraries for Java (from https://repo1.maven.org/maven2/com/google/guava/guava)
......@@ -1035,7 +1016,7 @@ The following software have components provided under the terms of this license:
- Microsoft Azure client library for Blob Storage (from https://github.com/Azure/azure-sdk-for-java)
- Project Lombok (from http://projectlombok.org)
- Project Lombok (from http://projectlombok.org)
- RabbitMQ Java Client (from https://www.rabbitmq.com)
- RabbitMQ Java Client (from http://www.rabbitmq.com)
- Spring Web (from https://github.com/spring-projects/spring-framework)
- azure-documentdb (from http://azure.microsoft.com/en-us/services/documentdb/)
- msal4j (from https://github.com/AzureAD/microsoft-authentication-library-for-java)
......@@ -1049,6 +1030,7 @@ The following software have components provided under the terms of this license:
- Byte Buddy (without dependencies) (from https://repo1.maven.org/maven2/net/bytebuddy/byte-buddy)
- Checker Qual (from https://checkerframework.org)
- Checker Qual (from https://checkerframework.org)
- JSON in Java (from https://github.com/douglascrockford/JSON-java)
- JTidy (from http://jtidy.sourceforge.net)
- JUnit Jupiter (Aggregator) (from https://junit.org/junit5/)
......@@ -1059,7 +1041,7 @@ The following software have components provided under the terms of this license:
- JUnit Platform Engine API (from https://junit.org/junit5/)
- Jakarta Activation API jar (from https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api)
- Jakarta XML Binding API (from https://repo1.maven.org/maven2/jakarta/xml/bind/jakarta.xml.bind-api)
- RabbitMQ Java Client (from https://www.rabbitmq.com)
- RabbitMQ Java Client (from http://www.rabbitmq.com)
- Spongy Castle (from http://rtyley.github.io/spongycastle/)
- System Rules (from http://stefanbirkner.github.io/system-rules/)
- xml-apis (from )
......
......@@ -5,12 +5,12 @@
<parent>
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>legal-service</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
</parent>
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>legal-core</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>legal-core</name>
<description>Legal service core</description>
......
......@@ -51,7 +51,7 @@ public class LegalTagStatusJobApi {
boolean allPassed = true;
for (TenantInfo tenantInfo : tenantsInfo) {
convertedHeaders.put(DpsHeaders.ACCOUNT_ID, tenantInfo.getName());
boolean result = runJob(convertedHeaders, legalTagStatusJob);
boolean result = runJob(convertedHeaders, tenantInfo, legalTagStatusJob);
if (allPassed)
allPassed = result;
}
......@@ -60,11 +60,11 @@ public class LegalTagStatusJobApi {
return new ResponseEntity<HttpStatus>(status);
}
private boolean runJob(DpsHeaders convertedHeaders, LegalTagStatusJob legalTagStatusJob) {
private boolean runJob(DpsHeaders convertedHeaders, TenantInfo tenantInfo, LegalTagStatusJob legalTagStatusJob) {
boolean success = true;
try {
String projectId = requestInfo.getTenantInfo().getProjectId();
StatusChangedTags result = legalTagStatusJob.run(projectId, convertedHeaders, requestInfo.getTenantInfo().getName());
StatusChangedTags result = legalTagStatusJob.run(projectId, convertedHeaders, tenantInfo.getName());
auditLogger.legalTagJobRanSuccess(singletonList(result.toString()));
} catch (Exception e) {
success = false;
......
......@@ -11,6 +11,8 @@ import org.opengroup.osdu.core.common.logging.JaxRsDpsLog;
import java.util.Collections;
import java.util.List;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
......@@ -67,13 +69,15 @@ public class AuditLoggerTests {
@Test
public void should_writeLegalTagReadPropertiesSuccessEvent(){
sut.readLegalPropertiesSuccess(any());
List<String> resource = Collections.singletonList("1");
sut.readLegalPropertiesSuccess(resource);
verify(log).audit(any());
}
@Test
public void should_writeLegalTagReadPropertiesFailEvent(){
sut.readLegalPropertiesFail(any());
List<String> resource = Collections.singletonList("1");
sut.readLegalPropertiesFail(resource);
verify(log).audit(any());
}
......
......@@ -23,7 +23,7 @@
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>legal-service</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>legal-service</name>
<description>Legal service</description>
......
......@@ -65,9 +65,9 @@ phases:
- printenv
- echo "Building primary service assemblies..."
- mvn -ntp -B test install sonar:sonar -pl .,legal-core,provider/legal-aws -Ddeployment.environment=prod -Dsonar.login=${SONAR_USERNAME} -Dsonar.password=${SONAR_PASSWORD} -Dsonar.branch.name=${BRANCH_NAME}
- mvn -ntp -B test install sonar:sonar -pl .,legal-core,provider/legal-aws -Ddeployment.environment=prod -Dsonar.login=${SONAR_USERNAME} -Dsonar.password=${SONAR_PASSWORD} -Dsonar.branch.name=${BRANCH_NAME}
# Suspended until further notice
# Suspended until further notice
# - echo "Copying assemblies to dist..."
# - cp ./provider/legal-aws/target/*spring-boot.jar ${OUTPUT_DIR}/bin # copy aws jars
# - cp ./legal-core/target/*.jar ${OUTPUT_DIR}/bin # copy core jar
......
......@@ -18,7 +18,7 @@
<parent>
<artifactId>legal-service</artifactId>
<groupId>org.opengroup.osdu.legal</groupId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
......@@ -29,7 +29,7 @@
<properties>
<aws.version>1.11.1018</aws.version>
<deployment.environment>dev</deployment.environment>
<version.number>0.12.0-SNAPSHOT</version.number>
<version.number>0.13.0-SNAPSHOT</version.number>
</properties>
<dependencies>
......
// Copyright © Amazon
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.opengroup.osdu.legal.aws.jobs;
import lombok.Data;
import org.opengroup.osdu.core.common.model.legal.StatusChangedTag;
@Data
public class AwsStatusChangedTag extends StatusChangedTag {
private String dataPartitionId;
public AwsStatusChangedTag(String changedTagName, Enum changedTagStatus, String dataPartitionId) {
super(changedTagName, changedTagStatus);
this.dataPartitionId = dataPartitionId;
}
}
......@@ -30,9 +30,11 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@Service
public class LegalTagPublisherImpl implements ILegalTagPublisher {
......@@ -43,7 +45,8 @@ public class LegalTagPublisherImpl implements ILegalTagPublisher {
private AmazonSNS snsClient;
@Inject
private DpsHeaders headers;
@PostConstruct
public void init() throws K8sParameterNotFoundException {
......@@ -75,9 +78,13 @@ public class LegalTagPublisherImpl implements ILegalTagPublisher {
for (int i = 0; i < tags.getStatusChangedTags().size(); i += BATCH_SIZE){
List<StatusChangedTag> batch = tags.getStatusChangedTags().subList(i, Math.min(tags.getStatusChangedTags().size(), i + BATCH_SIZE));
PublishRequestBuilder<StatusChangedTag> publishRequestBuilder = new PublishRequestBuilder<>();
List<AwsStatusChangedTag> awsBatch = batch.stream()
.map(t -> new AwsStatusChangedTag(t.getChangedTagName(), t.getChangedTagStatus(), headers.getPartitionId()))
.collect(Collectors.toList());
PublishRequestBuilder<AwsStatusChangedTag> publishRequestBuilder = new PublishRequestBuilder<>();
PublishRequest publishRequest = publishRequestBuilder.generatePublishRequest("statusChangedTags",
batch, messageAttributes, amazonSNSTopic);
awsBatch, messageAttributes, amazonSNSTopic);
snsClient.publish(publishRequest);
}
}
......
package org.opengroup.osdu.legal.aws.tags.dataaccess;
import org.apache.commons.lang3.StringUtils;
import org.opengroup.osdu.core.common.model.http.AppException;
import org.opengroup.osdu.core.common.model.http.DpsHeaders;
import org.opengroup.osdu.core.common.model.tenant.TenantInfo;
import org.opengroup.osdu.core.common.provider.interfaces.ITenantFactory;
import org.opengroup.osdu.legal.provider.interfaces.ILegalTagRepository;
import org.opengroup.osdu.legal.provider.interfaces.ILegalTagRepositoryFactory;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import org.springframework.web.context.annotation.RequestScope;
import javax.inject.Inject;
@Service
@Primary
@RequestScope
public class LegalTagRepositoryFactoryAwsImpl implements ILegalTagRepositoryFactory {
private TenantInfo tenantInfo;
private ITenantFactory tenantFactory;
@Inject
LegalTagRepositoryImpl repoImpl;
public LegalTagRepositoryFactoryAwsImpl(TenantInfo tenantInfo, ITenantFactory tenantFactory) {
this.tenantInfo = tenantInfo;
this.tenantFactory = tenantFactory;
}
@Override
public ILegalTagRepository get(String tenantName) {
if (StringUtils.isBlank(tenantName)) {
throw invalidTenantGivenException(tenantName);
}
TenantInfo tenantInfo = tenantFactory.getTenantInfo(tenantName);
repoImpl.setTenantInfo(tenantInfo);
return repoImpl;
}
AppException invalidTenantGivenException(String tenantName) {
return new AppException(403, "Forbidden",
String.format("You do not have access to the %s value given %s",
DpsHeaders.ACCOUNT_ID, tenantName));
}
}
......@@ -21,14 +21,19 @@ import org.opengroup.osdu.core.aws.dynamodb.DynamoDBQueryHelper;
import org.opengroup.osdu.core.aws.dynamodb.DynamoDBQueryHelperFactory;
import org.opengroup.osdu.core.aws.dynamodb.DynamoDBQueryHelperV2;
import org.opengroup.osdu.core.aws.dynamodb.QueryPageResult;
import org.opengroup.osdu.core.common.logging.JaxRsDpsLog;
import org.opengroup.osdu.core.common.model.http.DpsHeaders;
import org.opengroup.osdu.core.common.model.legal.ListLegalTagArgs;
import org.opengroup.osdu.core.common.model.legal.LegalTag;
import org.opengroup.osdu.core.common.model.http.AppException;
import org.opengroup.osdu.core.common.model.tenant.TenantInfo;
import org.opengroup.osdu.core.common.provider.interfaces.ITenantFactory;
import org.opengroup.osdu.legal.provider.interfaces.ILegalTagRepository;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Repository;
import org.springframework.web.context.annotation.RequestScope;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
......@@ -36,19 +41,38 @@ import java.io.UnsupportedEncodingException;
import java.util.*;
@Repository // why use repository over component over service
@RequestScope
public class LegalTagRepositoryImpl implements ILegalTagRepository {
@Inject
private DpsHeaders headers;
@Inject
private JaxRsDpsLog log;
private TenantInfo tenantInfo;
@Inject
private DynamoDBQueryHelperFactory dynamoDBQueryHelperFactory;
@Value("${aws.dynamodb.legalTable.ssm.relativePath}")
String legalRepositoryTableParameterRelativePath;
public void setTenantInfo(TenantInfo tenantInfo) {
this.tenantInfo = tenantInfo;
}
private String getDataPartitionId(){
if(this.tenantInfo == null){
log.warning("TenantInfo found to be null, defaulting to partition in headers");
return headers.getPartitionId();
}
return tenantInfo.getDataPartitionId();
}
private DynamoDBQueryHelperV2 getLegalRepositoryQueryHelper() {
return dynamoDBQueryHelperFactory.getQueryHelperForPartition(headers, legalRepositoryTableParameterRelativePath);
String dataPartitionId = getDataPartitionId();
return dynamoDBQueryHelperFactory.getQueryHelperForPartition(dataPartitionId, legalRepositoryTableParameterRelativePath);
}
......@@ -72,7 +96,7 @@ public class LegalTagRepositoryImpl implements ILegalTagRepository {
List<LegalTag> tags = new ArrayList<>();
for(long id: ids) {
LegalDoc ld = queryHelper.loadByPrimaryKey(LegalDoc.class, String.valueOf(id), headers.getPartitionId()); //dynamoDBLegal.findById(String.valueOf(id));
LegalDoc ld = queryHelper.loadByPrimaryKey(LegalDoc.class, String.valueOf(id), getDataPartitionId()); //dynamoDBLegal.findById(String.valueOf(id));
if(ld != null) {
tags.add(CreateLegalTagFromDoc(ld));
}
......@@ -87,7 +111,7 @@ public class LegalTagRepositoryImpl implements ILegalTagRepository {
Boolean result = true;
try {
queryHelper.deleteByPrimaryKey(LegalDoc.class, String.valueOf(legalTag.getId()), headers.getPartitionId());
queryHelper.deleteByPrimaryKey(LegalDoc.class, String.valueOf(legalTag.getId()), getDataPartitionId());
} catch (Exception e){ // should be dynamodb specific exception
result = false;
// might need to throw app exception
......@@ -108,7 +132,7 @@ public class LegalTagRepositoryImpl implements ILegalTagRepository {
String filterExpression = "dataPartitionId = :partitionId";
AttributeValue dataPartitionAttributeValue = new AttributeValue(headers.getPartitionId());
AttributeValue dataPartitionAttributeValue = new AttributeValue(getDataPartitionId());
Map<String, AttributeValue> eav = new HashMap<>();
eav.put(":partitionId", dataPartitionAttributeValue);
......@@ -162,7 +186,7 @@ public class LegalTagRepositoryImpl implements ILegalTagRepository {
private LegalDoc CreateLegalDocFromTag(LegalTag legalTag){
LegalDoc legalDoc = new LegalDoc();
legalDoc.setId(String.valueOf(legalTag.getId()));
legalDoc.setDataPartitionId(headers.getPartitionId());
legalDoc.setDataPartitionId(getDataPartitionId());
legalDoc.setDescription(legalTag.getDescription());
legalDoc.setName(legalTag.getName());
legalDoc.setProperties(legalTag.getProperties());
......
......@@ -24,6 +24,7 @@ import org.opengroup.osdu.core.aws.dynamodb.DynamoDBQueryHelper;
import org.opengroup.osdu.core.aws.dynamodb.DynamoDBQueryHelperFactory;
import org.opengroup.osdu.core.aws.dynamodb.DynamoDBQueryHelperV2;
import org.opengroup.osdu.core.aws.dynamodb.QueryPageResult;
import org.opengroup.osdu.core.common.logging.JaxRsDpsLog;
import org.opengroup.osdu.core.common.model.http.DpsHeaders;
import org.opengroup.osdu.legal.aws.tags.dataaccess.LegalDoc;
import org.opengroup.osdu.legal.aws.tags.dataaccess.LegalTagRepositoryImpl;
......@@ -50,14 +51,20 @@ public class LegalTagRepositoryImplTest {
@Mock
private DpsHeaders headers;
@Mock
private JaxRsDpsLog log;
@Mock
private DynamoDBQueryHelperFactory dynamoDBQueryHelperFactory;
@Before
public void setUp() {
initMocks(this);
Mockito.when(dynamoDBQueryHelperFactory.getQueryHelperForPartition(Mockito.any(DpsHeaders.class), Mockito.any()))
String testPartition = "test-partition";
Mockito.when(dynamoDBQueryHelperFactory.getQueryHelperForPartition(Mockito.eq(testPartition), Mockito.any()))
.thenReturn(queryHelper);
Mockito.when(headers.getPartitionId())
.thenReturn(testPartition);
}
@Test
......
......@@ -19,7 +19,7 @@
<parent>
<artifactId>legal-service</artifactId>
<groupId>org.opengroup.osdu.legal</groupId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
......@@ -33,7 +33,7 @@
<azure.appservice.subscription />
<osdu.corelibazure.version>0.12.0</osdu.corelibazure.version>
<osdu.oscorecommon.version>0.12.0</osdu.oscorecommon.version>
<osdu.legal-core.version>0.12.0-SNAPSHOT</osdu.legal-core.version>
<osdu.legal-core.version>0.13.0-SNAPSHOT</osdu.legal-core.version>
<javax.inject.version>1</javax.inject.version>
<javax.servlet-api.version>4.0.1</javax.servlet-api.version>
<woodstox-core.version>5.3.0</woodstox-core.version>
......
......@@ -3,7 +3,7 @@
<parent>
<artifactId>legal-service</artifactId>
<groupId>org.opengroup.osdu.legal</groupId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
......@@ -19,7 +19,7 @@
<dependency>
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>legal-core</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
......
......@@ -5,13 +5,13 @@
<parent>
<artifactId>legal-service</artifactId>
<groupId>org.opengroup.osdu.legal</groupId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>legal-gcp</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>legal-gcp</name>
<description>Legal service Google App Engine flex</description>
......@@ -22,19 +22,31 @@
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-gcp</artifactId>
<version>0.12.0</version>
</dependency>
<dependency>
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>legal-core</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>os-core-common</artifactId>
</dependency>
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-gcp</artifactId>
<version>0.12.0</version>
<exclusions>
<exclusion>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
......@@ -50,37 +62,6 @@
<version>1</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-core</artifactId>
<version>1.38.1</version>
</dependency>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-iam</artifactId>
<version>v1-rev281-1.25.0</version>
<exclusions>
<exclusion>
<artifactId>guava-jdk5</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>27.1-jre</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.12</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
......@@ -92,23 +73,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<version>1.85.0</version>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-pubsub</artifactId>
<version>1.85.0</version>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-datastore</artifactId>
<version>1.85.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.github.resilience4j/resilience4j-circuitbreaker -->
<dependency>
......
......@@ -3,7 +3,7 @@
<parent>
<artifactId>legal-service</artifactId>
<groupId>org.opengroup.osdu.legal</groupId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
......@@ -18,7 +18,7 @@
<dependency>
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>legal-core</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.opengroup.osdu</groupId>
......
......@@ -5,12 +5,12 @@
<parent>
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>legal-service</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>legal-reference</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>legal-reference</name>
<description>Legal service for Anthos</description>
......@@ -24,7 +24,7 @@
<dependency>
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>legal-core</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.opengroup.osdu</groupId>
......
......@@ -21,7 +21,8 @@ echo $INTEGRATION_TEST_OUTPUT_BIN_DIR
rm -rf "$INTEGRATION_TEST_OUTPUT_DIR"
mkdir -p "$INTEGRATION_TEST_OUTPUT_DIR" && mkdir -p "$INTEGRATION_TEST_OUTPUT_BIN_DIR"
echo "Building integration testing assemblies and gathering artifacts..."
mvn -ntp install -f "$INTEGRATION_TEST_SOURCE_DIR_CORE"/pom.xml
mvn -ntp clean install -DskipTests -f "$INTEGRATION_TEST_SOURCE_DIR/pom.xml" -pl legal-test-core,legal-test-aws -am
# mvn -ntp install -f "$INTEGRATION_TEST_SOURCE_DIR_CORE"/pom.xml
mvn -ntp install dependency:copy-dependencies -DskipTests -f "$INTEGRATION_TEST_SOURCE_DIR_AWS"/pom.xml -DincludeGroupIds=org.opengroup.osdu -Dmdep.copyPom
cp "$INTEGRATION_TEST_SOURCE_DIR_AWS"/target/dependency/* "${INTEGRATION_TEST_OUTPUT_BIN_DIR}"
(cd "${INTEGRATION_TEST_OUTPUT_BIN_DIR}" && ls *.jar | sed -e 's/\.jar$//' | xargs -I {} echo mvn -ntp install:install-file -Dfile={}.jar -DpomFile={}.pom >> install-deps.sh)
......
......@@ -20,13 +20,13 @@
<parent>
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>os-legal-testing</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>legal-test-aws</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
......@@ -40,7 +40,7 @@
<dependency>
<groupId>org.opengroup.osdu.legal</groupId>
<artifactId>legal-test-core</artifactId>
<version>0.12.0-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.opengroup.osdu.core.aws</groupId>
......
......@@ -49,7 +49,7 @@ public class AwsSqsHelper {
// comes wrapped in non-escaped double quotes
data = data.substring(1);
data = data.substring(0, data.length() - 1);
String dataCheck = "{\"statusChangedTags\":[{\"changedTagName\":\"" + name + "\",\"changedTagStatus\":\"incompliant\"}]}";
String dataCheck = "{\"statusChangedTags\":[{\"dataPartitionId\":\"" + TestUtils.getMyDataPartition() + "\",\"changedTagName\":\"" + name + "\",\"changedTagStatus\":\"incompliant\"}]}";
dataCheck = dataCheck.replaceAll("\"", "\\\\\"");
return data.equals(dataCheck);
}
......