spring-cloud / spring-cloud/spring-cloud-commons
IdUtils using deprecated configuration property spring.cloud.client.hostname
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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