Skip to content

Commit

Permalink
fix: conv query
Browse files Browse the repository at this point in the history
  • Loading branch information
zextrasGiovanniDefacci committed Sep 5, 2024
1 parent 0698170 commit c3c7857
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion store/src/main/java/com/zimbra/cs/index/SearchParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ public static SearchParams parse(
params.setHopCount(zsc.getHopCount());
params.setCalItemExpandStart(MoreObjects.firstNonNull(soapParams.getCalItemExpandStart(), -1L));
params.setCalItemExpandEnd(MoreObjects.firstNonNull(soapParams.getCalItemExpandEnd(), -1L));
String query = soapParams.getQuery() == null ? defaultQueryStr : soapParams.getQuery();
String query = soapParams.getQuery() == null || soapParams.getQuery().trim().isEmpty() ?
defaultQueryStr : soapParams.getQuery();
if (query == null) {
throw ServiceException.INVALID_REQUEST("no query submitted and no default query found", null);
}
Expand Down

0 comments on commit c3c7857

Please sign in to comment.