Skip to content

511: GrizzlyAsyncHttpProvider not honoring usePreemtiveAuth #512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2014

Conversation

elakito
Copy link
Contributor

@elakito elakito commented Mar 26, 2014

consisting of a modified
providers/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/filters/AsyncHttpClientFilter.java

to make the preemptive auth mode working for grizzly.

a modified
api/src/test/java/org/asynchttpclient/async/BasicAuthTest.java

to correctly verify whether the auth header is actually sent in the initial message.

regards, aki

@slandelle
Copy link
Contributor

@elakito I just have one question: does this new test pass with the Netty provider too?

@elakito
Copy link
Contributor Author

elakito commented Mar 26, 2014

@slandelle,
yes.
netty was working fine (doing this preemptive thing correctly).
regadrs, aki

@elakito
Copy link
Contributor Author

elakito commented Mar 26, 2014

Hi Stephane,
yes

and I wanted to ask you how do you want have the fix in 1.8.x.

Shall I create another PR for it or can you cherry-pick/merge the fix
directly in your repo?

@slandelle
Copy link
Contributor

No pro, I'll backport manually (I fear code base has changed too much for cherry-picking to work).

slandelle pushed a commit that referenced this pull request Mar 26, 2014
511: GrizzlyAsyncHttpProvider not honoring usePreemtiveAuth
@slandelle slandelle merged commit c7b4d6c into AsyncHttpClient:master Mar 26, 2014
@elakito
Copy link
Contributor Author

elakito commented Mar 26, 2014

thanks.

@slandelle
Copy link
Contributor

@elakito I tried to backport a bit blindly but the test fails. Could you issue a new PR for the 1.8.x branch please?

@elakito
Copy link
Contributor Author

elakito commented Mar 26, 2014

@slandelle
okay. no problem. I'll send you one.
regards, aki

@slandelle slandelle added this to the 1.8.5 milestone Mar 30, 2014
@slandelle slandelle self-assigned this Mar 30, 2014
cs-workco pushed a commit to cs-workco/async-http-client that referenced this pull request Apr 13, 2023
### Motivation

To land support for async/await, we need test utilities. We already have a `MockRequestExecutor`. Let's improve this to better handle on and off `EventLoop` request processing.

### Changes

- Move `MockRequestExecutor` into its own file
- Add blocking APIs to `MockRequestExecutor` when called from another thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants