Skip to content

Consider catching WebClientException in HaveIBeenPwndApiReactivePasswordChecker #19142

@jzheaux

Description

@jzheaux

HaveIBeenPwnedRestApiPasswordChecker (blocking) catches RestClientException on failure, which covers both HTTP error responses and lower-level I/O errors such as connection timeouts and DNS failures.

The reactive counterpart, HaveIBeenPwnedRestApiReactivePasswordChecker, uses onErrorResume(WebClientResponseException.class, ...). WebClientResponseException only covers HTTP error responses (4xx/5xx).

The semantic equivalent of RestClientException in the reactive stack is WebClientException. It seems more reasonable for the reactive one to use onErrorResume(WebClientException.class, ...) to align with the blocking implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webAn issue in web modules (web, webmvc)type: enhancementA general enhancement

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions