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
8211227: Inconsistent TLS protocol version in debug output #2331
Conversation
|
Webrevs
|
@evwhelan This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 296 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@XueleiFan, @rhalade) but any other Committer may sponsor as well.
|
|
||
/* | ||
* This test runs in another process so we can monitor the debug | ||
* results. The OutputAnalyzer must see correct debug output to return a |
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.
* results. The OutputAnalyzer must see correct debug output to return a | |
* results. The OutputAnalyzer must see correct debug output to return a |
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.
Blank space removed
private void simpleSSLConnectionTest() throws Exception { | ||
// Re-enabling as test depends on these algorithms | ||
SecurityUtils.removeFromDisabledTlsAlgs("TLSv1", "TLSv1.1"); | ||
var url = new URL("https://jpg-data.us.oracle.com/"); |
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.
This URL is not accessible outside.
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.
Thanks Rajan,
I'm going to change my approach for this test, I will set up a dummy server on localhost and create my URL based off that, rather than URLs pointing to an existing site
|
||
public class LoggingFormatConsistency { | ||
public static void main(String[] args) throws Exception { | ||
if (args.length == 0){ |
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.
Please add a comment to explain when the test should be run with parameter.
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.
Done! Thanks
…ther than an existing URL
* | ||
* Fork off the other side, then do your work. | ||
*/ | ||
LoggingFormatConsistency() throws Exception { |
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.
Have you looked at the templates available at test/jdk/javax/net/ssl/templates? Check SSLSocketTemplate.java which is using CountDownLatch.
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.
I have not! I'll take a look, thanks
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.
Thanks for developing test for this change and updating it to use template.
Thanks Rajan, I appreciate the guidance. |
/integrate |
/sponsor |
@rhalade @evwhelan Since your change was applied there have been 296 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit a867288. |
Hi everyone,
Please review my fix for JDK-8211227
This supportability fix will result in a more consistent debug format when reading and writing TLS protocol versions.
Thanks,
Evan
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/2331/head:pull/2331
$ git checkout pull/2331