mateclaw/mateclaw-server/src/test/java/vip/mate/exception
倪程伟 ffef9bab00 fix(exception): return 405 for HttpRequestMethodNotSupportedException
Spring's default lets HttpRequestMethodNotSupportedException escape to the
catch-all @ExceptionHandler(Exception.class), surfacing as a 500 with a full
stack trace. Return a clean 405 so the client gets a structured R body and
the log stays at WARN.

This is also the second line of defence against malformed path segments that
confuse reverse proxies — e.g. a conversationId ending in ":" can make a
proxy strip the trailing path, landing a GET /api/v1/conversations/<id> on
the @DeleteMapping variant and triggering exactly this exception (issue #369).
2026-06-19 06:20:59 +08:00
..
GlobalExceptionHandlerConfirmTest.java feat(skill): automatic lifecycle archival for idle skills 2026-05-19 09:55:59 +08:00
GlobalExceptionHandlerMethodNotSupportedTest.java fix(exception): return 405 for HttpRequestMethodNotSupportedException 2026-06-19 06:20:59 +08:00
GlobalExceptionHandlerTest.java fix(wiki): align HTTP status with R envelope and harden config + edit paths 2026-05-14 23:01:00 +08:00
GlobalExceptionHandlerTypeMismatchTest.java fix(api): return 400 on path-variable type mismatch instead of 500 2026-05-24 22:57:51 +08:00