Page 1 of 1

Escaping ~ from restful metadata search

Posted: Fri Feb 08, 2019 8:42 am
by dhabcert
We are currently setting up an Openkm 6.3.3 CE server and are filling it with our documents and metadata.
One of our metadata fields contain a ~ searching for metadata contained in other fields not containing a ~ work fine.
But all tries to escape the ~ from the search failed. We currently tried the following combinations:

Code: Select all

For the trial requests we used Postman, all requests are GET with the corresponding Authorization headers and Accept application/json.
Does anyone know what i could possibly change to get this to work?

Re: Escaping ~ from restful metadata search

Posted: Sat Feb 09, 2019 11:36 am
by jllort
You should encode the value

Re: Escaping ~ from restful metadata search

Posted: Mon Feb 11, 2019 7:24 am
by dhabcert
Thanks for the advice, but sadly it didn't work. We had to remove all ~ from the metadata and from the given searches to make it work.

Re: Escaping ~ from restful metadata search

Posted: Wed Feb 13, 2019 7:11 pm
by jllort
Probably the character " should not be set in the url. An the word value it does not seems a real value "Value\\~Containing"