Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi.
We have code for creating web links that works "kind of". See the code snippet below. When a user is using the Web Client, and they click on a link created by the interntals of Integrity, the user sees a page that allows them to view the item and switch to "edit item" from the left hand menu.
When a user clicks on an link created from the function below, the browser forces the user to login again. Our users want all links to function the same - whether those links are created by the internals of Integrity, or created by our custom scripts. So, how do we get the "Session Information", or whatever is needed, to make the links that we create in our scripts to function like the links created by Integrity?
Please advise.
-Sean
function GetWebLinkForItem(anID)
{
var weblink = new java.lang.StringBuffer();
weblink.append("http://");
weblink.append(eb.getHostname());
weblink.append(":7001/im/issues?selection=" );
weblink.append( anID.toString());
return weblink + "";
}
Solved! Go to Solution.
The problem in this case ended-up being that the custom link was using the .getHostname() method from the siEnvironmentBean which got the fully qualified Integrity Server hostname (machine123.company.com). However, the users had an existing connection to Integrity using a DNS alias (server.company.com). Integrity sees these URLs as different connections since the hostnames are different and this is why users got the additional prompt.
Article 187801 has been written to document these details.
Hi Sean,
I don't have an answer for you for this, and I'm not even sure where to start trying to pull this kind of information from. Your best bet to get a prompt answer from PTC is to open a PTC Integrity Support case.
Regards,
Kael
Hi Kael,
Thanks for the quick reply. I'll open a case for this one.
-Sean
The problem in this case ended-up being that the custom link was using the .getHostname() method from the siEnvironmentBean which got the fully qualified Integrity Server hostname (machine123.company.com). However, the users had an existing connection to Integrity using a DNS alias (server.company.com). Integrity sees these URLs as different connections since the hostnames are different and this is why users got the additional prompt.
Article 187801 has been written to document these details.