Question
JCR-SQL2 query return no results in OSGI but returns results in crxde query tool.
Hi,
String sqlQuery = "SELECT * FROM [dam:Asset] AS asset " +
"WHERE ISDESCENDANTNODE(asset, '/content/dam') " +
"AND asset.[jcr:path] NOT LIKE '/content/dam/archive/%' " +
"AND asset.[jcr:content/metadata/productdata/samsExpirationDate] IS NOT NULL " +
"AND asset.[jcr:content/metadata/productdata/samsExpirationDate] < '" + currentDateStr + "'";
QueryManager queryManager = session.getWorkspace().getQueryManager();
Query query = queryManager.createQuery(sqlQuery, Query.JCR_SQL2);
query.setLimit(limit);
query.setOffset(0);
QueryResult result = query.execute();

query is working in local but not in dev cloud. Working in dev crxde as well. I have given the read, write permission for the given path. updated the index as well. Still the query is not getting results. Please let me know what might be the issue.
Thank you.
