Closed vvavepacket closed 3 weeks ago
/cc @sberyozkin
Also CC @stuartwdouglas @mkouba
RxJava3 not having context propagation support would be the cause of this. Why are you using RxJava3 and not Mutiny?
cc @cescoffier @FroMage
We could add support for RxJava3, should we?
@stuartwdouglas Our team skills is leaning towards ReactiveX so we figured out it makes sense to continue and build on that. I see that there was no support for RxJava3. Thanks for clearing it up.
We could add support for RxJava3, should we?
If we do this, then this would inevitably lead to supporting multiple RxJava versions and then Project Reactor. I'm -1 on spreading our efforts out like that.
I would rather not adding support for rxjava 3. It would provide a very different API and experience without any good integration with the rest of the Quarkus APIs. The integration can be achieved with the built-in converters of Mutiny (rxjava 3 converters were implemented last August).
Is this still an issue with the latest versions of Quarkus?
Closing for lack of feedback
Describe the bug
I'm currently using
io.quarkus:quarkus-security
and implemented ContainerRequestFilter as per this guide Custom JAX-RS SecurityContext. I have my REST classes annotated with @RolesAllowed on the class level but every time a request comes to one of the methods, I'm getting the below errorIt fails on my API method where I'm using RxJava constructs. It seems that when @RolesAllowed is class annotated, the context is not properly pass inside the chain RxJava constructs causing NPE.
The setup below doesn't work:
However below setup works when annotated in the method
Expected behavior Injected classes should be accessible
Actual behavior Injected classes are null
To Reproduce
It is related to a previous issue, only difference is I'm using RxJava3 and context is not pass during chaining operations. If more details is required I can create a mini reproducer project.
Steps to reproduce the behavior:
Environment (please complete the following information):
java -version
: Java 11mvnw --version
orgradlew --version
): Gradle 6.6Additional context I'm using RxJava3. It seems in one of the guides when using custom security authorization, we need to do context propagation. I tried adding smallrye-context-propagation-propagators-rxjava2 but it seems that there is no version that supports RxJava 3 yet (this could be the reason?)