Inconsistent behavior of $HOST$ in shared template

Inconsistent behavior of $HOST$ in shared template

avatar

I've set up a shared Web Browser template with the URL field being http://$HOST$.my.domain.de:81. The Host session will prompt for the host name (thanks again for this enhancement!) and the user will hopefully enter a host name w/o domain which is being passed to the template, where the domain and port is added. Works nicely.

Now, when I apply the same concept to a TELNET (rebex) shared template, with the host name set to $HOST$.my.domain.de, the TELNET session will be started as if I had ommitted the .my.domain.de suffix - or as if RDM was ignoring it.

Also, when I use $HOST_WITHOUT_DOMAIN$ instead of $HOST$ in the Web Browser template (or in the TELNET template), RDM will ignore the domain suffix in the template too.

So only the combination of $HOST$ in a shared Web Browser template works as expected. Shouldn't it be that $HOST$ and $HOST_WITHOUT_DOMAIN$ always merge with other text I add? And if not, why not? ;-)

Best regards, Thomas.

All Comments (5)

avatar

Hi Thomas,
This is more complicated then what it seems. We completely replace the host value when we execute the template. But I have an idea. We could verify before if it contains a variable $HOST$ and replace only the specific part of it instead of the full content.

David Hervieux

avatar

Hi Thomas,

we took your feedback into account and implemented the solution David described.
It will be available in the next version of RDM.

Please let us know if you have any other issue or comment.

Regards
Sébastien

avatar

Sorry, Sebastien, somehow this topic wasn't sending notifications to me anymore (although I'm still subscribed). I'm now on 11.0.24 and will try once quickly - because I'm unsure whether "next version" refers to beta or official - and will report back afterwards.

Best regards, Thomas.

avatar

Many thanks!

This works fine now, both with TELNET and Browser sessions, and not only with the $HOST$ variable but with $HOST_WITHOUT_DOMAIN$ variable too. The latter is the one I was really interested in because it permits me to have the Host session prompt for the host name, strip any domain part a user may have appended, and add the correct domain suffix in the linked template.

Best regards, Thomas.

avatar

Hi Thomas

Happy to hear it works according to your expectations!

Thanks again for your feedback.

Best regards,