URL with ; doesn't work in "Notes URL for Hosts"

CMK version: CRE 2.1.0p16
**OS version:**Centos7

URLs that contain ; do not work in “Notes URL for Hosts”.

For example OTRS URLs:
URL: https://myotrs/otrs/index.pl?Action=AgentITSMConfigItemZoom;ConfigItemID=374

On click it shows:

URL: https://myotrs/otrs/index.pl?Action=AgentITSMConfigItemZoom

Try to urlencode the semicolon ; as %3B, see Percent-encoding - Wikipedia

Hello Martin,

I had tried that but it doesn’t work either:

with %3B it doesn’t cut the URL but it doesn’t decode the URL to transform the code %3B back to ;

image

One solution may be to apply an unquote() function when calling the “Custom Notes” to decode the URL.

Example:

import urllib.parse
encodedStr = 'https://myotrs.com/otrs/index.pl?Action=AgentITSMConfigItemZoom%3BConfigItemID=371'
url = urllib.parse.unquote(encodedStr)
print(url)   # https://myotrs.com/otrs/index.pl?Action=AgentITSMConfigItemZoom;ConfigItemID=371

In CRE version 2.1.0p17 this problem continues.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.