Skip to content

Issue 31482 rest template used to get access token should only contains 2 converters#31489

Merged
chenrujun merged 12 commits into
Azure:mainfrom
chenrujun:issue-31482-RestTemplate-used-to-get-access-token-should-only-contains-2-converters
Oct 17, 2022
Merged

Issue 31482 rest template used to get access token should only contains 2 converters#31489
chenrujun merged 12 commits into
Azure:mainfrom
chenrujun:issue-31482-RestTemplate-used-to-get-access-token-should-only-contains-2-converters

Conversation

@chenrujun

@chenrujun chenrujun commented Oct 14, 2022

Copy link
Copy Markdown

@ghost ghost added the azure-spring All azure-spring related issues label Oct 14, 2022
@chenrujun chenrujun self-assigned this Oct 14, 2022
@chenrujun chenrujun added bug This issue requires a change to an existing behavior in the product in order to be resolved. Client This issue points to a problem in the data-plane of the library. azure-spring-aad Spring active directory related issues. labels Oct 14, 2022
@chenrujun chenrujun added this to the 2022-11 milestone Oct 14, 2022
@azure-sdk

Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

@chenrujun

Copy link
Copy Markdown
Author

Hi, @saragluna , @moarychan , please help to review this PR when you have time.


private static boolean notContainsElementOfType(List<?> list, Class<?> clazz) {
return list.stream().noneMatch(item -> item.getClass().equals(clazz));
builder = builder.messageConverters(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we set the message converters and error handler based on the rest template instance, not the rest template builder?

@chenrujun chenrujun Oct 17, 2022

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the same. The build.xxx will create a new builder instance instead of modifying current instance. See this: #31213 (comment)

@moarychan moarychan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@chenrujun
chenrujun merged commit f7b8d3c into Azure:main Oct 17, 2022
@chenrujun
chenrujun deleted the issue-31482-RestTemplate-used-to-get-access-token-should-only-contains-2-converters branch October 17, 2022 06:51
@kishor-p

Copy link
Copy Markdown

Hi,
When will this fix be pushed to maven repo? what would be the version?

@chenrujun

Copy link
Copy Markdown
Author

@kishor-p

The target version is 4.4.1, and planned to be released before 2022-11-1

@kishor-p

Copy link
Copy Markdown

@kishor-p

The target version is 4.4.1, and planned to be released before 2022-11-1

Thanks very much for the response

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

Labels

azure-spring All azure-spring related issues azure-spring-aad Spring active directory related issues. bug This issue requires a change to an existing behavior in the product in order to be resolved. Client This issue points to a problem in the data-plane of the library.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] RestTemplate used to get access token should only contain 2 converters

5 participants