open-consul/command
James Nugent 94aed0717f cli: Fix panic on empty data argument to kv put
Passing in an empty quoted argument from the shell currently panics as
we never check the length being greater than 0 prior to indexing into
the first rune, as illustrated in the test in this commit.

We also fix the panic, treating an empty string for data as equivalent
to not having passed it in the first place.
2017-01-05 08:02:38 -06:00
..
agent Don't error if the given data-dir doesn't exist 2016-12-15 12:55:21 -05:00
configtest.go command: fix configtest help format 2015-05-11 09:42:26 -07:00
configtest_test.go fixes issue #1661 and adds supporting test 2016-02-09 10:35:39 -05:00
event.go command: event command supports -token arg 2015-06-22 16:59:41 -07:00
event_test.go command/event: Adding new event command 2014-08-28 16:40:31 -07:00
exec.go Speling police 2016-05-15 09:13:52 -07:00
exec_test.go More flaky unit test fixes (#2449) 2016-10-31 09:59:20 -07:00
force_leave.go website: updating documentation on commands 2014-02-18 17:32:13 -08:00
force_leave_test.go gofmt 2014-05-20 16:25:29 -07:00
info.go Removes the GOMAXPROCS warnings which are obsolete for Go 1.5+. 2015-11-25 17:59:16 -08:00
info_test.go command/info: remove unused import 2014-03-05 15:02:56 -08:00
join.go website: updating documentation on commands 2014-02-18 17:32:13 -08:00
join_test.go command: Fixing more tests 2014-04-11 16:34:29 -07:00
keygen.go Add keyring http endpoints 2016-11-22 20:10:43 -05:00
keygen_test.go Adding the various CLI commands 2013-12-31 13:06:33 -08:00
keyring.go agent: write-level keyring ACLs work 2015-07-07 10:36:51 -06:00
keyring_test.go consul: more tests, remove unused KeyManager() method 2014-11-19 16:37:40 -08:00
kv_command.go Add kv command stubs 2016-09-26 16:06:53 -07:00
kv_command_test.go Add kv command stubs 2016-09-26 16:06:53 -07:00
kv_delete.go Fix kv put flags 2016-09-26 16:13:39 -07:00
kv_delete_test.go Change delete CAS behavior to require ModifyIndex 2016-09-26 16:06:55 -07:00
kv_get.go cli: Add -base64 option to consul kv get 2017-01-04 15:41:40 -06:00
kv_get_test.go cli: Add -base64 option to consul kv get 2017-01-04 15:41:40 -06:00
kv_put.go cli: Fix panic on empty data argument to kv put 2017-01-05 08:02:38 -06:00
kv_put_test.go cli: Fix panic on empty data argument to kv put 2017-01-05 08:02:38 -06:00
leave.go add extra check for unexpected args to leave command 2016-07-24 00:36:59 +10:00
leave_test.go add extra check for unexpected args to leave command 2016-07-24 00:36:59 +10:00
lock.go Makes the timeout behavior more intuitive. 2016-01-06 09:40:20 -08:00
lock_test.go Makes the timeout behavior more intuitive. 2016-01-06 09:40:20 -08:00
maint.go Chase casting types.CheckID to a string into the state_store. 2016-06-07 16:59:02 -04:00
maint_test.go Adds missing token to maint unit test. 2015-09-10 14:53:00 -07:00
members.go Used 'unconvert' to remove unneeded conversions 2016-03-18 16:12:56 +01:00
members_test.go Include DC in the members command output 2015-05-15 23:26:34 +02:00
monitor.go website: updating documentation on commands 2014-02-18 17:32:13 -08:00
operator.go Operator docs update 2016-11-16 09:04:37 +00:00
operator_test.go Adds new consul operator endpoint, CLI, and ACL and some basic Raft commands. 2016-08-30 00:02:50 -07:00
reload.go command/reload: Adding new command 2014-06-11 10:58:26 -07:00
reload_test.go command/reload: Adding new command 2014-06-11 10:58:26 -07:00
rpc.go Remove redundant hardcoded environment variables 2016-08-03 14:40:26 +08:00
rpc_test.go Remove redundant hardcoded environment variables 2016-08-03 14:40:26 +08:00
rtt.go Correct the rtt -wan error message 2016-03-04 16:27:30 -05:00
rtt_test.go Test fixes (#2434) 2016-10-25 13:46:54 -07:00
snapshot_command.go Add snapshot inspect subcommand (#2451) 2016-10-31 19:37:27 -04:00
snapshot_command_test.go Adds support for snapshots and restores. (#2396) 2016-10-25 19:20:24 -07:00
snapshot_inspect.go Moves the snapshot package up one level. (#2472) 2016-11-03 21:36:25 -07:00
snapshot_inspect_test.go Add snapshot inspect subcommand (#2451) 2016-10-31 19:37:27 -04:00
snapshot_restore.go Finishes move of datacenter into client vs. options. (#2470) 2016-11-03 14:21:02 -07:00
snapshot_restore_test.go Adds support for snapshots and restores. (#2396) 2016-10-25 19:20:24 -07:00
snapshot_save.go Moves the snapshot package up one level. (#2472) 2016-11-03 21:36:25 -07:00
snapshot_save_test.go Adds support for snapshots and restores. (#2396) 2016-10-25 19:20:24 -07:00
util_test.go Add reload/leave http endpoints (#2516) 2016-11-30 13:29:42 -05:00
util_unix.go command: fix Windows build 2015-01-25 05:00:52 +01:00
util_windows.go docs: describe child process handling on Windows for lock command 2015-01-25 11:42:29 +01:00
version.go Tweaks formatting of Consul version. 2016-08-25 17:12:55 -07:00
version_test.go Adding basic CLI infrastructure 2013-12-19 11:22:08 -08:00
watch.go Fixes a typo and adds stale documentation to website. 2016-08-10 15:46:28 -07:00
watch_test.go command/watch: Adding tests 2014-08-21 16:08:21 -07:00