We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc66a8f + 9dbf3ec commit f28905aCopy full SHA for f28905a
src/lib/mongoBackend/mongoQueryContext.cpp
@@ -361,9 +361,12 @@ HttpStatusCode mongoQueryContext
361
362
// Check for duplicate tokens (with or without "!" prefix)
363
std::set<std::string> uniqueTokens;
364
- for (const auto& token : sortedV) {
+ for (size_t i = 0; i < sortedV.size(); ++i)
365
+ {
366
+ std::string token = sortedV[i];
367
std::string normalizedToken = (token[0] == '!') ? token.substr(1) : token;
- if (!uniqueTokens.insert(normalizedToken).second) {
368
+ if (!uniqueTokens.insert(normalizedToken).second)
369
370
alarmMgr.badInput(clientIp, ERROR_DESC_BAD_REQUEST_DUPLICATED_ORDERBY);
371
responseP->error.fill(SccBadRequest, ERROR_DESC_BAD_REQUEST_DUPLICATED_ORDERBY);
372
0 commit comments