swisscom / open-service-broker

Open Service Broker is an implementation of the "Open Service Broker API" based on Spring Boot & Groovy. It enables platforms such as Cloud Foundry & Kubernetes to provision and manage services.
Apache License 2.0
70 stars 25 forks source link

bug: RestTemplateBuilder With Auth Thread Unsafe #369

Closed ampersand8 closed 3 years ago

ampersand8 commented 3 years ago

Using RestTemplateBuilder withBearerAuthentication or withBasicAuthentication can lead to ConcurrentModificationException due to the modification of the interceptors. Using @Synchronized resolves this issue.