I have created a function app in Azure to dynamically generate the version.json file depending on the ISO images in a storage account. Everything is working fine so far but to restrict access to this function app I can pass a token with this URL.
Unfortunately, I am not ablte to add the ? charater to the URL as it will always show the help message for this configuration option. Copy and paste also didn’t work.
Any idea how I can add a normal URL containing a ? charater to pass a query string with this URL?
When you type the command, does it still show the helpinfo even if you typed the variable with a ’ at beginning (and end if successful)?
set system update-check url 'https://example.com?
Otherwise this sounds like something to report at https://vyos.dev
A workaround until resolved (if the ’ trick didnt work) would be to manually edit /config/config.boot file and then reboot the device (there is also a reload command if you dont want to reboot the box but I would try to reboot since coldbooting is what happens if your box lose its power sometimes in future).
Codewise in the sourcecode for the cli engine it would be something along with (pseudo code):
# Init variable to contain whitespace as a starter
PREVCHAR = ' '
# Placeholder for loop
LABEL INPUT
# Read keystroke
CHAR = READ(keystroke)
# SHOWHELP (for current context) only if "?" char is followed by a whitespace OR if a "?" char is followed by a tab
IF (CHAR == "?" AND PREVCHAR = whitespace) OR (CHAR == tab AND PREVCHAR = "?") THEN
SHOWHELP(context)
END
# Set current char to prevchar for next round of the loop
PREVCHAR = CHAR
# Loop to placeholder
GOTO INPUT