Open pawjanssen opened 3 years ago
/cc @jmartisk, @phillip-kruger
@stuartwdouglas looks like the exact same issue we had with the Dev UI, right?
Shouldn't we have a way to only install a BodyHandler
on a specific route? It looks a bit weird to have it break everything.
I think it's also related to #14035 and #11076
I am not sure how to fix this. @stuartwdouglas can you help please ?
https://github.com/quarkusio/quarkus/pull/14462 sorta fixes this, however it does not fix the general case (i.e. that some things don't work with RequireBodyHandlerBuildItem).
Should we get rid of RequireBodyHandlerBuildItem
if it can break things globally? Or is there a good reason to use it for some use cases?
We should, but the Keycloak policy enforcer will need to adopt a different approach to a fully buffered request.
The issue is that for form/multipart requests the body handler does not provide the request as a buffer, but as fully parsed data, and there is no way to disable this (if you turn it off it just drops the request instead of buffering it).
When adding quarkus-smallrye-graphql, the form based login mechanism stops working. When POSTing to /j_security_check without the graphql dependency, everything works fine, and I can access my secured resource. When adding the graphql dependency, the POST to /j_security_check the request fails with the exception below. The only differency is the added dependency in the POM.
Repo with minimal example to reproduce the issue: https://github.com/pawjanssen/graphql-form-issue