-
Notifications
You must be signed in to change notification settings - Fork 153
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
Improve "Failed to find..." messages (20.08) #1395
Improve "Failed to find..." messages (20.08) #1395
Conversation
If a SecInfo entry cannot be found by ID or name, the error message will say it cannot find the given ID or name instead of a misleading message that the type could not be found.
get_info_data->type, | ||
if (send_find_error_to_client ("get_info", | ||
get_info_data->name | ||
? "name" |
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 think this would break if name/id contained a ".
It was safe for type because it's checked above.
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 think this is a general issue with send_find_error_to_client
that was only avoided so far because of the id validation in GSA, so I'll change that function to XML escape the input.
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.
The issue should be addressed with 9504567.
This ensures the error messages work if reserved characters are used in the requested id or name.
Some of the messages used the type of the get_... command instead of "filter" when the filter given by filt_id could not be found.
Improve "Failed to find..." messages (20.08) (bp #1395)
What:
This fixes the following issues with the "Failed to find..." messages.
say it cannot find the given ID or name instead of a message that the
type could not be found.
filt_id
cannot be found now say "filter"instead of using the type of the
get_
command.Why:
an invalid
info_type
was used.reserved characters, the response would be invalid.
How did you test it:
Checklist: