-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug
Milestone
Description
Describe the bug
Call UUID#randomUUID()
in CookieServerCsrfTokenRepository#createNewToken()
and UUID#randomUUID()
is blocking I/O operation (reports #8128).
However, CookieServerCsrfTokenRepository#generateToken(ServerWebExchange)
is not change Scheduler.
Lines 68 to 71 in 57c5ec2
@Override | |
public Mono<CsrfToken> generateToken(ServerWebExchange exchange) { | |
return Mono.fromCallable(this::createCsrfToken); | |
} |
Lines 148 to 150 in 57c5ec2
private CsrfToken createCsrfToken() { | |
return createCsrfToken(createNewToken()); | |
} |
Lines 156 to 158 in 57c5ec2
private String createNewToken() { | |
return UUID.randomUUID().toString(); | |
} |
To Reproduce
CookieServerCsrfTokenRepository#generateToken(ServerWebExchange)
Expected behavior
Use Schedulers.boundedElastic()
.
Sample
N/A
Is it the design of not using the Schedulers.boundedElastic()
?
Metadata
Metadata
Assignees
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug