I am trying to query fixlet ID by fixlet name . Unfortunately fixlet name has double quotes in name. Hence session relevance is failing -
relevance- (id of it) of bes fixlets whose (name of it = "fixletname")
In case of fixletname contains double quotes , this relevance fails .
I tried replacing double quotes by %22 or %2522.
Every time it get replaced by " .
I am executing query using - http://iemserver:52311/api/query?relevance=(id of it) of bes fixlets whose (name of it = "fixletname")
This is failing- http://iemserver:52311/api/query?relevance=(id of it) of bes fixlets whose (name of it = "fixlet%22na%22me") http://iemserver:52311/api/query?relevance=(id of it) of bes fixlets whose (name of it = "fixlet%2522na%2522me")
Itβs an example of doubling-up on the escape sequences, when the escape codes will be evaluated more than once.
(name of it) of bes fixlets whose (relevance of it as lowercase contains "name of operating system as lowercase contains %252522win%252522")
First pass, (probably at the client), Relevance Substitution converts β%25β to β%β (25 is the hexadecimal of the ASCII code for a percent symbol). So you end up with β%2522win%2522β, where the remaining β25β strings are the second 25βs in each sequence.
Second pass (probably at the server), β%2522win%2522β is evaluated as β%22win%22β (again, β%25β is translated to the percent symbol β%β.
In a third pass, β%2522win%2522β will be translated to β%22win%22β.
Finally, β%22β is the escape code for a double-quote character.
β¦not saying this will work, just trying to help visualize why multiple %252522 codes might be helpful.
Glad it worked. It was a super pain to figure out the first time.
Also, thanks for the explanation @JasonWalker β¦ Iβd say you are right, though Iβm not exactly sure where all of the layers are that are interpreting the escaped characters.