summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lando <michael.lando@intl.att.com>2018-11-15 14:00:20 +0200
committerMichael Lando <michael.lando@intl.att.com>2018-11-15 20:54:01 +0200
commit11baae2bfe1e37109ef99b2f2414820cc5d97660 (patch)
tree33cbd946c5220a81bf7352ec264c7b644cc8a607
parentf41951033204f43882337533b4265790c598c4e1 (diff)
block swagger access1.3.3
remove swagger access to mitigate Change-Id: Ia95eb39f3d5f763d754c6957e40e0224e2423ed7 Issue-ID: SDC-1913 Signed-off-by: Michael Lando <michael.lando@intl.att.com>
-rw-r--r--.gitreview3
-rw-r--r--catalog-be/pom.xml7
-rw-r--r--catalog-be/src/main/webapp/WEB-INF/web.xml82
-rw-r--r--openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile2
4 files changed, 44 insertions, 50 deletions
diff --git a/.gitreview b/.gitreview
index d7a0930821..1ea97a0386 100644
--- a/.gitreview
+++ b/.gitreview
@@ -1,4 +1,5 @@
[gerrit]
host=gerrit.onap.org
port=29418
-project=sdc.git \ No newline at end of file
+project=sdc.git
+defaultbranch=casablanca \ No newline at end of file
diff --git a/catalog-be/pom.xml b/catalog-be/pom.xml
index 3d32633564..955d8c165f 100644
--- a/catalog-be/pom.xml
+++ b/catalog-be/pom.xml
@@ -579,12 +579,6 @@
</dependency>
<dependency>
- <groupId>org.codehaus.groovy</groupId>
- <artifactId>groovy</artifactId>
- <version>2.4.8</version>
- </dependency>
-
- <dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
</dependency>
@@ -616,7 +610,6 @@
<webResources>
<resource>
<directory>src/main/resources</directory>
- <directory>src/main/resources/swagger</directory>
</resource>
</webResources>
<attachClasses>true</attachClasses>
diff --git a/catalog-be/src/main/webapp/WEB-INF/web.xml b/catalog-be/src/main/webapp/WEB-INF/web.xml
index 027601b952..26f707d5ce 100644
--- a/catalog-be/src/main/webapp/WEB-INF/web.xml
+++ b/catalog-be/src/main/webapp/WEB-INF/web.xml
@@ -8,11 +8,11 @@
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>jersey.config.server.provider.packages</param-name>
- <param-value>io.swagger.jaxrs.json, org.openecomp.sdc.be.servlets</param-value>
+ <param-value>org.openecomp.sdc.be.servlets</param-value>
</init-param>
<init-param>
<param-name>jersey.config.server.provider.classnames</param-name>
- <param-value>io.swagger.jersey.listing.ApiListingResourceJSON,
+ <param-value>
org.glassfish.jersey.media.multipart.MultiPartFeature,
org.openecomp.sdc.be.filters.BeServletFilter,
org.openecomp.sdc.be.filters.ComponentsAvailabilityFilter,
@@ -23,14 +23,14 @@
</param-value>
</init-param>
- <init-param>
- <param-name>swagger.scanner.id</param-name>
- <param-value>test.1</param-value>
- </init-param>
- <init-param>
- <param-name>swagger.config.id</param-name>
- <param-value>test.1</param-value>
- </init-param>
+ <!--<init-param>-->
+ <!--<param-name>swagger.scanner.id</param-name>-->
+ <!--<param-value>test.1</param-value>-->
+ <!--</init-param>-->
+ <!--<init-param>-->
+ <!--<param-name>swagger.config.id</param-name>-->
+ <!--<param-value>test.1</param-value>-->
+ <!--</init-param>-->
<load-on-startup>1</load-on-startup>
</servlet>
@@ -88,38 +88,38 @@
<url-pattern>/sdc/*</url-pattern>
</servlet-mapping>
- <servlet>
- <servlet-name>Internal-APIs-Configurations</servlet-name>
- <servlet-class>io.swagger.jaxrs.config.DefaultJaxrsConfig</servlet-class>
-
- <init-param>
- <param-name>api.version</param-name>
- <param-value>1.2.0</param-value>
- </init-param>
-
- <init-param>
- <param-name>swagger.api.title</param-name>
- <param-value>Internal API's</param-value>
- </init-param>
-
- <init-param>
- <param-name>swagger.api.basepath</param-name>
- <param-value>/sdc2/rest</param-value>
- </init-param>
-
- <init-param>
- <param-name>swagger.scanner.id</param-name>
- <param-value>test.1</param-value>
- </init-param>
+ <!--<servlet>-->
+ <!--<servlet-name>Internal-APIs-Configurations</servlet-name>-->
+ <!--<servlet-class>io.swagger.jaxrs.config.DefaultJaxrsConfig</servlet-class>-->
+ <!---->
+ <!--<init-param>-->
+ <!--<param-name>api.version</param-name>-->
+ <!--<param-value>1.2.0</param-value>-->
+ <!--</init-param>-->
+ <!---->
+ <!--<init-param>-->
+ <!--<param-name>swagger.api.title</param-name>-->
+ <!--<param-value>Internal API's</param-value>-->
+ <!--</init-param>-->
+ <!---->
+ <!--<init-param>-->
+ <!--<param-name>swagger.api.basepath</param-name>-->
+ <!--<param-value>/sdc2/rest</param-value>-->
+ <!--</init-param>-->
+ <!---->
+ <!--<init-param>-->
+ <!--<param-name>swagger.scanner.id</param-name>-->
+ <!--<param-value>test.1</param-value>-->
+ <!--</init-param>-->
- <init-param>
- <param-name>swagger.config.id</param-name>
- <param-value>test.1</param-value>
- </init-param>
-
- <load-on-startup>2</load-on-startup>
- <async-supported>true</async-supported>
- </servlet>
+ <!--<init-param>-->
+ <!--<param-name>swagger.config.id</param-name>-->
+ <!--<param-value>test.1</param-value>-->
+ <!--</init-param>-->
+ <!---->
+ <!--<load-on-startup>2</load-on-startup>-->
+ <!--<async-supported>true</async-supported>-->
+ <!--</servlet>-->
<servlet>
<servlet-name>External and Distribution API's</servlet-name>
diff --git a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile
index f49b2847d4..1b25f36736 100644
--- a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile
+++ b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/Dockerfile
@@ -6,7 +6,7 @@ COPY chef-repo/cookbooks /root/chef-solo/cookbooks/
ADD onboarding-be-*.war ${JETTY_BASE}/webapps/
-ADD api-docs.war ${JETTY_BASE}/webapps/
+#ADD api-docs.war ${JETTY_BASE}/webapps/
USER root