Closed robbie01 closed 1 day ago
@robbie01 thanks for the PR. Can you please also modify the SessionHandlerTest
so it reveals the problem (and tests that it's solved).
@janbartel Added a test case and squashed. Looks like it catches; it fails for request
and succeeds for sessionRequest
. Please let me know if anything else isn't up to the project's standards.
@robbie01 this is looking good, thank you! It has even revealed a problem with the core OpenId
stuff - whether that's a test setup issue or an implementation issue I'm not sure yet, but I've raised #12307. I think we might need to fix that first before we can commit your fix, otherwise we'll break the build. Stand by.
@robbie01 actually I discovered the problem was deeper than the OpenId
stuff - there was a bug in core security SessionAuthentication
: see #12309 and my fix in #12310. When I get that applied to jetty-12.0.x, can you rebase your PR please.
@janbartel Absolutely, I'll have that taken care of once it's ready.
@robbie01 ok, you're good to do a rebase now.
@janbartel Done, thanks!
This fixes
flushOnResponseCommit
logic, which is currently broken due toSessionHandler.getManagedSession
returningnull
. With this,getManagedSession
will return theSessionRequest
.