Skip to content
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

NMS-16573 User tries to create an Alarm filter favorite, but the filter doesn't save the arguments of the filter #7596

Open
wants to merge 1 commit into
base: foundation-2023
Choose a base branch
from

Conversation

jahanzebdataq
Copy link
Contributor

External References

Copy link
Contributor

@cgorantla cgorantla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tried to reproduce this issue, but if you tested this with the scenario mentioned in the bug, looks fine to me.

@@ -247,6 +258,30 @@ public static Filter getFilter(String[] allFilters, String filterString, Servlet
}
} else if (type.equals(InterfaceFilter.TYPE)) {
filter = new InterfaceFilter(InetAddressUtils.addr(value));
} else if (type.equals(ConditionalFilter.TYPE)) {
String cleanedValue = value.substring(1, value.length() - 1); // Remove surrounding brackets
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we check if there are surrounding brackets exists then only clean it up as the behavior can change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
ConditionalFilter always has a brackets even if their is only one parameter, because it stores data in an array. Do you still want me check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants