You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Work Around HtmlUnitRequestBuilder setting ServletRequest.serverPort = -1
See the following issues:
- spring-projects/spring-framework#35709
- spring-projects/spring-boot#47857
Without this workaround we get the following error:
```
org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter$OAuth2AuthorizationRequestException: Bad authority
at org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter.doFilterInternal(OAuth2AuthorizationRequestRedirectFilter.java:190) ~[spring-security-oauth2-client-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
Caused by: org.springframework.web.util.InvalidUrlException: Bad authority
at org.springframework.web.util.RfcUriParser.fail(RfcUriParser.java:65) ~[spring-web-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
at org.springframework.web.util.RfcUriParser.verify(RfcUriParser.java:53) ~[spring-web-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
at org.springframework.web.util.RfcUriParser$InternalParser.captureHost(RfcUriParser.java:530) ~[spring-web-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
at org.springframework.web.util.RfcUriParser$State$4.handleNext(RfcUriParser.java:199) ~[spring-web-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
at org.springframework.web.util.RfcUriParser$InternalParser.parse(RfcUriParser.java:465) ~[spring-web-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
at org.springframework.web.util.RfcUriParser.parse(RfcUriParser.java:47) ~[spring-web-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
at org.springframework.web.util.UriComponentsBuilder.fromUriString(UriComponentsBuilder.java:208) ~[spring-web-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
at org.springframework.web.util.UriComponentsBuilder.fromUriString(UriComponentsBuilder.java:180) ~[spring-web-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
at org.springframework.security.oauth2.client.web.DefaultOAuth2AuthorizationRequestResolver.expandRedirectUri(DefaultOAuth2AuthorizationRequestResolver.java:244) ~[spring-security-oauth2-client-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
... 160 common frames omitted
```
0 commit comments