spring-cloud / spring-cloud/spring-cloud-commons

IdUtils using deprecated configuration property spring.cloud.client.hostname

Open
#1,128 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
Dominant language
Java
Stars
751
Forks
744
Avg merge
1d 14h
Merged PRs (30d)
9

Description

In https://github.com/spring-cloud/spring-cloud-commons/blob/main/spring-cloud-commons/src/main/java/org/springframework/cloud/commons/util/IdUtils.java#L52 the property spring.cloud.client.hostname is used.

The configuration prefix sping.cloud.client seems to not exist anymore.

I would have expected the property to be eureka.instance.hostname.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in spring-cloud-commons/src/main/java/org/springframework/cloud/commons/util/IdUtils.java at the referenced line and inspect how the hostname property is read. Verify which configuration property is supported now and confirm that the resulting identifier behavior uses the intended hostname source.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.