Newly introduced `CsrfTokenInterceptor` is producing large amount of warning logs
@ricardosrib ci sta già lavorando.
Dal 14/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Describe the Bug
We are consuming the com.sap.cloud.sdk.sdk-bom dependency in our CAP Java microservices. We recently upgraded to version 5.34.0 (from 5.33.0) and started to observe a large amount of warning logs of type: “Target system did not respond with a x-csrf-token header. The subsequent request may fail if a CSRF token is required.” Those seem to originate from the newly introduced CsrfTokenInterceptor.
Unfortunately, we could not find any additional information regarding this change in the release notes or similar. Apart from this, we have some concerns that this results in a big number of requests that are now emitted from this class to the request source to obtain the csrf header.
Best regards,
Felix Starke
Steps to Reproduce
As we are working on an SAP internal project, kindly reach out for further information or discussions.
Expected Behavior
Can you please clarify the need of having this Interceptor and this being an actual warning log. Furthermore, kindly clarify that the amount of HEAD-requests triggered by this is necessary.
Screenshots
No response
Used Versions
- Java and Maven version via
mvn --version: ... - SAP Cloud SDK version: 5.34.0
- Spring Boot or CAP version: Spring Boot 3.5.17 with CDS Services 4.9.4
Code Examples
No response
Stack Trace
No response
Log File
No response
Affected Development Phase
Production
Impact
Impaired
Timeline
No response
- Lingua principale
- Java
- Stelle
- 41
- Fork
- 33
- Merge medio
- 18h 34m
- PR unite (30g)
- 19
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SAP/cloud-sdk-java
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
SAP/cloud-sdk-java#1280 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
SAP/cloud-sdk-java#1268 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
SAP/cloud-sdk-java#1250 ·
-
ZeroTrustIdentityService does not configure svidPicker, causing non-deterministic SVID selection Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
SAP/cloud-sdk-java#1243 · 2 commenti ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
SAP/cloud-sdk-java#1226 · 1 commento ·
Tutte le issue di SAP/cloud-sdk-java
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
elastic/gradle-plugins#157 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
cryptomator/hub#497 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
johanhaleby/occurrent#1120 ·