I am trying to run the below query, do you know what the below issue could be?
{
"query": {
"query": "select * from my:documents where contains('PATH:"/app:company_home/st:sites/cm:my-main-site/cm:documentLibrary/*"')",
"language": "cmis"
}
}
Error
"error": {
"errorKey": "Could not read content from HTTP request body: Unexpected character ('/' (code 47)): maybe a (non-standard) comment? (not recognized as one since Feature 'ALLOW_COMMENTS' not enabled for parser)\n at [Source: java.io.BufferedReader@27de617f; line: 3, column: 65]",
"statusCode": 400,
One problem is that you've got double-quotes unescaped in your JSON string. Instead, try using:
{
"query": {
"query": "select * from my:documents where contains('PATH:\"/app:company_home/st:sites/cm:my-main-site/cm:documentLibrary/*\"')",
"language": "cmis"
}
}
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.