-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: handle url limit in rest #3186
Conversation
b.fields = []string{"*"} | ||
} | ||
|
||
if len(b.hiddenFields) > 0 { |
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.
If hidden fields are added below the URLMaxLimit check, they may cause the URL to exceed the max. Hidden fields need to be part of the max check
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.
I was thinking that, if hiddenFields would be prior then if it exceed the limit, then it will pass *
and no hidden fields would be coming in that response.
But yeah, if it was in later then url rest limit 414 error will come and whole rest call would be failed.
This change would be in
build()
function which would be called by rest cli and rest/ems collector calls.