spring-projects / spring-projects/spring-data-rest

Circular references problem when using RestTemplateBuilder on custom WebMvcConfigurer

Open
#2,193 7 comments 7 reactions 1 assignee View on GitHub

@odrotbohm is already working on this.

Since Oct 24, 2022.

status: waiting-for-triage
Dominant language
Java
Stars
958
Forks
568
PR merge metrics
No merged PRs in 30d

Description

Hi,

We encounter a circular references problem when using spring-boot-starter-data-rest with Azure AAD Starter spring-cloud-azure-starter-active-directory, refer https://github.com/Azure/azure-sdk-for-java/issues/31497.

The problem will be resolved when change spring-boot-starter-data-rest to spring-boot-starter-web.

I investigate it and find that the mvcConversionService bean used in RepositoryRestMvcConfiguration cause the problem, more details could see https://github.com/Azure/azure-sdk-for-java/issues/31497#issuecomment-1288458597.

The azure issue mentioned before describe how to reproduce the problem. If you think Azure AAD Starter is complex, I created a easily sample to reproduce it.

Are there any workarounds for this or any plans to fix it? thanks!

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.