Skip to content
Snippets Groups Projects

Return HTTP 400 for multipart header without boundary

Merged Jacob Vosmaer requested to merge jv-multipart-no-boundary into master

If the client passes a multipart/form-data content type without a boundary, Workhorse would return an HTTP 500 status code (Internal Server Error). This should be status 400 (Bad Request). This helps the user because it tells them the problem is on their end (in the request) and not on the GitLab server.

Fixes #385112 (closed).

Merge request reports

Merged results pipeline #720786788 passed

Merged results pipeline passed for 91c80c94

Test coverage 68.00% (-4.22%) from 2 jobs

Merged by Alessio CaiazzaAlessio Caiazza 2 years ago (Dec 13, 2022 9:11am UTC)

Loading

Pipeline #720826558 passed

Pipeline passed for 14bc0fc4 on master

Test coverage 68.00% (-4.22%) from 2 jobs
10 environments impacted.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Ash McKenzie resolved all threads

    resolved all threads

  • Ash McKenzie approved this merge request

    approved this merge request

  • :wave: @ashmckenzie, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline will be started shortly.

    For more info, please refer to the following links:

  • Ash McKenzie requested review from @nolith

    requested review from @nolith

  • Alessio Caiazza approved this merge request

    approved this merge request

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading