Aias00 opened a new issue, #1968:
URL: https://github.com/apache/rocketmq-dashboard/issues/1968

   ### Description
   
   The resource plan parser only validates that consumerGroups is an array. It 
does not validate the runtime shape of each consumer group subscribedTopics 
field.
   
   A resource bundle can therefore provide subscribedTopics as a string or as 
an array containing non-string values. When the consumer group does not exist, 
the malformed row is reported as an applicable CREATE action. When the group 
already exists, sortedTopics invokes string methods on the malformed value and 
the preview can fail with an unhelpful runtime exception.
   
   ### Expected behavior
   
   When subscribedTopics is supplied, it must be an array containing only 
strings. Malformed rows should be reported as INVALID and non-applicable 
without aborting the rest of the preview.
   
   ### Actual behavior
   
   Malformed subscribedTopics values can either produce an actionable plan 
entry or crash comparison against an existing group.
   
   ### Scope
   
   This is separate from #1642, which covers non-negative integer validation 
for queue, retry, and delay fields.
   
   ### Proposed fix
   
   Add runtime subscribedTopics validation before create or comparison 
planning, and cover both new and existing consumer group paths with regression 
tests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to