Closed jsanhc closed 3 years ago
Greenwich.SR1
to Greenwich.SR6
in openbanking-parent this latest spring cloud version have the dependency version 2.1.5
of gateway-core with the fix to set the max header size
as a httpClient property for responses.max-header-size
property in the application.yml file in reference-implementation/openbanking-config
.
#Spring cloud config
spring:
...
cloud:
...
...
gateway:
httpclient:
max-header-size: 10000000 # The max response header size, Required for the large signed JWT headers
spring-cloud framework
to Greenwich.SR6
to fix max header size on the response (HttpClient)Implemented Solution
- Upgraded spring cloud version
Greenwich.SR1
toGreenwich.SR6
in openbanking-parent this latest spring cloud version have the dependency version2.1.5
of gateway-core with the fix to set themax header size
as a httpClient property for responses.- Added
max-header-size
property in the application.yml file inreference-implementation/openbanking-config
.#Spring cloud config spring: ... cloud: ... ... gateway: httpclient: max-header-size: 10000000 # The max response header size, Required for the large signed JWT headers
Check projects openbanking-parent pom integrity after upgrade
spring-cloud framework
toGreenwich.SR6
to fix max header size on the response (HttpClient)
- [x] openbanking-parent
- [x] eidas-psd2-sdk
- [x] openbanking-clients
- [x] openbanking-jwkms
- [x] openbanking-auth
- [x] openbanking-tpp
- [x] openbanking-analytics
- [x] openbanking-common
- [x] openbanking-uk-datamodel
- [x] openbanking-directory
- [x] openbanking-aspsp
- [x] openbanking-reference-implementation
this solution is not working for us. We are using Spring Boot 2.7.2
Describe the bug
max header size
to 100kb required for the large signed JWT in the Spring Cloud Gateway (Netty based) app.We write the below component:
}
To Reproduce Steps to reproduce the behaviour:
PollAndAcknowledgeAggregatedPollingTest
against master.Expected behaviour No error.
Current behaviour Error.
Workaround
Code analysis
httpRequestDecoderSpec
and not for the responsehttpResponseDecoderSpec
and when thehttpObjectDecoder.HeaderParser#process
runs with the default value max header size8192 bytes
.Release Notes
Affected App: Gateway app.