Skip to content

Http Service Client no longer sends configured api version #49701

@yanivnahoum

Description

@yanivnahoum

Given an http service client and a group configuration in the application.yml that includes an API Version, the version is no longer sent by the client after upgrading to Spring Boot 4.0.4. The previous version works as expected.

spring:
  http:
    clients:
      connect-timeout: 3s
      read-timeout: 10s
      redirects: dont-follow
      imperative:
        factory: http-components
    serviceclient:
      todo:
        base-url: http://todo/api
        apiversion:
          default: 1.0
          insert:
            header: X-Version

A minimal example reproducing the issue can be found here (branch http-service-client-4.0.4) :
The test succeeds with Spring Boot 4.0.3, but fails with 4.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions