Fix invalid consoleproxy url after upgrade - #2734
Conversation
| // Domain in format *.example.com | ||
| if (consoleProxyUrlDomain.startsWith("*")) { | ||
| sb.append(proxyIpAddress); | ||
| for (int i = 0; i < proxyIpAddress.length(); i++) |
There was a problem hiding this comment.
You can replace this block with a "replaceAll" method, right?
| proxyAddress = sb.toString(); | ||
| proxyPort = port; | ||
| this.proxyUrlPort = proxyUrlPort; | ||
| StringBuffer sb = new StringBuffer(); |
There was a problem hiding this comment.
Would you mind extracting this block that creates the "proxyAddress" to a method? Then, we could have unit tests and documentation for it.
|
@resmo can you rebase the PR against 4.11 and change the base branch to 4.11? |
|
@rhtyd done (force pushed again, to trigger build) |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2169 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2841)
|
|
Regression test LGTM, I did not test it manually though. @borisstoyanov if you've time next week, can you test and advise? Thanks. |
| } | ||
| } | ||
|
|
||
| private String formatProxyAddress(String consoleProxyUrlDomain, String proxyIpAddress) { |
There was a problem hiding this comment.
@resmo you already did a lot! I would like to see a documentation (instead of inline comments) and unit tests for this method though.
|
will work on the unit test but +14 days and I assume forward merging will be tricky (file renames), suggesting to merge into 4.11 and add the test later on master for 4.12. |
|
I think the forward merging is working (normally). Somehow git is managing the new folder structure that was applied between 4.11-4.12 |
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM, based on manual verification and marvin test results
Description
Ensures we have a valid console proxy domain for protocol http even a
*setting is used. See #2733Types of changes
GitHub Issue/PRs
Fixes #2733
Screenshots (if appropriate):
after fix

How Has This Been Tested?
Manually in simulator setup
Checklist:
Testing