diff --git a/elide-async/pom.xml b/elide-async/pom.xml index ea0960cf1e..e4cb4410b2 100644 --- a/elide-async/pom.xml +++ b/elide-async/pom.xml @@ -58,8 +58,8 @@ - org.apache.httpcomponents - httpclient + org.apache.httpcomponents.client5 + httpclient5 com.jayway.jsonpath diff --git a/elide-async/src/main/java/com/yahoo/elide/async/operation/JsonApiAsyncQueryOperation.java b/elide-async/src/main/java/com/yahoo/elide/async/operation/JsonApiAsyncQueryOperation.java index 0a9241cd81..3292662572 100644 --- a/elide-async/src/main/java/com/yahoo/elide/async/operation/JsonApiAsyncQueryOperation.java +++ b/elide-async/src/main/java/com/yahoo/elide/async/operation/JsonApiAsyncQueryOperation.java @@ -13,8 +13,8 @@ import com.yahoo.elide.core.request.route.Route; import com.yahoo.elide.core.security.User; import com.yahoo.elide.jsonapi.JsonApi; -import org.apache.http.NameValuePair; -import org.apache.http.client.utils.URIBuilder; +import org.apache.hc.core5.http.NameValuePair; +import org.apache.hc.core5.net.URIBuilder; import lombok.extern.slf4j.Slf4j; @@ -46,7 +46,6 @@ public ElideResponse execute(AsyncApi queryObj, RequestScope scope) Map> queryParams = getQueryParams(uri); log.debug("Extracted QueryParams from AsyncQuery Object: {}", queryParams); - //TODO - we need to add the baseUrlEndpoint to the queryObject. Route route = Route.builder().baseUrl(scope.getRoute().getBaseUrl()).path(getPath(uri)).parameters(queryParams) .headers(scope.getRoute().getHeaders()).apiVersion(apiVersion).build(); ElideResponse response = jsonApi.get(route, user, requestUUID); diff --git a/elide-async/src/main/java/com/yahoo/elide/async/operation/JsonApiTableExportOperation.java b/elide-async/src/main/java/com/yahoo/elide/async/operation/JsonApiTableExportOperation.java index 9e03788d0e..807dcf333c 100644 --- a/elide-async/src/main/java/com/yahoo/elide/async/operation/JsonApiTableExportOperation.java +++ b/elide-async/src/main/java/com/yahoo/elide/async/operation/JsonApiTableExportOperation.java @@ -21,7 +21,7 @@ import com.yahoo.elide.jsonapi.EntityProjectionMaker; import com.yahoo.elide.jsonapi.JsonApiRequestScope; -import org.apache.http.client.utils.URIBuilder; +import org.apache.hc.core5.net.URIBuilder; import lombok.extern.slf4j.Slf4j; diff --git a/elide-async/src/test/java/com/yahoo/elide/async/service/AsyncExecutorServiceTest.java b/elide-async/src/test/java/com/yahoo/elide/async/service/AsyncExecutorServiceTest.java index 8ef81f9516..2a9ad8847f 100644 --- a/elide-async/src/test/java/com/yahoo/elide/async/service/AsyncExecutorServiceTest.java +++ b/elide-async/src/test/java/com/yahoo/elide/async/service/AsyncExecutorServiceTest.java @@ -35,7 +35,7 @@ import com.yahoo.elide.core.utils.DefaultClassScanner; import com.yahoo.elide.jsonapi.JsonApiSettings; -import org.apache.http.NoHttpResponseException; +import org.apache.hc.core5.http.NoHttpResponseException; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/pom.xml b/pom.xml index 0c0d7ed1a7..05413e4dbb 100644 --- a/pom.xml +++ b/pom.xml @@ -110,7 +110,7 @@ 8.0.0.Final 6.2.1.Final 3.0.1 - 4.5.14 + 5.2.1 2.10.1 2.2.224 5.0.1 @@ -149,6 +149,7 @@ 10.1.13 5.6.0 + 3.4.0 4.3.0 10.12.4 @@ -426,7 +427,7 @@ org.owasp.encoder encoder ${encoder.version} - + org.fusesource.jansi jansi @@ -462,9 +463,9 @@ ${handlebars.version} - org.apache.httpcomponents - httpclient - ${httpclient.version} + org.apache.httpcomponents.client5 + httpclient5 + ${httpclient5.version} com.github.opendevl @@ -492,12 +493,12 @@ org.skyscreamer jsonassert ${jsonassert.version} - + com.github.stefanbirkner system-lambda ${system-lambda.version} - + ch.qos.logback logback-classic