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

ISPN-6356 Wrap removal of default HR liteners into security actions #4165

Closed
wants to merge 1 commit into from

Conversation

vjuranek
Copy link
Member


@Override
public Void run() {
listenable.removeListener(listener);
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps we could add some not null checks here? I think it would be the best to ignore this instruction when listenable is null.

Copy link
Member Author

Choose a reason for hiding this comment

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

instead of doing nothing when listenable is null, we should at least log it, as there's probably something wrong, null is definitely expected here. Looking into other security actions, non of them contains logging or other checks - I guess it's because of performance, as these actions can be used quite frequently - is this correct @tristantarrant ?

If I'm wrong and there are no performance concerns, no problem to add it.

@slaskawi
Copy link
Contributor

I think it would be good to have some test for it... What do you think?

@vjuranek
Copy link
Member Author

I think it would be good to have some test for it

test for what actually? The functionality is basically tested in many HR server tests (these listeners are added automatically) and this PR just removes warning from log - not sure how to test it.

@slaskawi
Copy link
Contributor

slaskawi commented Apr 1, 2016

I took another look at the stacktrace in the JIRA and I think I now understand what's going on... integrating into both - master and 8.2.x

@slaskawi
Copy link
Contributor

slaskawi commented Apr 1, 2016

Ok, it has been integrated previously... Thanks Vojtech!

@slaskawi slaskawi closed this Apr 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants