-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
Henning Vogt opened SPR-16842 and commented
Hi,
If two-way-ssl is on "want" mode (as opposed to the stricter "need"), and client does not deliver a certificate, getSslInfo() does not work, since init method fails:
java.lang.IllegalArgumentException: No SSL certificates
at org.springframework.util.Assert.notNull(Assert.java:193)
at org.springframework.http.server.reactive.DefaultSslInfo.<init>(DefaultSslInfo.java:44)
at org.springframework.http.server.reactive.ServletServerHttpRequest.initSslInfo(ServletServerHttpRequest.java:190)
at org.springframework.http.server.reactive.AbstractServerHttpRequest.getSslInfo(AbstractServerHttpRequest.java:162)...but according to the description, it's supposed to work:
/**
* Return the SSL session information if the request has been transmitted
* over a secure protocol including SSL certificates, if available.
* @return the session information, or \{@code null} if none available
* @since 5.0.2 */
@Nullable default SslInfo getSslInfo() \{ return null; }
Affects: 5.0.5
Issue Links:
- With two-way-ssl exchange.getRequest().getSslInfo() always null [SPR-16507] #21050 With two-way-ssl exchange.getRequest().getSslInfo() always null
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug