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

WFLY-15897 Messaging BroadcastGroupDefinition & DiscoveryGroupDefinition fixes #15080

Merged
merged 1 commit into from Jan 14, 2022

Conversation

TomasHofman
Copy link
Contributor

https://issues.redhat.com/browse/WFLY-15897
https://issues.redhat.com/browse/JBEAP-23054 (EAP 8)

  • Change BroadcastGroupDefinition#CONNECTOR_REFS to be required, as both JGroupsBroadcastGroupDefinition#CONNECTOR_REFS and SocketBroadcastGroupDefinition#CONNECTOR_REFS are required. This is causing the web console not to include the connectors attribute in the Add form.
  • BroadcastGroupWriteAttributeHandler#SOCKET_INSTANCE references wrong attributes list. Causes NPE when editing resources.
  • Avoid NPE in SocketBroadcastGroupAdd and JGroupsBroadcastGroupAdd when the provided socket binding doesn't have broadcast address defined. Print helpful message instead.
  • Make TranslatedWriteAttributeHandler not to write into attribute, if the attribute is in the list of ignored attributes for given resource (causes NPE).

@TomasHofman
Copy link
Contributor Author

Hello @ehsavoie , would you review please? This is fix for issues uncovered when trying to add and edit broadcast groups and discovery groups in web console.

@github-actions github-actions bot added the deps-ok Dependencies have been checked, and there are no significant changes label Jan 12, 2022
@bstansberry
Copy link
Contributor

Hi @TomasHofman -- thanks for this. Please update the commit message and PR title to reference WFLY-15897 instead of the JBEAP. Thanks.

@TomasHofman TomasHofman changed the title JBEAP-23054 Messaging BroadcastGroupDefinition & DiscoveryGroupDefinition fixes WFLY-15897 Messaging BroadcastGroupDefinition & DiscoveryGroupDefinition fixes Jan 13, 2022
@TomasHofman
Copy link
Contributor Author

Sorry, issue code fixed :).

@ehsavoie
Copy link
Contributor

@TomasHofman could your PR comments go into the commit message also ?

…ion fixes

* Change BroadcastGroupDefinition#CONNECTOR_REFS to be required, as both JGroupsBroadcastGroupDefinition#CONNECTOR_REFS and SocketBroadcastGroupDefinition#CONNECTOR_REFS are required. This is causing the web console not to include the connectors attribute in the Add form.
* BroadcastGroupWriteAttributeHandler#SOCKET_INSTANCE references wrong attributes list. Causes NPE when editing resources.
* Avoid NPE in SocketBroadcastGroupAdd and JGroupsBroadcastGroupAdd when the provided socket binding doesn't have broadcast address defined. Print helpful message instead.
* Make TranslatedWriteAttributeHandler not to write into attribute, if the attribute is in the list of ignored attributes for given resource (causes NPE).
@TomasHofman
Copy link
Contributor Author

@ehsavoie sure, done.

@bstansberry
Copy link
Contributor

/retest

@bstansberry bstansberry merged commit fcbc144 into wildfly:main Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps-ok Dependencies have been checked, and there are no significant changes
Projects
None yet
3 participants