]> khamidou — GitHub mirrors - arcanist.git/commit
Validate Arcanist install-certificate URIs more carefully
authorepriestley <git@epriestley.com>
Tue, 28 Jun 2016 21:43:41 +0000 (14:43 -0700)
committerepriestley <git@epriestley.com>
Tue, 28 Jun 2016 22:20:06 +0000 (15:20 -0700)
commit4d4d16f25985f133501f20fdddd183e525f00341
treecf02cb195b63e032481cf78c408a0ad2a8b14e87
parent2374403e8f80a8fb16cdc1ce2843f932632e8cf0
Validate Arcanist install-certificate URIs more carefully

Summary: Fixes T11222. This was lazy-future-proofed for Conduit SSH support, but users are boundlessly creative. Check protocols explicitly.

Test Plan:
```
$ arc install-certificate a.b:1/
Usage Exception: Server URI "a.b:1/" must include the "http" or "https" protocol. It should be in the form "https://phabricator.example.com/".
```

  - Also went through a successful workflow with a URI in the form provided in the example.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11222

Differential Revision: https://secure.phabricator.com/D16188
src/workflow/ArcanistInstallCertificateWorkflow.php