1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-07 05:11:05 +01:00
phorge-phorge/src/applications/drydock
epriestley 5cb6832572 Fix usage of fprintf() in bin/drydock command
Summary: See PHI513. `fprintf()` takes `(thing, pattern, args, ...)` but we aren't passing a `pattern`, so if the command returns a "%" in the output we get an error.

Test Plan:
  - Installed `bytes`, a great useful program which prints all the bytes, on my HoaxOS(tm) system (see D19102).

```
epriestley@orbital ~/dev/phabricator $ ./bin/drydock command --lease 76287 -- bytes # Before patch.
[2018-03-29 02:09:08] ERROR 2: fprintf(): Too few arguments at [/Users/epriestley/dev/core/lib/phabricator/src/applications/drydock/management/DrydockManagementCommandWorkflow.php:60]
arcanist(head=experimental, ref.master=b8c9c385a7f5, ref.experimental=925c60e7b837), corgi(head=master, ref.master=6371578c9d32), instances(head=master, ref.master=d983b9517924), ledger(head=master, ref.master=4da4a24b8779), libcore(), phabricator(head=hoax1, ref.master=b586ee065a75, ref.hoax1=f8d7480bbdd1, custom=4), phutil(head=master, ref.master=1ad42491e44a), secure(head=master, ref.master=988cf9bd7958), services(head=master, ref.master=6b3fb8d8dd0a)
  #0 fprintf(resource, string) called at [<phabricator>/src/applications/drydock/management/DrydockManagementCommandWorkflow.php:60]
  #1 DrydockManagementCommandWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:441]
  #2 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:333]
  #3 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/drydock/drydock_control.php:21]
epriestley@orbital ~/dev/phabricator $ ./bin/drydock command --lease 76287 -- bytes # After patch.

!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
```

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Differential Revision: https://secure.phabricator.com/D19264
2018-03-28 16:19:55 -07:00
..
application Unprototype Drydock 2016-03-04 17:23:07 -08:00
blueprint Reduce collision rate for concurrency-limiting slot locks 2018-02-13 13:21:32 -08:00
capability Give Drydock resources a proper expiry mechanism 2015-09-28 09:35:14 -07:00
conduit Allow "drydock.blueprint.edit" to create blueprints 2018-01-04 10:08:07 -08:00
constants Give Drydock Resources more modern status treatment 2018-02-13 13:16:46 -08:00
controller Give Drydock Resources more modern status treatment 2018-02-13 13:16:46 -08:00
customfield Convert DrydockBlueprints to EditEngine 2016-03-03 15:21:25 -08:00
editor Allow "drydock.blueprint.edit" to create blueprints 2018-01-04 10:08:07 -08:00
exception Lock resources briefly while acquiring leases on them to prevent acquiring near-death resources 2018-02-13 13:22:13 -08:00
garbagecollector Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
interface Make WorkingCopyBlueprint responsible for performing merges 2015-10-26 12:40:16 -07:00
logtype Render Drydock logs in text from "bin/drydock lease"; in HTML in web views 2018-02-15 17:25:34 -08:00
management Fix usage of fprintf() in bin/drydock command 2018-03-28 16:19:55 -07:00
operation Reduce callsites to "ArcanistDifferentialRevisionStatus" in Phabricator 2017-08-09 11:04:52 -07:00
phid Mark PhabricatorPHIDType::getPHIDTypeApplicationClass() as abstract 2015-11-03 06:47:12 +11:00
query Expose Drydock authorizations via Conduit 2016-10-11 19:55:43 +00:00
storage Lock resources briefly while acquiring leases on them to prevent acquiring near-death resources 2018-02-13 13:22:13 -08:00
typeahead Render browse results with global result style 2016-06-20 16:49:02 -07:00
view Render Drydock logs in text from "bin/drydock lease"; in HTML in web views 2018-02-15 17:25:34 -08:00
worker Lock resources briefly while acquiring leases on them to prevent acquiring near-death resources 2018-02-13 13:22:13 -08:00
xaction Allow "drydock.blueprint.edit" to create blueprints 2018-01-04 10:08:07 -08:00