Fix handling of View Policy in CLI upload workflow for small, unique files
Fix handling of View Policy in CLI upload workflow for small, unique files

Summary:
Ref T7148. When uploading files from the CLI with a particular view policy, we may not respect it if the file is unique (so the data isn't already known) and small (so it doesn't invoke the chunker).

This is rare (and may never have happened outside of testing) because:

  - production dumps are always larger than the minimum chunk size;
  - only cluster stuff uses `setViewPolicy()`;
  - the default policy is "Administrators" anyway, which is safe.

However, I caught it in local testing, so fix it up.

Test Plan: Used `bin/host upload --file ...` to upload a small, unique file. Verified it uploaded with the correct custom view policy ("No One") rather than the default view policy ("Administrators").

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T7148

Differential Revision: https://secure.phabricator.com/D16408

Khan/arcanist,uber/arcanist,fivestars/arcanist,aik099/arcanist,folsom-labs/arcanist,phacility/arcanist,folsom-labs/arcanist,fivestars/arcanist,Khan/arcanist,aik099/arcanist,chundongwang/arcanist,codelabs-ch/arcanist,uber/arcanist,chundongwang/arcanist,phacility/arcanist,Khan/arcanist,r4nt/arcanist,chundongwang/arcanist,phacility/arcanist,fivestars/arcanist,Khan/arcanist,r4nt/arcanist,r4nt/arcanist,folsom-labs/arcanist,folsom-labs/arcanist,aik099/arcanist,uber/arcanist,chundongwang/arcanist,phacility/arcanist,codelabs-ch/arcanist,fivestars/arcanist,aik099/arcanist,r4nt/arcanist,codelabs-ch/arcanist,codelabs-ch/arcanist,codelabs-ch/arcanist,phacility/arcanist,uber/arcanist