Page MenuHomePhabricator

Correct two parameter strictness issues with file uploads
ClosedPublic

Authored by epriestley on Apr 10 2017, 10:49 PM.
Tags
None
Referenced Files
F15438615: D17651.diff
Wed, Mar 26, 2:03 AM
F15419886: D17651.id42452.diff
Fri, Mar 21, 9:38 AM
F15418633: D17651.id.diff
Fri, Mar 21, 12:33 AM
F15413520: D17651.diff
Wed, Mar 19, 7:26 PM
F15409283: D17651.id42451.diff
Wed, Mar 19, 3:59 AM
F15407336: D17651.diff
Tue, Mar 18, 5:00 PM
F15384864: D17651.id42452.diff
Fri, Mar 14, 9:02 PM
F15381367: D17651.diff
Fri, Mar 14, 7:17 AM
Subscribers

Details

Summary

Fixes T12531. Strictness fallout from adding typechecking in D17616.

  • chunkedHash is not a real parameter, so the new typechecking was unhappy about it.
  • mime-type no longer allows null.
Test Plan
  • Ran arc upload --conduit-uri ... 12MB.zero on a 12MB file full of zeroes.
  • Before patch: badness, failure, fallback to one-shot uploads.
  • After patch: success and glory.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence added inline comments.
src/applications/files/conduit/FileUploadChunkConduitAPIMethod.php
70

Is this meant to be $params['mime-type']? Otherwise it looks like $mime_type is unused.

epriestley removed a reviewer: joshuaspence.
  • Actually set 'mime-type'.
This revision was automatically updated to reflect the committed changes.

I removed him accidentally by racing arc diff against his accept. T12109 is a rough description.

That is, he got removed here, when an arc diff with Reviewers: chad in the message took effect:

Screen Shot 2017-04-10 at 5.11.01 PM.png (80×450 px, 20 KB)