Comments (4)
Please disregard the integration test results I mentioned. It was always passing because of that special @WithMockUser. If I remove it and send an authorization header, it fails on the /test/single
endpoint same as curl.
Attaching runnable code to show the issue
RxBridgeBug.zip
from reactor-addons.
Not sure if this is related, but when I was tracing through the code, I found this method in ReactiveAdapterRegistry.
Seems if reactor is present, then the reactiveadapter is never added. Not sure if that is affecting me.
I assumed it's permitted to have both RxJava and Reactor in the same project otherwise there wouldn't exist a RxJava3Adapter
from reactor-addons.
I traced through the code and one thing I noticed is that the Reactor Context seems to be used. In the Mono
case, it holds a SecurityContext
which provides the Authenticated Principal
. In the Single
case, the Reactor Context is empty.
I suspect the bridge is not copying the Reactor Context's state because RxJava has no concept of a Context.
from reactor-addons.
Yes, unfortunately RxJava has no concept of a Context
, so introducing an RxJava subchain breaks the access to Context
ual data, which includes SecurityContext
... One way around that is to explicitly wrap RxJava publishers in a Reactor flatMap
or deferContextual
Flux/Mono.
from reactor-addons.
Related Issues (20)
- Switch to Github Actions for CI
- Publish to artifactory using GHA
- Guava's ListenableFuture to Mono/Flux adapter HOT 2
- reactor.retry.Retry is incompatible with the reactor-core reactor.util.retry HOT 1
- pom is empty since split of publications for the gha release HOT 4
- MathFlux sumBigDecimal looses scale of BigDecimal HOT 3
- 3.6.0 deprecated removal: CacheFlux and CacheMono
- Removing deprecated processors
- Move reactor.swing.SwtScheduler.java to reactor.swt.SwtScheduler.java HOT 2
- Deprecating reactor-extra's Swing/SwtScheduler (removal in 3.6.0) HOT 2
- Remove kotlin extensions (deprecated since 3.3.0)
- Deprecating Retry (removal in 3.6.0)
- 3.6.0 deprecated removal: Retry
- 3.6.0 deprecated removal: misc (swing/swt, ...)
- RxJava 3.1.x support HOT 8
- Make operators derived from MonoSubscriber either implement QueueSubscription or stop being Fuseable
- RxJava3Adapter.singleToMono() doesn't cascade dispose() calls up the chain to the RxJava disposable
- Suggest reactor version of semaphore implementation HOT 4
- Deprecate Repeat functionality HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactor-addons.