The GitHub Actions job "CodeQL Analysis" on 
rocketmq.git/fix/query-assignment-null-body-fields has failed.
Run started by GitHub user zjncs (triggered by zjncs).

Head commit for run:
c5758f6659747a1d177faab91224cfd07f9b4446 / zjncs <[email protected]>
[ISSUE #B5] Reject query assignment requests with missing required body fields 
instead of failing with NPE

A QUERY_ASSIGNMENT or SET_MESSAGE_REQUEST_MODE request whose body lacks
topic, consumerGroup or messageModel currently fails deep inside the
processor: ConcurrentHashMap.get(null) in getMessageRequestMode,
findSubscriptionGroupConfig or getConsumerGroupInfo, a null-enum switch
in doLoadBalance, or topic.startsWith on a null topic. The client only
gets an opaque SYSTEM_ERROR carrying an NPE stack.

Validate the required body fields up front and answer INVALID_PARAMETER.

Signed-off-by: zjncs <[email protected]>

Report URL: https://github.com/apache/rocketmq/actions/runs/34339404068

With regards,
GitHub Actions via GitBox

Reply via email to