Home GnuPG

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

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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

Details

Provenance
epriestley <git@epriestley.com>Authored on Aug 17 2016, 3:55 PM
Parents
rARCd0957c344156: Parse git renames with inconsistent quoting or custom prefixes
Branches
Unknown
Tags
Unknown

Event Timeline