RockteMQ-AI commented on issue #2709: URL: https://github.com/apache/rocketmq-dashboard/issues/2709#issuecomment-5455421972
**Issue Evaluation** Category: `bug` | Status: **Confirmed** The `GlobalExceptionHandler` does not handle `HttpMediaTypeNotAcceptableException`, causing requests with no acceptable response representation to fall through to the generic 500 handler instead of returning a proper 406 Not Acceptable response. **Root Cause:** Missing exception mapping in `GlobalExceptionHandler` for `HttpMediaTypeNotAcceptableException`. **Impact:** API layer; clients receive misleading 500 errors instead of semantically correct 406 responses. **Severity:** Medium — incorrect HTTP semantics, affects API contract correctness. The proposed scope (dedicated exception mapping + MockMvc regression test) is well-scoped. An automated fix proposal can be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by RockteMQ-AI* -- 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]
