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
{{ message }}
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
To what extent do we need to defend against a user who backdoors past the "read only" CompletionStage with cs.toCompletableFuture().complete(t) (or the more sinister cs.toCompletableFuture.obtrudeValue) ?
For example, AsyncFunnel gives out the same CompletableFuture to many distinct users. Not sure if there are any other APIs where this matters.
In JDK9 they added CompletableFuture.copy()/CompletableFuture.minimalStage presumably because they realized this is a problem. Should we defensively copy any CompletableFuture we hand out that could be reused? Seems pretty costly to defend against something that no sane user would actually do.
Porting issue 37 from the enterprise repo
rkhadiwa commented on Nov 29, 2017
To what extent do we need to defend against a user who backdoors past the "read only"
CompletionStagewithcs.toCompletableFuture().complete(t)(or the more sinistercs.toCompletableFuture.obtrudeValue) ?For example,
AsyncFunnelgives out the sameCompletableFutureto many distinct users. Not sure if there are any other APIs where this matters.In JDK9 they added
CompletableFuture.copy()/CompletableFuture.minimalStagepresumably because they realized this is a problem. Should we defensively copy anyCompletableFuturewe hand out that could be reused? Seems pretty costly to defend against something that no sane user would actually do.See http://cs.oswego.edu/pipermail/concurrency-interest/2016-July/015299.html