-
Notifications
You must be signed in to change notification settings - Fork 305
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
HPCC-32699 Encode all ALA response data #19137
HPCC-32699 Encode all ALA response data #19137
Conversation
@jeclrsg fyi |
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-32699 Jirabot Action Result: |
ba5a269
to
2d7f6cd
Compare
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.
Looks fine, a couple of minor comments.
@@ -947,7 +947,17 @@ unsigned AzureLogAnalyticsCurlClient::processHitsJsonResp(IPropertyTreeIterator | |||
ForEach(*fields) | |||
{ | |||
const char * fieldName = header.item(idx++); | |||
returnbuf.appendf("<%s>%s</%s>", fieldName, fields->query().queryProp("."), fieldName); | |||
StringBuffer encodedValue; | |||
StringBuffer rawValue(fields->query().queryProp(".")); |
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.
minor efficiency:
const char * rawValue = fields->query().queryProp(".");
it avoids cloning the string.
@@ -947,7 +947,17 @@ unsigned AzureLogAnalyticsCurlClient::processHitsJsonResp(IPropertyTreeIterator | |||
ForEach(*fields) | |||
{ | |||
const char * fieldName = header.item(idx++); | |||
returnbuf.appendf("<%s>%s</%s>", fieldName, fields->query().queryProp("."), fieldName); | |||
StringBuffer encodedValue; |
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.
trivial: encodedValue can be moved inside the else
- Encodes all response log data from ALA Signed-off-by: Rodrigo Pastrana <rodrigo.pastrana@lexisnexisrisk.com>
2d7f6cd
to
006814c
Compare
@ghalliday changes squashed |
Type of change:
Checklist:
Smoketest:
Testing: