Fixes for security vulnerabilities 01/65101/1
authorsunil unnava <sunil.unnava@att.com>
Fri, 7 Sep 2018 00:37:53 +0000 (20:37 -0400)
committersunil unnava <sunil.unnava@att.com>
Fri, 7 Sep 2018 00:39:10 +0000 (20:39 -0400)
Issue-ID: DMAAP-738
Change-Id: Ie569c5eef3d015dd613e8c2f5b343da2f030f1e5
Signed-off-by: sunil unnava <sunil.unnava@att.com>
bundleconfig-local/etc/appprops/MsgRtrApi.properties
pom.xml
src/test/java/com/att/nsa/dmaap/DMaaPWebExceptionMapperTest.java
version.properties

index 106a1af..552c6a7 100644 (file)
@@ -37,7 +37,7 @@
 ##     Both Cambria and Kafka make use of Zookeeper.
 ##
 #config.zk.servers=172.18.1.1
-config.zk.servers=<zookeeper_host>
+config.zk.servers=10.12.5.108
 #config.zk.root=/fe3c/cambria/config
 
 
@@ -49,7 +49,7 @@ config.zk.servers=<zookeeper_host>
 ##     configurations (after removing "kafka.")
 ##     if you want to change request.required.acks it can take this one value
 #kafka.metadata.broker.list=localhost:9092,localhost:9093
-kafka.metadata.broker.list=<kafka_host>:<kafka_port>
+kafka.metadata.broker.list=10.12.5.108:9092
 ##kafka.request.required.acks=-1
 #kafka.client.zookeeper=${config.zk.servers}
 consumer.timeout.ms=100
diff --git a/pom.xml b/pom.xml
index 1c298f0..1f97cc0 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
 
        <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
        <artifactId>dmaapMR1</artifactId>
-       <version>1.1.6-SNAPSHOT</version>
+       <version>1.1.7-SNAPSHOT</version>
        <name>dmaap-messagerouter-messageservice</name>
        <description>Message Router - Restful interface built for kafka</description>
        <licenses>
                                </executions>
                        </plugin>
 
-                       <!-- <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-compiler-plugin</artifactId>
-                               <version>3.1</version>
-                               <configuration>
-                                       <compilerId>groovy-eclipse-compiler</compilerId>
-                                       <verbose>true</verbose>
-                                       <source>1.7</source>
-                                       <target>1.7</target>
-                               </configuration>
-                               <dependencies>
-                                       <dependency>
-                                               <groupId>org.codehaus.groovy</groupId>
-                                               <artifactId>groovy-eclipse-compiler</artifactId>
-                                               <version>2.8.0-01</version>
-                                       </dependency>
-                                       <dependency>
-                                               <groupId>org.codehaus.groovy</groupId>
-                                               <artifactId>groovy-eclipse-batch</artifactId>
-                                               <version>2.1.5-03</version>
-                                       </dependency>
-                               </dependencies>
-                       </plugin> -->
+                       <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> 
+                               <version>3.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId> 
+                               <verbose>true</verbose> <source>1.7</source> <target>1.7</target> </configuration> 
+                               <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId> 
+                               <version>2.8.0-01</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId> 
+                               <artifactId>groovy-eclipse-batch</artifactId> <version>2.1.5-03</version> 
+                               </dependency> </dependencies> </plugin> -->
                        <plugin>
                                <groupId>org.codehaus.groovy</groupId>
                                <artifactId>groovy-eclipse-compiler</artifactId>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
                <docker.image.prefix>simpledemo</docker.image.prefix>
-        <javax-mail-version>1.5.0</javax-mail-version>
+               <!-- <javax-mail-version>1.5.0</javax-mail-version> -->
                <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
                <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
                <ajscRuntimeVersion>3.0.7-oss</ajscRuntimeVersion>
                <testRouteOffer>workstation</testRouteOffer>
                <testEnv>DEV</testEnv>
                <!-- <dmaapImg>${project.version}</dmaapImg> -->
-               <dmaapImg>1.1.6</dmaapImg>
-               <camel.version>2.17.6</camel.version>
+               <dmaapImg>1.1.7</dmaapImg>
+               <camel.version>2.21.1</camel.version>
                <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
                <skip.docker.build>true</skip.docker.build>
                <skip.docker.push>true</skip.docker.push>
                so). If you have a startup failure related to a missing dme2 class not found 
                exception, please contact the AJSC team for assistance. You can email support 
                at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding 
-               the usage of the AJSC service pom.xml and management of dependencies,  -->
+               the usage of the AJSC service pom.xml and management of dependencies, -->
        <dependencies>
 
                <!-- cmn-CommonDataModel dependency added to resolve build issue not finding 
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-expression</artifactId>
-                       <version>4.3.16.RELEASE</version>
+                       <version>4.3.18.RELEASE</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-messaging</artifactId>
                        <version>4.1.9.RELEASE</version>
                </dependency>
-               <dependency>
-            <groupId>com.sun.mail</groupId>
-            <artifactId>javax.mail</artifactId>
-            <version>${javax-mail-version}</version>
-            <exclusions>
-              <!-- javax activation is part of the JDK now -->
-              <exclusion>
-                <groupId>javax.activation</groupId>
-                <artifactId>activation</artifactId>
-              </exclusion>
-            </exclusions>
-        </dependency>
-               
+               <!-- <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId> 
+                       <version>${javax-mail-version}</version> <exclusions> javax activation is 
+                       part of the JDK now <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> 
+                       </exclusion> </exclusions> </dependency> -->
+
                <dependency>
                        <groupId>org.apache.zookeeper</groupId>
                        <artifactId>zookeeper</artifactId>
                        <version>3.4.10</version>
                </dependency>
                <dependency>
-      <groupId>org.grails</groupId>
-      <artifactId>grails-bootstrap</artifactId>
-      <version>2.5.4</version>
-      <scope>compile</scope>
-      <exclusions>
-        <exclusion>
-          <artifactId>ant</artifactId>
-          <groupId>org.apache.ant</groupId>
-        </exclusion>
-        <exclusion>
-          <artifactId>jna</artifactId>
-          <groupId>net.java.dev.jna</groupId>
-        </exclusion>
-        <exclusion>
-          <artifactId>ant-trax</artifactId>
-          <groupId>org.apache.ant</groupId>
-        </exclusion>
-        <exclusion>
-          <artifactId>gant_groovy1.8</artifactId>
-          <groupId>org.codehaus.gant</groupId>
-        </exclusion>
-        <exclusion>
-          <artifactId>ant-launcher</artifactId>
-          <groupId>org.apache.ant</groupId>
-        </exclusion>
-        <exclusion>
-          <artifactId>jline</artifactId>
-          <groupId>jline</groupId>
-        </exclusion>
-        <exclusion>
-          <artifactId>ivy</artifactId>
-          <groupId>org.apache.ivy</groupId>
-        </exclusion>
-        <exclusion>
-          <artifactId>jansi</artifactId>
-          <groupId>org.fusesource.jansi</groupId>
-        </exclusion>
-        <exclusion>
-          <artifactId>commons-logging</artifactId>
-          <groupId>commons-logging</groupId>
-        </exclusion>
-        <exclusion>
-          <artifactId>ant-junit</artifactId>
-          <groupId>org.apache.ant</groupId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
+                       <groupId>org.grails</groupId>
+                       <artifactId>grails-bootstrap</artifactId>
+                       <version>2.5.4</version>
+                       <scope>compile</scope>
+                       <exclusions>
+                               <exclusion>
+                                       <artifactId>ant</artifactId>
+                                       <groupId>org.apache.ant</groupId>
+                               </exclusion>
+                               <exclusion>
+                                       <artifactId>jna</artifactId>
+                                       <groupId>net.java.dev.jna</groupId>
+                               </exclusion>
+                               <exclusion>
+                                       <artifactId>ant-trax</artifactId>
+                                       <groupId>org.apache.ant</groupId>
+                               </exclusion>
+                               <exclusion>
+                                       <artifactId>gant_groovy1.8</artifactId>
+                                       <groupId>org.codehaus.gant</groupId>
+                               </exclusion>
+                               <exclusion>
+                                       <artifactId>ant-launcher</artifactId>
+                                       <groupId>org.apache.ant</groupId>
+                               </exclusion>
+                               <exclusion>
+                                       <artifactId>jline</artifactId>
+                                       <groupId>jline</groupId>
+                               </exclusion>
+                               <exclusion>
+                                       <artifactId>ivy</artifactId>
+                                       <groupId>org.apache.ivy</groupId>
+                               </exclusion>
+                               <exclusion>
+                                       <artifactId>jansi</artifactId>
+                                       <groupId>org.fusesource.jansi</groupId>
+                               </exclusion>
+                               <exclusion>
+                                       <artifactId>commons-logging</artifactId>
+                                       <groupId>commons-logging</groupId>
+                               </exclusion>
+                               <exclusion>
+                                       <artifactId>ant-junit</artifactId>
+                                       <groupId>org.apache.ant</groupId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+               <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-webmvc</artifactId>
-                       <version>4.3.15.RELEASE</version>
+                       <version>4.3.18.RELEASE</version>
                </dependency>
-       <dependency>
+               <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-core</artifactId>
-                       <version>4.3.15.RELEASE</version>
+                       <version>4.3.18.RELEASE</version>
                </dependency>
-       <dependency>
+               <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-beans</artifactId>
-                       <version>4.3.15.RELEASE</version>
+                       <version>4.3.18.RELEASE</version>
                </dependency>
-               
+
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-context</artifactId>
-                       <version>4.3.15.RELEASE</version>
+                       <version>4.3.18.RELEASE</version>
                </dependency>
                <dependency>
                        <groupId>commons-io</groupId>
                <dependency>
                        <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
                        <artifactId>msgrtr</artifactId>
-                       <version>1.1.6</version>
+                       <version>1.1.7</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>org.slf4j</groupId>
                        <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency> 
                        <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId> 
                        <version>1.9.13</version> </dependency> -->
-        
+
                <dependency>
                        <groupId>com.fasterxml.jackson.jaxrs</groupId>
                        <artifactId>jackson-jaxrs-json-provider</artifactId>
                        <version>2.8.11.1</version>
                </dependency>
                <dependency>
-               <groupId>org.grails</groupId>
-       <artifactId>grails-web</artifactId>
-       <version>2.5.4</version>
-       <exclusions>
-               <exclusion>
                        <groupId>org.grails</groupId>
-                       <artifactId>grails-web-jsp</artifactId>
-               </exclusion>
-       </exclusions>
+                       <artifactId>grails-web</artifactId>
+                       <version>2.5.4</version>
+                       <exclusions>
+                               <exclusion>
+                                       <groupId>org.grails</groupId>
+                                       <artifactId>grails-web-jsp</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+               <dependency>
+                       <groupId>org.codehaus.groovy</groupId>
+                       <artifactId>groovy-all</artifactId>
+                       <version>2.4.8</version>
+                       <scope>compile</scope>
+                       <exclusions>
+                               <exclusion>
+                                       <artifactId>jline</artifactId>
+                                       <groupId>jline</groupId>
+                               </exclusion>
+                       </exclusions>
                </dependency>
-        <dependency>
-               <groupId>org.codehaus.groovy</groupId>
-               <artifactId>groovy-all</artifactId>
-               <version>2.4.4</version>
-               <scope>compile</scope>
-               <exclusions>
-                       <exclusion>
-                               <artifactId>jline</artifactId>
-                               <groupId>jline</groupId>
-                       </exclusion>
-               </exclusions>
-       </dependency>
 
                <dependency>
                        <groupId>junit</groupId>
                <dependency>
                        <groupId>org.apache.cxf</groupId>
                        <artifactId>cxf-rt-rs-extension-providers</artifactId>
-                       <version>3.0.12</version>
-                       <exclusions>
-                               <exclusion>
-                                       <groupId>org.apache.cxf</groupId>
-                                       <artifactId>cxf-rt-transports-http</artifactId>
-                               </exclusion>
-                       </exclusions>
-               </dependency>
-               <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-transports-http</artifactId>
-                       <version>3.1.16</version>
+                       <version>3.2.2</version>
+                       <!-- <exclusions> <exclusion> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> 
+                               </exclusion> </exclusions> -->
                </dependency>
+               <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> 
+                       <version>3.1.14</version> </dependency> -->
                <dependency>
                        <groupId>org.codehaus.jettison</groupId>
                        <artifactId>jettison</artifactId>
                        <version>1.3.7</version>
                </dependency>
 
-               <dependency>
-                       <groupId>dom4j</groupId>
-                       <artifactId>dom4j</artifactId>
-                       <version>1.6.1</version>
-                       <scope>provided</scope>
-               </dependency>
+               <!-- <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId> 
+                       <version>1.6.1</version> <scope>provided</scope> </dependency> -->
                <dependency>
                        <groupId>com.att.ajsc</groupId>
                        <artifactId>ajsc-archetype-parent</artifactId>
-                       <version>3.0.6-oss</version>
+                       <version>3.0.7-oss</version>
                        <type>pom</type>
                </dependency>
 
                        <groupId>org.apache.camel</groupId>
                        <artifactId>camel-servlet</artifactId>
                        <version>${camel.version}</version>
-                       <!-- <exclusions>
-                               <exclusion>
-                                       <groupId>commons-httpclient</groupId>
-                                       <artifactId>commons-httpclient</artifactId>
-                               </exclusion>
-                       </exclusions> -->
+                       <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> 
+                               </exclusion> </exclusions> -->
                </dependency>
-               <!-- <dependency>
-                       <groupId>org.apache.httpcomponents</groupId>
-                       <artifactId>httpclient</artifactId>
-                       <version>4.0</version>
-               </dependency> -->
+               <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> 
+                       <version>4.0</version> </dependency> -->
 
                <dependency>
                        <groupId>org.apache.camel</groupId>
                        <artifactId>camel-xmpp</artifactId>
                        <version>${camel.version}</version>
                </dependency>
+               <dependency>
+                       <groupId>org.igniterealtime.smack</groupId>
+                       <artifactId>smack-tcp</artifactId>
+                       <version>4.1.0-rc1</version>
+               </dependency>
                <dependency>
                        <groupId>org.apache.camel</groupId>
                        <artifactId>camel-velocity</artifactId>
                                                                        <executableDependency>
                                                                                <groupId>com.att.ajsc</groupId>
                                                                                <artifactId>ajsc-runner</artifactId>
-                                                                               </executableDependency>
+                                                                       </executableDependency>
                                                                        <additionalClasspathElements>
                                                                                <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
                                                                        </additionalClasspathElements>
index 370141e..8807b66 100644 (file)
@@ -39,6 +39,7 @@ import org.powermock.api.mockito.PowerMockito;
 import org.powermock.modules.junit4.PowerMockRunner;\r
 \r
 import com.att.dmf.mr.exception.DMaaPErrorMessages;\r
+\r
 @RunWith(PowerMockRunner.class)\r
 public class DMaaPWebExceptionMapperTest {\r
 \r
index ccd6e4a..61001b0 100644 (file)
@@ -27,7 +27,7 @@
 
 major=1
 minor=1
-patch=6
+patch=7
 
 base_version=${major}.${minor}.${patch}