Skip to content

ServerHttpSecurityConfiguration should not set userDetailsPasswordService to a null value#18276

Merged
jzheaux merged 1 commit intospring-projects:7.0.xfrom
sephiroth-j:gh-17986
Mar 9, 2026
Merged

ServerHttpSecurityConfiguration should not set userDetailsPasswordService to a null value#18276
jzheaux merged 1 commit intospring-projects:7.0.xfrom
sephiroth-j:gh-17986

Conversation

@sephiroth-j
Copy link
Copy Markdown
Contributor

... when using ReactiveUserDetailsService without ReactiveUserDetailsPasswordService.

The existing test uses a MapReactiveUserDetailsService that implements ReactiveUserDetailsPasswordService, which does not trigger the error.

fixes gh-17986

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 8, 2025
Copy link
Copy Markdown
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, @sephiroth-j!

It appears this was introduced by 7c887d2 in 7.0. As such, if you are able, can you please also rebase this PR to 7.0.x? If that gets tricky, no worries, I can jump in and help.

@jzheaux jzheaux self-assigned this Mar 4, 2026
@jzheaux jzheaux added in: config An issue in spring-security-config type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 4, 2026
@jzheaux jzheaux added this to the 7.0.x milestone Mar 4, 2026
@jzheaux jzheaux added the status: waiting-for-feedback We need additional information before we can continue label Mar 4, 2026
@jzheaux jzheaux changed the title Fix "userDetailsPasswordService cannot be null" error ServerHttpSecurityConfiguration should not set userDetailsPasswordService to a null value Mar 4, 2026
This use case specifically arises when using `ReactiveUserDetailsService`
without `ReactiveUserDetailsPasswordService`.

Closes spring-projectsgh-17986

Signed-off-by: Ronny Perinke <23166289+sephiroth-j@users.noreply.github.com>
@jzheaux jzheaux changed the base branch from main to 7.0.x March 4, 2026 23:16
@jzheaux jzheaux modified the milestones: 7.0.x, 7.0.4 Mar 4, 2026
@jzheaux jzheaux removed the status: waiting-for-feedback We need additional information before we can continue label Mar 4, 2026
@sephiroth-j
Copy link
Copy Markdown
Contributor Author

Hello @jzheaux, I noticed that you have already rebased the branch. Is there anything else that needs to be done/changed?

@jzheaux jzheaux merged commit e8e0da1 into spring-projects:7.0.x Mar 9, 2026
7 checks passed
@jzheaux
Copy link
Copy Markdown
Contributor

jzheaux commented Mar 9, 2026

Hi, @sephiroth-j, no nothing more is needed, thanks for checking. This is now merged into 7.0.x and main.

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

Labels

in: config An issue in spring-security-config type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

userDetailsPasswordService cannot be null error when using ReactiveUserDetailsService

4 participants