Skip to content

Client registration doesn't work when Spring Boot configured to use snake case #4164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
obourgain opened this issue Mar 31, 2025 · 0 comments
Labels

Comments

@obourgain
Copy link

obourgain commented Mar 31, 2025

Spring Boot Admin Server information

  • Version:
    Spring Boot Admin server & client 3.4.5

  • Spring Boot version:
    Spring Boot 3.4

  • Configured Security:
    basic auth, but not relevant to this issue

  • Webflux or Servlet application:
    servlet, but not relevant to this issue

Client information

  • Spring Boot versions:
    Spring Boot 3.4

  • Used discovery mechanism:
    self registration

  • Webflux or Servlet application:
    servlet, but not relevant to this issue

Description

When the client app uses the property spring.jackson.property-naming-strategy: SNAKE_CASE, then the registration client will write the body for the registration request using snake case.
This can't be deserialized properly by RegistrationDeserializer as it supports only camel case.

I would expect Spring Boot Admin to not rely on the generic MessageConverters facility from Spring but instead configure explicitly the ObjectMapper.

## Reproducer

You can easily reproduce this issue with the test ClientServletApplicationTest by adding "--spring.jackson.property-naming-strategy=SNAKE_CASE" to the application.run(...)

@obourgain obourgain changed the title Client lob doesn't work when Spring Boot configured to use snake case Client registration doesn't work when Spring Boot configured to use snake case Mar 31, 2025
riky2124 added a commit to riky2124/spring-boot-admin that referenced this issue Apr 21, 2025
hzpz pushed a commit to riky2124/spring-boot-admin that referenced this issue Apr 25, 2025
hzpz pushed a commit to riky2124/spring-boot-admin that referenced this issue Apr 25, 2025
hzpz pushed a commit to riky2124/spring-boot-admin that referenced this issue May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants