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

FISH-1061 Fix NullPointer when Configuring a Notifier against a non-DAS Instance or Config #5122

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

Pandrex247
Copy link
Member

Description

You would get an NPE when configuring notifiers for anything other than the server-config, due to the default config tags not being present in the default domain.xml. This change makes it so default config tags will be created if not already present.

Important Info

Blockers

None

Testing

New tests

Nope

Testing Performed

Start a fresh domain:

  • Attempt to configure a notifier against the server config: .\appserver\distributions\payara\target\stage\payara5\bin\asadmin set-cdieventbus-notifier-configuration --enabled false --target default-config
  • Attempt to configure a notifier against the default config: .\appserver\distributions\payara\target\stage\payara5\bin\asadmin set-cdieventbus-notifier-configuration --enabled false --target default-config
  • Attempt to configure a notifier against a standalone instance using Admin Console

User should receive no errors and see that config changes taking effect in the domain config

Testing Environment

Windows 10, JDK 8u282

Documentation

Nada

You would get an NPE when configuring notifiers for anything other than
the server-config, due to the default config tags not being present in
the default domain.xml. This change makes it so default config tags will
be created if not already present

Signed-off-by: Andrew Pielage <[email protected]>
actionReport.setActionExitCode(ActionReport.ExitCode.SUCCESS);
return cProxy;
}
ConfigSupport.apply(cProxy -> {
Copy link
Member Author

Choose a reason for hiding this comment

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

No change in config here, just using a lambda

@Pandrex247 Pandrex247 changed the title FISH-1061 Fix NPE when Configuring Notifiers FISH-1061 Fix NullPointer when Configuring a Notifier against a non-DAS Instance or Config Feb 5, 2021
@Pandrex247
Copy link
Member Author

Jenkins test please

@Pandrex247 Pandrex247 merged commit 627ff27 into payara:master Feb 9, 2021
@Pandrex247 Pandrex247 deleted the FISH-1061 branch March 29, 2022 14:18
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.

2 participants