messere1 opened a new issue, #1642: URL: https://github.com/apache/rocketmq-dashboard/issues/1642
### Description Resource plan JSON is only checked for a top-level object and array fields. Numeric resource fields are then rejected only when `value < 0`. Because parsed JSON bypasses TypeScript's compile-time types, values such as `many`, `1.5`, or `null` can reach the planner. Non-numeric strings and fractional values do not satisfy the negative check and can be reported as applicable CREATE or UPDATE actions even though RocketMQ queue and retry counts must be integers. Affected fields: - topic `writeQueues` - topic `readQueues` - consumer group `retryMaxTimes` - consumer group `delaySeconds` ### Expected behavior Each supplied numeric field must be a finite, non-negative integer. Invalid rows should be reported as `INVALID` and non-applicable. ### Actual behavior Several invalid JSON values pass preview validation and produce actionable plan entries. ### Proposed fix Use a shared runtime non-negative-integer predicate for all four fields and add regression coverage for strings, fractions, and negative values parsed from JSON. -- 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]
