-
Notifications
You must be signed in to change notification settings - Fork 1k
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
base: main
Are you sure you want to change the base?
Conversation
65a8037
to
34742ad
Compare
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... |
34742ad
to
a075265
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As is its fine, however given comment from @msfm : https://issues.redhat.com/browse/UNDERTOW-1881?focusedId=16067599&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16067599
Im not 100% sure this will work in all cases?
a075265
to
ce086de
Compare
9ce8420
to
f8e3988
Compare
@@ -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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you clarify what you mean here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this var used in any place
undertow/core/src/test/java/io/undertow/server/ssl/SecureProtocolAttributeTestCase.java
Line 51 in 065c6d0
LocalAccessLogReceiver logReceiver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above ^
String sslProtocol = null; | ||
String transportProtocol = exchange.getConnection().getTransportProtocol(); | ||
if ("ajp".equals(transportProtocol)) { | ||
// TODO: wrong |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats the correct way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH, I'm not sure. I left that there as a reminder after reading a comment from Masafumi, iirc. I'll ping him.
f8e3988
to
9948376
Compare
…ersion Add and register new ExchangeAttribute implementation Add support for AJP and TLS Add system property to help identify proxied tests Add test case
9948376
to
065c6d0
Compare
@@ -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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above ^
https://issues.redhat.com/browse/UNDERTOW-1881
Add and register new ExchangeAttribute implementation