Description of problem: When create secure routes with invalid certificates,it will give warning message, in the warning info certificate content is shown but not wrapped Version-Release number of selected component (if applicable): v3.4.0.16 How reproducible: Always Steps to Reproduce: 1.Create Pod and Service #oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/routing/caddy-docker.json #oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/routing/edge/service_unsecure.json 2.Download certificate and key, route_edge-www.edge.com.crt is signed with unknown authority # curl -k -O https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/routing/edge/route_edge-www.edge.com.crt # curl -k -O https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/routing/edge/route_edge-www.edge.com.key 3.Go to Routes page -> Create Route -> check "Secure route" -> Edge -> upload cert and key -> Create 4.Check route on Routes page Actual results: 4.Routes will not be established successfully, hover the warning icon, certificate content will be shown but not wrapped, see attachment Expected results: 4.Content in warning info should be displayed in correct format, it should wrap into lines when content length extends the boarder Additional info:
Created attachment 1214851 [details] MessageOverflow
Steve I think this is just a general problem with our bootstrap popovers if they have long unbroken strings in them.
PR to resolve: https://github.com/openshift/origin-web-console/pull/761
This has been merged into ose and is in OSE v3.4.0.18 or newer.
Checked against v3.4.0.18+ada983f Now the long strings wraps into multiple lines, but for very long strings we couldn't see all its content even we scroll down, the popover content disappears when we scroll down. Please check attachment
Created attachment 1215991 [details] PartialContent
We probably need to look into truncating these errors in the middle when they go beyond a certain length. And then on the page for the route show the warnings in a warning alert instead of in the tooltip so that the user has a way to see the full message.
FYI routes shouldn't be failing validation on self-signed certs at all and there is a bug open for that https://bugzilla.redhat.com/show_bug.cgi?id=1389165 But there are still cases where the route will be rejected with very long messages so we still need to handle truncating these warnings.
PR to middle truncate https://github.com/openshift/origin-web-console/pull/794
We are now truncating the message in the middle to hopefully catch the most relevant parts of the error messages.
This has been merged into ose and is in OSE v3.4.0.22 or newer. Moving on to QE since it's already on the errata.
Checked against v3.4.0.22+5c56720 Now warning message are truncated to cover the most relevant parts of the error message, and we could see the full message Move to VERIFIED
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0066