Wednesday, July 22, 2015

Hiding Portal Header

You may run into this requirement to hide the portal header. Your need may different but I had to hide it for the password recovery site. Modifying portal definition may yield the same result but I found it easier to use a small java script in the html area on the page. Here is the code


if (top.document.getElementById('pthdr2container'))
{
top.document.getElementById('pthdr2container').className = "pthnavbarhide";
}

if (top.document.getElementById('pthnavcontainer'))
{
top.document.getElementById('pthnavcontainer').style.display = "none";
}

P.S. : Keep in mind that the ElementIDs may be different depending upon your tools versions and the stylesheet used. You also need to add  script tags

Monday, July 20, 2015

Debug SSL connection on App Server / Issue with TLS and tools 8.54

 Recently I had trouble installing an ssl cert on the Gateway. The app server log showed usual handshake failure but that was not enough to figure out the issue. After some search on the internet I found out that you can append to Java options to trace ssl connectivity issues in the application server configuration. Here is the text to attach  "-Djavax.net.debug=ssl" . This helped a great deal as the trace pointed out the issue. Server was setup to use TLS only and app server was trying to connect using SSL. App server or Process Scheduler can be forced to use TLS by appending  to the same Java options. After adding "-Dhttps.protocols=TLSv1" to app server configuration connectors loaded successfully.