diff options
-rwxr-xr-x | pom.xml | 34 | ||||
-rw-r--r-- | src/main/java/org/onap/aai/interceptors/pre/OneWaySslAuthorization.java | 4 |
2 files changed, 32 insertions, 6 deletions
@@ -107,7 +107,6 @@ <netty.version>4.0.37.Final</netty.version> <spring.test.version>4.3.6.RELEASE</spring.test.version> - <spring.web.version>4.3.6.RELEASE</spring.web.version> <cxf.version>3.2.2</cxf.version> @@ -535,6 +534,22 @@ <groupId>org.apache.cxf</groupId> <artifactId>cxf-core</artifactId> </exclusion> + <exclusion> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-http</artifactId> + </exclusion> + <exclusion> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-server</artifactId> + </exclusion> + <exclusion> + <groupId>org.springframework</groupId> + <artifactId>spring-web</artifactId> + </exclusion> + <exclusion> + <groupId>org.codehaus.jackson</groupId> + <artifactId>jackson-mapper-asl</artifactId> + </exclusion> </exclusions> </dependency> <dependency> @@ -546,6 +561,12 @@ <groupId>com.sun.jersey</groupId> <artifactId>jersey-json</artifactId> <version>1.18</version> + <exclusions> + <exclusion> + <groupId>org.codehaus.jackson</groupId> + <artifactId>jackson-mapper-asl</artifactId> + </exclusion> + </exclusions> </dependency> <!-- Do not use the jersey-client since jersey client 1.0 version clashes with jersey 2 which we are using --> @@ -610,11 +631,6 @@ </dependency> <dependency> <groupId>org.springframework</groupId> - <artifactId>spring-web</artifactId> - <version>${spring.web.version}</version> - </dependency> - <dependency> - <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.test.version}</version> <scope>test</scope> @@ -977,6 +993,12 @@ <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> + <!-- + Issue with the spring 1.5.15.RELEASE plugin is causing build errors + due to the fact that the plugin 1.5.15.RELEASE was built using maven 3.5 while + the current build version being used by our jenkins is 3.3.9 + --> + <version>1.5.12.RELEASE</version> <configuration> <mainClass>${start-class}</mainClass> <layout>ZIP</layout> diff --git a/src/main/java/org/onap/aai/interceptors/pre/OneWaySslAuthorization.java b/src/main/java/org/onap/aai/interceptors/pre/OneWaySslAuthorization.java index 6563e23..b9fc978 100644 --- a/src/main/java/org/onap/aai/interceptors/pre/OneWaySslAuthorization.java +++ b/src/main/java/org/onap/aai/interceptors/pre/OneWaySslAuthorization.java @@ -52,6 +52,10 @@ public class OneWaySslAuthorization extends AAIContainerFilter implements Contai public void filter(ContainerRequestContext containerRequestContext) throws IOException { + if(containerRequestContext.getUriInfo().getRequestUri().getPath().matches("^.*/util/echo$")){ + return; + } + String basicAuth = containerRequestContext.getHeaderString("Authorization"); List<MediaType> acceptHeaderValues = containerRequestContext.getAcceptableMediaTypes(); |