https://bz.apache.org/bugzilla/show_bug.cgi?id=69476
Bug ID: 69476 Summary: receives unexpected 500 error when upload incomplete content less than content-length header announced Product: Tomcat 10 Version: 10.1.33 Hardware: PC Status: NEW Severity: normal Priority: P2 Component: Connectors Assignee: dev@tomcat.apache.org Reporter: ch...@msn.com Target Milestone: ------ Created attachment 39945 --> https://bz.apache.org/bugzilla/attachment.cgi?id=39945&action=edit receive unexpected 500 sc for incomplete put request Release: Tomcat 10.1.34 Desc: Put request with content less then expected content-length, receive 500 generic server side error, which is not expected. Source code shows: 1. SC_REQUEST_TIMEOUT (408) error is the first call of sendError in InputBuffer#handleReadException, line 327; DefaultServlet#doPut, line 623; 2. SC_CONFLICT (409) is the second call of sendError in DefaultServlet#doPut, line 630; 3. Finally SC_INTERNAL_SERVER_ERROR (500) error received because the duplicate call sendError 409 triggers IllegalStateException during checkCommitted. Expectation: 4xx error, due to client issue. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org