Skip to content
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

UNDERTOW-1881 - Add a new exchange attribute for SSL/TLS protocol version #1707

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jasondlee
Copy link
Contributor

https://issues.redhat.com/browse/UNDERTOW-1881

Add and register new ExchangeAttribute implementation

@baranowb
Copy link
Contributor

Shouldnt this be aiming towards main?

@jasondlee
Copy link
Contributor Author

Shouldnt this be aiming towards main?

Perhaps. I couldn't remember where they're supposed to go, but I think you're right. We target main, and @fl4via backports as needed? I'll update the target...

@jasondlee jasondlee marked this pull request as ready for review November 25, 2024 16:54
@jasondlee jasondlee changed the base branch from 2.3.x to main November 25, 2024 16:54
@jasondlee jasondlee changed the base branch from main to 2.3.x November 25, 2024 16:58
@jasondlee jasondlee changed the base branch from 2.3.x to main November 25, 2024 16:59
@baranowb baranowb added under verification Currently being verified (running tests, reviewing) before posting a review to contributor new feature/API change New feature to be introduced or a change to the API (non suitable to minor releases) waiting peer review PRs that edit core classes might require an extra review labels Nov 26, 2024
@baranowb baranowb self-requested a review November 27, 2024 07:07
Copy link
Contributor

@baranowb baranowb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasondlee jasondlee requested a review from baranowb December 3, 2024 22:56
@jasondlee jasondlee force-pushed the UNDERTOW-1881 branch 3 times, most recently from 0e9b731 to 9ce8420 Compare December 3, 2024 23:53
…ersion

Add and register new ExchangeAttribute implementation
Add support for AJP and TLS
Add test case
@@ -234,7 +234,7 @@ public void run() {
* <p>
* DO NOT USE THIS OUTSIDE OF A TEST
*/
void awaitWrittenForTest() throws InterruptedException {
protected void awaitWrittenForTest() throws InterruptedException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im not keen on this. Maybe just ping pong request and set special header to attribute value?
https://github.com/undertow-io/undertow/blob/main/core/src/test/java/io/undertow/server/handlers/SetAttributeTestCase.java

String sslProtocol = null;
String transportProtocol = exchange.getConnection().getTransportProtocol();
if ("ajp".equals(transportProtocol)) {
// TODO: wrong
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the correct way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature/API change New feature to be introduced or a change to the API (non suitable to minor releases) under verification Currently being verified (running tests, reviewing) before posting a review to contributor waiting peer review PRs that edit core classes might require an extra review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants