• Escaping ~ from restful metadata search

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #47425  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
http://localhost:8080/OpenKM/services/rest/search/find?property=okp:document.name=Value\~Containing&domain=1
http://localhost:8080/OpenKM/services/rest/search/find?property=okp:document.name=Value\\~Containing&domain=1
http://localhost:8080/OpenKM/services/rest/search/find?property=okp:document.name=Value\\\\~Containing&domain=1
http://localhost:8080/OpenKM/services/rest/search/find?property=okp:document.name="Value~Containing"&domain=1
http://localhost:8080/OpenKM/services/rest/search/find?property=okp:document.name='Value~Containing'&domain=1
http://localhost:8080/OpenKM/services/rest/search/find?property=okp:document.name="Value\~Containing"&domain=1
http://localhost:8080/OpenKM/services/rest/search/find?property=okp:document.name="Value\\~Containing"&domain=1
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?
 #47480  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"

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.