Skip to content

build(deps): bump io.rest-assured:rest-assured from 6.2.0 to 7.0.0 - #156

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/io.rest-assured-rest-assured-7.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/io.rest-assured-rest-assured-7.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps io.rest-assured:rest-assured from 6.2.0 to 7.0.0.

Changelog

Sourced from io.rest-assured:rest-assured's changelog.

Changelog 7.0.0 (2026-11-27)

  • The error you get when no path engine is on the classpath now links to the path engines section of the new documentation at rest-assured.io instead of the wiki
  • The JDK HTTP client (http-client-jdk) no longer refuses a Host header that equals the one it sends itself, such as given().header("Host", "localhost:" + port) for a request to localhost on that port. It leaves the header out instead. Another Host still needs http-client-apache5 or -Djdk.httpclient.allowRestrictedHeaders=host

Changelog 7.0.0-RC1 (2026-11-12)

  • Fix ConnectionConfig.dontCloseIdleConnectionsAfterEachResponse(), which always threw an IllegalArgumentException. It now returns a config that doesn't close idle connections after each response (issue #2016)

  • Fix ProxySpecification.withScheme(..) dropping the user name and password set with auth(..) or withAuth(..), so the proxy login was no longer sent (issue #2018)

  • Non-backward compatible change: a cookie without value, such as given().cookie("a"), cookie("a", null) or a null value in cookies(Map), is now sent as a= instead of a=null. Such a cookie also has no value (getValue() returns null) in a filter and is logged as a, where cookie("a") had the value "null" before (issue #2021)

  • Non-backward compatible change: a Cookie header set with header("Cookie", ..) is no longer dropped when the request also has cookies (for example from cookie(..), cookies(..) or the session id). Both are sent in one Cookie header, the header's value first, such as Cookie: h=1; a=1 (issue #2022)

  • Non-backward compatible change: headers whose names differ only in case, such as header("X-Multi", "1").header("x-multi", "2"), are now both sent, under the name used first, like headers with the same name. Before, only the last one was sent. A header that the HeaderConfig overwrites, such as Content-Type and Accept, is still sent once with the last value (issue #2023)

  • Non-backward compatible change: auth().digest(userName, password) and RestAssured.digest(userName, password) now only answer a Digest challenge from the server. Before, they did the same as basic(..), so a server that asked for Basic authentication (WWW-Authenticate: Basic) got the password in clear text. Such a server now gets no credentials and you get its 401 response back. A server that offers both Basic and Digest still gets a Digest answer. Use basic(..) if you want to answer both Basic and Digest challenges. digest(..) now creates the new DigestAuthScheme instead of a BasicAuthScheme, and AuthenticationContext has a new digest(userName, password) method (issue #2017)

  • Non-backward compatible change: given().trustStore(path, password) and given().keyStore(path, password) (with a String or File path), RequestSpecBuilder.setTrustStore(path, password) and setKeyStore(path, password), and RestAssured.trustStore(path, password) and RestAssured.keyStore(path, password) no longer allow all host names. Like sslConfig().trustStore(..) and sslConfig().keyStore(..), which they are shortcuts for, they now keep the host name verification of the SSL config, which is strict by default, so a server certificate that isn't issued for the host of the request now fails the request with an SSLException. To get the old behavior back, add allowAllHostnames() to the SSL config, for example given().config(config().sslConfig(sslConfig().trustStore(path, password).allowAllHostnames())) or RestAssured.config = RestAssured.config().sslConfig(sslConfig().trustStore(path, password).allowAllHostnames()) (issue #2019)

  • Fix auth().oauth2(accessToken, OAuthSignature.QUERY_STRING) and RestAssured.oauth2(accessToken, OAuthSignature.QUERY_STRING), which failed with a ClassCastException before sending the request. The access token is now added to the request URI as the access_token query parameter (RFC 6750, section 2.3), and no Authorization header is sent. Like the Authorization header, the query parameter isn't sent along when a redirect goes to another host, unless RedirectConfig.stripSensitiveHeadersOnCrossHostRedirect(false) is set. RestAssured.oauth2(accessToken, OAuthSignature.HEADER), which failed with the same ClassCastException, now sends the access token as a bearer token in the Authorization header, like auth().oauth2(accessToken) (issue #884)

  • Fix connectionConfig().closeIdleConnectionsAfterEachResponse() closing the connection of a response before its body was read, so reading a body larger than about 8 KiB failed with "SocketException: Socket closed". When the body is read after the request, idle connections are now closed once the body has been read (issue #1115)

  • Fix httpClientConfig().reuseHttpClientInstance() failing with "IllegalStateException: Invalid use of BasicClientConnManager: connection still allocated" on the request after a response whose body was never read, for example when only its status code was checked or its body was empty. The next request now reads and discards what is left of that body first, which frees the connection for it, so read the body of a response before you send the next request if you need it (issue #990)

  • Fix RestAssured.keyStore(password), which always failed with an IllegalArgumentException. Like SSLConfig.keyStore(password), it now uses the keystore at ${user.home}/.keystore

  • Non-backward compatible change: given().multiPart("name", bytes) with a byte[] now sends the bytes as they are, with the mime-type application/octet-stream and the default file name of the MultiPartConfig ("file" unless configured otherwise), like multiPart("name", "file", bytes). Before, it was sent as a text/plain part with the bytes serialized to a JSON string (Base64), since the call went to multiPart(String, Object). RequestSpecification has a new multiPart(String, byte[]) method, and multiPart(String, Object) also sends a byte[] this way (issue #2020)

  • Non-backward compatible change: a String part without a charset, such as given().multiPart("text", "åäö") or a serialized object or form parameter in a multipart request, is now encoded in the charset of the multipart request: the charset of its Content-Type, such as multipart/form-data; charset=ISO-8859-1, or else MultiPartConfig.defaultCharset(..), or else UTF-8. Before, it was always encoded as US-ASCII, so characters such as å, ä, ö or Cyrillic letters were sent as "?", and MultiPartConfig.defaultCharset(..) didn't change that. The Content-Type of the part is unchanged (no charset parameter is added). A part with a charset of its own, from MultiPartSpecBuilder.charset(..) or its mime-type, is still encoded in that charset (issue #1261)

  • Fix multipart requests in RestAssuredWebTestClient (spring-web-test-client), which sent each part under its file name (or "null") with REST Assured's internal part object serialized to JSON as content, so the text, bytes, file or stream never reached the server. Each part is now sent like RestAssured sends it: under its control name, with its file name, content-type and content. multiPart(controlName, contentBody) now also sends the part as text/plain, as documented, instead of application/octet-stream (issue #2029)

  • Added JsonConfig.pathEngine(JsonPathEngine), which picks the engine that evaluates JSON paths in body(..) expectations, path(..) and extract().path(..), for example RestAssured.config = RestAssured.config().jsonConfig(jsonConfig().pathEngine(JsonPathEngine.JAYWAY)). The engines are GPATH, the path syntax REST Assured has always used (json-path-gpath), and JAYWAY, JSONPath with Jayway JsonPath (json-path-jayway). When no engine is configured, REST Assured uses GPath if json-path-gpath is on the classpath and otherwise Jayway, and when both are on the classpath it logs once, at INFO level through the "io.restassured" System.Logger, that it uses GPath. jsonPath() always uses GPath

  • Added the json-path-jayway module, which evaluates JSON paths with Jayway JsonPath in body(..) expectations, path(..) and extract().path(..), for example body("$.store.book[?(@.price < 10)].title", hasItems(..)). Add it with Maven:

    or with Gradle: testImplementation("io.rest-assured:json-path-jayway:${restAssuredVersion}"). On its own it's used without any configuration. With json-path-gpath on the classpath too, set jsonConfig().pathEngine(JsonPathEngine.JAYWAY) globally, on a request or on a response specification. The module parses the body itself, with numbers following JsonConfig, so BIG_DECIMAL keeps 1.50 as 1.50. A missing property gives null, as in GPath, while a list addressed as an object, such as "lotto.winners.winnerId", fails with a message that shows how to address its elements, such as "lotto.winners[*].winnerId". GPath syntax that JSONPath doesn't have, such as a quoted key after a dot ("store.'my-key'"), a closure or a GPath method such as unique(), fails as an invalid path. Without json-path-gpath on the classpath, these failures also suggest adding json-path-gpath, in case the path is a GPath path from REST Assured 6.x. JaywayPath.from(json) returns a Jayway DocumentContext configured like the module, to use instead of jsonPath(). The module needs Jayway JsonPath 2.8.0 or later and fails with a message that says so when an older one is on the classpath, which dependency management such as Spring Boot's can cause. Jayway logs through SLF4J, which prints a warning when no SLF4J provider is on the classpath

  • Added ResponseSpecBuilder.setConfig(RestAssuredConfig). The config is used when the response specification validates a response, for each config type it configures, so it outranks the config of the request, which in turn outranks RestAssured.config. For example, new ResponseSpecBuilder().setConfig(config().jsonConfig(jsonConfig().pathEngine(JsonPathEngine.JAYWAY))) evaluates the specification's body expectations with Jayway. The merge works per config type: that JsonConfig replaces the request's whole JsonConfig, including a numberReturnType set in RestAssured.config, so configure everything you need of a type in it. A LogConfig with enableLoggingOfRequestAndResponseIfValidationFails() logs the request and response when the specification's validation fails with expect().spec(..) or given(requestSpecification, responseSpecification), and only the response with then().spec(..)

  • Fix a config set on a request specification, such as new RequestSpecBuilder().setConfig(config).build() merged with given().spec(..) or given(requestSpecification), which wasn't used for the expectations set with expect(), such as given().spec(requestSpecification).expect().body(..). They were validated with RestAssured.config instead. The config now also applies to expect() assertions, for every config type, as with given().config(..) and then()

  • Fix given(requestSpecification, responseSpecification) with logging of the request and response if validation fails (LogConfig.enableLoggingOfRequestAndResponseIfValidationFails()), which logged only the response when validation failed. It now logs the request too, as given() does

  • Non-backward compatible change: sending a request no longer changes the request or response specification it was sent from. Sending works on copies of both, so one specification can be sent several times, and from many threads, and sends the same request each time (issue #945). The filter instances on the specification are still shared by every send, so a filter used from many threads must be thread safe, and the stream of a log().ifValidationFails() set on the specification collects the request logs of every send, from every thread. Code that inspects a specification after sending it, for example SpecificationQuerier.query(spec).getURI() or getMethod(), now sees what was set before the send. The specification no longer gets the method, the path, the path parameters, the query parameters of the path's query string (such as a=1 in get("/x?a=1")), the default Accept and Content-Type headers, the body built from form parameters, the multipart parts built from form parameters, the HTTP client, the default authentication scheme, the config, REST Assured's internal filters (such as the CSRF, timing, logging and sending filters), the logging settings, or anything a filter changed, such as a cookie added by CookieFilter or the session id added by SessionFilter. Parsers registered with then().parser(..) or then().defaultParser(..) no longer reach the response specification that the request was sent with. Filters and the failure listeners of FailureConfig get the copies, with everything set during the send, instead of the specifications themselves. Before, a specification sent twice sent the query parameters of the path twice and kept the filters of the first send, so after given(requestSpecification, responseSpecification) a filter added with given().spec(requestSpecification).filter(..) didn't run, and a specification sent from many threads failed or mixed up the requests. given(requestSpecification, responseSpecification) also no longer links the two specifications to each other, so afterwards, as for any built specification, requestSpecification.get(..) throws an IllegalStateException for a specification built by RequestSpecBuilder, and responseSpecification.when() throws one for a specification built by ResponseSpecBuilder

  • Fix given(requestSpecification, responseSpecification), which validated the response with RestAssured.config as it was when the response specification was built, and ignored the config of the request specification, such as one set with RequestSpecBuilder.setConfig(..). The response is now validated with the config set with ResponseSpecBuilder.setConfig(..), for each config type that it configures, then with the config of the request specification, then with RestAssured.config, as with given().spec(requestSpecification).expect().spec(responseSpecification). A config set on RestAssured.requestSpecification now applies to expect() assertions too

  • Fix given().spec(requestSpecification), given(requestSpecification) and given() with RestAssured.requestSpecification changing the parameters of that specification: a value added to a request, query or form parameter that it had several values for, such as given().spec(requestSpecification).queryParam("a", "3") when requestSpecification has queryParam("a", "1", "2"), was added to requestSpecification too, so later requests sent it as well

  • Fix then().spec(responseSpecification) and responseSpecification.validate(response) changing the response specification. then().spec(..) set the config and the log repository of the response on it, so the same specification validating responses from many threads could log, when validation failed, the request and response of another thread, and a later given(requestSpecification, responseSpecification) validated with the config of that earlier response. Validating now works on a copy, so one response specification can validate responses from many threads (issue #945)

  • Non-backward compatible change: REST Assured now checks that rest-assured-common, json-path-gpath and xml-path-gpath have the same major and minor version as rest-assured, and fails with a message that names both versions and suggests importing io.rest-assured:rest-assured-bom. Before, only a rest-assured-common older than rest-assured was caught, and a mismatched json-path or xml-path failed later with an error such as NoClassDefFoundError, or not at all. A different patch version only logs a warning

  • Non-backward compatible change: a JSON path that starts with "$." or "$[", as in Jayway JsonPath, now starts at the root, like "$" alone, in body(..) expectations, path(..), extract().path(..) and JsonPath. For example, "$.store.book[0].title" is the same as "store.book[0].title", and "$['store']['bicycle']" is the same as "store.bicycle". Before, such a path gave null on an object and spread over the elements of an array. A path that starts with a quoted subscript, such as "['store']", now also works instead of failing with "Invalid JSON expression". "$schema" and other keys that start with "$" are unchanged, and "$.." is still not supported

  • Non-backward compatible change: json-path and xml-path are renamed json-path-gpath and xml-path-gpath, with the same packages and classes. io.rest-assured:json-path and io.rest-assured:xml-path 7.x are relocation poms that resolve to json-path-gpath and xml-path-gpath at the same version, so a build that uses the old names keeps working (Maven prints a warning). They are removed in REST Assured 8.0.0. A json-path or xml-path jar of an earlier version on the classpath, for example one that the Spring Boot 3 dependency management pins, now fails with a message that tells you to replace it with json-path-gpath or xml-path-gpath, or to set the rest-assured.version property if you use Spring Boot 3, since its classes would clash with those of the renamed module

  • Deserializing an XML body to a generic type, such as as(new TypeRef<List>() {}), with the JAXB or Jakarta EE object mapper now fails with an IllegalArgumentException that says JAXB can only deserialize to a class, instead of Groovy's MissingMethodException

  • Non-backward compatible change: when a Map or Collection request body is written as JSON as it is, which happens when the ObjectMapper given to body(object, mapper) returns one, its values that aren't strings, numbers, booleans, dates, calendars, UUIDs, URLs, enums, maps, collections, iterators or arrays are now written by the configured object mapper, such as Jackson or Gson, instead of as an object of their bean properties. This covers beans, records, java.time values, Locale and File. A NaN or infinite number now fails with an IllegalArgumentException instead of Groovy's JsonException. The other values are written as before

  • Non-backward compatible change: a URI value in such a Map or Collection JSON request body is now written as a string, like a URL, instead of as an object of its bean properties ({"absolute":true,"authority":..})

  • Non-backward compatible change: an Optional value in such a Map or Collection JSON request body is now written as its value, or as null when it's empty, instead of as {"empty":false,"present":true}

  • Fix pretty printing (in logging, prettyPrint() and prettyPeek()) of a JSON string with an escaped backslash followed by u, such as "\u00e5", which was printed as "\å" or, as with "\uZZZZ", left the whole body unformatted. It's now printed as it is in the body

  • Fix form authentication on login pages that have several text or password inputs, which sent the user name or password under a field named like "[user, other]". The first text input and the first password input of the page are now used. Likewise, when several inputs have the name of an additional field from FormAuthConfig, the value of the first one is sent instead of a value like "[v1, v2]". A login page without a text or password input now fails with "Failed to parse login page. Check for errors on the login page or specify FormAuthConfig." instead of sending a field named "[]"

  • Form authentication now finds the user name and password inputs of a login page whatever the case of their type, such as type="TEXT" or type="Password", which it didn't before

  • Non-backward compatible change: Jackson 1 (org.codehaus.jackson) support is removed. ObjectMapperType.JACKSON_1, JsonParserType.JACKSON_1, Jackson1ObjectMapperFactory, DefaultJackson1ObjectMapperFactory, ObjectMapperConfig.jackson1ObjectMapperFactory(..), JsonPathConfig.jackson1ObjectMapperFactory(..), JsonPathConfig.hasCustomJackson10ObjectMapperFactory(), JsonPath.using(Jackson1ObjectMapperFactory) and ObjectMapperResolver.isJackson1InClassPath() are gone, and Jackson 1 on the classpath is no longer used for object mapping. Use Jackson 2 or 3 instead

... (truncated)

Commits
  • 88d902d [maven-release-plugin] prepare release rest-assured-7.0.0
  • 4380593 [ci skip] Preparing changelog for release
  • b141616 Remove update_wiki.sh now that the docs live on rest-assured.io (#2088)
  • 37631d4 Point the docs links at rest-assured.io (#2087)
  • 4b7bedb Let the JDK client accept a Host header that it would send anyway (#2086)
  • 015ea1f [ci skip] Added modules link in docs
  • 7e84cce [ci skip] Added modules section
  • 495ebb4 [ci skip] Updated README after 7.0.0-RC1 release
  • b09dc07 [maven-release-plugin] prepare for next development iteration
  • 71c0ee8 [maven-release-plugin] prepare release rest-assured-7.0.0-RC1
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [io.rest-assured:rest-assured](https://github.com/rest-assured/rest-assured) from 6.2.0 to 7.0.0.
- [Changelog](https://github.com/rest-assured/rest-assured/blob/master/changelog.txt)
- [Commits](rest-assured/rest-assured@rest-assured-6.2.0...rest-assured-7.0.0)

---
updated-dependencies:
- dependency-name: io.rest-assured:rest-assured
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants