Skip to content

Spring Cloud Config returns an empty string instead of an empty array #2746

Open

Description

@IvanKodak

Describe the bug
After upgrading to the latest version of Spring Cloud Config, I encountered an issue where the cloud-config service returns an empty string ("") instead of an empty array ([]).

<spring-cloud.version>2024.0.0</spring-cloud.version>

Sample
Example:

config.yaml

network:
  urls: []

I expect to receive the following object:

{
  "network":{
    "urls":[]
  }
}

However, I receive this instead:

{
  "network":{
    "urls":""
  }
}

I noticed a similar issue in the past, which might be related to this problem as well.
#1572

Could you please investigate the cause of this issue as soon as possible?
Thanks in advance!

Activity

  1. DmytroShalaiev commented on Feb 13, 2025

    @DmytroShalaiev
  2. DmytroShalaiev commented on Feb 20, 2025

    @DmytroShalaiev
  3. vijaysingh0507 commented on Aug 4, 2025

    @vijaysingh0507
  4. spencergibb commented on Aug 4, 2025

    @spencergibb
  5. rahja commented on Jan 20, 2026

    @rahja

    Are there any suggested workarounds?

  6. kumarsen26 commented on Jun 3, 2026

    @kumarsen26

    Do we know when this will be fixed?

  7. stanislavbebej-ext43345 commented on Oct 14, 2026

    @stanislavbebej-ext43345

    7. Are there any suggested workarounds?

    Hi, this patch for Spring Boot v4.1.1 works for me: https://github.com/stanislavbebej-ext43345/spring-cloud-config-server-native/blob/main/workaround/issue-2746/v4.1.1.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions