Skip to content

[ISSUE #403] Fix NPE in AclInfo.copyFrom when actions or sourceIps is null#419

Open
itxaiohanglover wants to merge 1 commit into
apache:masterfrom
itxaiohanglover:fix/acl-copyfrom-npe
Open

[ISSUE #403] Fix NPE in AclInfo.copyFrom when actions or sourceIps is null#419
itxaiohanglover wants to merge 1 commit into
apache:masterfrom
itxaiohanglover:fix/acl-copyfrom-npe

Conversation

@itxaiohanglover

Copy link
Copy Markdown

Fixes #403. When the broker returns AclInfo with null actions or sourceIps fields, copyFrom throws NPE due to new ArrayList<>(null). Added null checks.

…Ips is null

When the broker returns AclInfo with null actions or sourceIps fields,
the copyFrom method throws NullPointerException due to
new ArrayList<>(null). Add null checks before copying these fields.

This fix supports ACL 2.0 with RocketMQ 5.4.0 where some ACL policy
entries may not include sourceIps or actions.
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.

Support acl2.0 with RocketMQ 5.4.0 and above versions

1 participant