Skip to content

Commit

Permalink
Fix DS Fault Message: Unknown MongoDB operation
Browse files Browse the repository at this point in the history
Fix DS Fault Message: Unknown MongoDB operation while trying to insert, retrieve, etc from a sub-collection. Fixes: #3325
  • Loading branch information
DedunuKarunarathne committed May 14, 2024
1 parent ed84be9 commit bbc4857
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public String getExpression() {
}

private Object[] decodeQuery(String query) throws DataServiceFault {
int i1 = query.indexOf('.');
int i1 = query.lastIndexOf('.');
if (i1 == -1) {
throw new DataServiceFault("The MongoDB Collection not specified in the query '" + query + "'");
}
Expand Down

0 comments on commit bbc4857

Please sign in to comment.