Skip to main content
7-Bedrock
July 14, 2023
Solved

MKS154475: Using im issues with queryDefinition in GUI URL option

  • July 14, 2023
  • 1 reply
  • 1870 views

Hello,

 

The "im issues" command with queryDefinition (producing a user-defined query or a quick query) works in these two cases:
WEB URL: http://server/im/issues?queryDefinition=%28field%5BID%5D=448471%29 
CLI: im issues --queryDefinition=(field[ID]=448471)

 

But not in the GUI URL case (error MKS154475 Incorrect URL format is generated):
integrity://server/im/issues?queryDefinition=%28field%5BID%5D=448471%29

 

I saw here that may be double encoding is required, so I tried this:

integrity://server/im/issues?queryDefinition=%2528field%255BID%255D=448471%2529

but it still generates error MKS154475 Incorrect URL format.

Appreciating your support.

 

Mohamed

Best answer by ME_10737912

After some trials and errors found the solution, the "=" sign in the queryDefinition section must be also encoded for the GUI URL to work.

integrity://server/im/issues?queryDefinition=%28field%5BID%5D%3D448471%29

 

For WEB URL, encoding it or leaving it unencoded works (hence the confusion).

http://server/im/issues?queryDefinition=%28field%5BID%5D=448471%29

http://server/im/issues?queryDefinition=%28field%5BID%5D%3D448471%29

 

Mohamed

1 reply

ME_107379127-BedrockAuthorAnswer
7-Bedrock
July 19, 2023

After some trials and errors found the solution, the "=" sign in the queryDefinition section must be also encoded for the GUI URL to work.

integrity://server/im/issues?queryDefinition=%28field%5BID%5D%3D448471%29

 

For WEB URL, encoding it or leaving it unencoded works (hence the confusion).

http://server/im/issues?queryDefinition=%28field%5BID%5D=448471%29

http://server/im/issues?queryDefinition=%28field%5BID%5D%3D448471%29

 

Mohamed