Skip to content
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

Initialize useUserAccessToken to false. #6072

Closed
wants to merge 1 commit into from

Conversation

cppwfs
Copy link
Contributor

@cppwfs cppwfs commented Nov 14, 2024

With the effort to remove deprecated methods from TaskConfigurationProperties with this commit, we introduced a NPE when DefaultTaskExecutionService.handleAccessToken tried to use useUserAccessToken. The original code would use TaskServiceUtils to return a false if it was null.

This behavior was a shim to maintain backwards compatibility which is no longer needed.
So the solution is to set the default for this field to false.

With the effort to remove deprecated methods from TaskConfigurationProperties:
spring-cloud@b27f0c2
We introduced a NPE when DefaultTaskExecutionService.handleAccessToken tried to use useUserAccessToken.
The original code would use TaskServiceUtils to return a false if it was null.

Add Tests

Signed-off-by: Glenn Renfro <[email protected]>
@cppwfs cppwfs added the type/bug Is a bug report label Nov 14, 2024
Copy link
Contributor

@onobc onobc left a comment

Choose a reason for hiding this comment

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

Nice work @cppwfs . I have 2 tiny nits that you can leave (or change - no biggie either way).

@cppwfs
Copy link
Contributor Author

cppwfs commented Nov 14, 2024

Implemented the requested changes.

Thanks @onobc for the review!!!

@cppwfs cppwfs closed this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Is a bug report
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants