You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/03 12:11:12 UTC

[I] [Bug] Instance write APIs should reject null request bodies [rocketmq-dashboard]

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

   ### What happened
   
   RocketMQ Studio instance write APIs currently accept a JSON literal `null` request body and pass it into the service layer:
   
   - `POST /api/instances/create`
   - `POST /api/instances/update`
   
   `InstanceService#createInstance` and `InstanceService#updateInstance` log fields from the request object before any null guard, so a `null` body can fail with an internal `NullPointerException` instead of a structured client error.
   
   ### Expected behavior
   
   Instance create/update APIs should reject a missing or JSON `null` request body with a clear 400 response, and the service layer should also guard direct calls to avoid accidental NPEs.
   
   ### Why this matters
   
   This is part of the RocketMQ Studio control-plane resource management baseline. Write APIs should fail predictably and avoid leaking implementation errors to users.
   
   ### Scope
   
   RocketMQ Studio / track 1 control-plane instance management.
   


-- 
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: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Instance write APIs should reject null request bodies [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on issue #848:
URL: https://github.com/apache/rocketmq-dashboard/issues/848#issuecomment-5177574079

   Resolved by #945 (merged into rocketmq-studio as c16dbca).


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Instance write APIs should reject null request bodies [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #848: [Bug] Instance write APIs should reject null request bodies
URL: https://github.com/apache/rocketmq-dashboard/issues/848


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org