-
-
Notifications
You must be signed in to change notification settings - Fork 98
fix failing tests #3564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix failing tests #3564
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,7 +79,8 @@ private static Set<OperationType> detectMongoOperationTypes(final String query) | |
| || upper.contains("\"REMOVE\"")) | ||
| return CollectionUtils.singletonSet(OperationType.DELETE); | ||
| if (upper.contains("\"FIND\"") || upper.contains("\"AGGREGATE\"") || upper.contains("\"COUNT\"") | ||
| || upper.contains("\"DISTINCT\"")) | ||
| || upper.contains("\"DISTINCT\"") | ||
| || upper.contains("COLLECTION")) | ||
| return CollectionUtils.singletonSet(OperationType.READ); | ||
|
Comment on lines
81
to
84
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A high-severity bypass vulnerability exists in the |
||
| if (upper.contains("\"CREATEINDEX\"") || upper.contains("\"CREATECOLLECTION\"") || upper.contains("\"DROP\"") | ||
| || upper.contains("\"DROPCOLLECTION\"") || upper.contains("\"DROPINDEX\"")) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with
CypherQueryEngineand to prevent potential issues related to parameter ordering, it would be better to useLinkedHashMaphere instead ofHashMap.LinkedHashMappreserves the insertion order of parameters, which can be important in some scenarios.