{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/2526","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/2526/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/2526/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/2526/events","html_url":"https://github.com/hashicorp/consul/issues/2526","id":191051690,"number":2526,"title":"the value \"-\" is not the same as the value \"-1\"","user":{"login":"pheitman","id":17179523,"avatar_url":"https://avatars.githubusercontent.com/u/17179523?v=3","gravatar_id":"","url":"https://api.github.com/users/pheitman","html_url":"https://github.com/pheitman","followers_url":"https://api.github.com/users/pheitman/followers","following_url":"https://api.github.com/users/pheitman/following{/other_user}","gists_url":"https://api.github.com/users/pheitman/gists{/gist_id}","starred_url":"https://api.github.com/users/pheitman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pheitman/subscriptions","organizations_url":"https://api.github.com/users/pheitman/orgs","repos_url":"https://api.github.com/users/pheitman/repos","events_url":"https://api.github.com/users/pheitman/events{/privacy}","received_events_url":"https://api.github.com/users/pheitman/received_events","type":"User","site_admin":false},"labels":[{"id":64219391,"url":"https://api.github.com/repos/hashicorp/consul/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/hashicorp/consul/milestones/6","html_url":"https://github.com/hashicorp/consul/milestones/0.7.2","labels_url":"https://api.github.com/repos/hashicorp/consul/milestones/6/labels","id":2123649,"number":6,"title":"0.7.2","description":"","creator":{"login":"slackpad","id":673509,"avatar_url":"https://avatars.githubusercontent.com/u/673509?v=3","gravatar_id":"","url":"https://api.github.com/users/slackpad","html_url":"https://github.com/slackpad","followers_url":"https://api.github.com/users/slackpad/followers","following_url":"https://api.github.com/users/slackpad/following{/other_user}","gists_url":"https://api.github.com/users/slackpad/gists{/gist_id}","starred_url":"https://api.github.com/users/slackpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackpad/subscriptions","organizations_url":"https://api.github.com/users/slackpad/orgs","repos_url":"https://api.github.com/users/slackpad/repos","events_url":"https://api.github.com/users/slackpad/events{/privacy}","received_events_url":"https://api.github.com/users/slackpad/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":2,"state":"open","created_at":"2016-11-09T04:35:09Z","updated_at":"2016-11-22T19:31:03Z","due_on":"2016-11-29T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-11-22T16:16:44Z","updated_at":"2016-11-22T23:06:52Z","closed_at":null,"body":"If you have a question, please direct it to the\r\n[consul mailing list](https://www.consul.io/community.html) if it hasn't been\r\naddressed in either the [FAQ](https://www.consul.io/docs/faq.html) or in one\r\nof the [Consul Guides](https://www.consul.io/docs/guides/index.html).\r\n\r\nWhen filing a bug, please include the following:\r\n\r\n### `consul version` for both Client and Server\r\nClient: Consul v0.7.1\r\nServer: Consul v0.7.1\r\n\r\n### `consul info` for both Client and Server\r\nClient:\r\n```\r\n[Client `consul info` here]\r\n```\r\n\r\nServer:\r\n```\r\nagent:\r\n\tcheck_monitors = 0\r\n\tcheck_ttls = 1\r\n\tchecks = 3\r\n\tservices = 10\r\nbuild:\r\n\tprerelease = \r\n\trevision = 'a9455cd\r\n\tversion = 0.7.1\r\nconsul:\r\n\tbootstrap = false\r\n\tknown_datacenters = 1\r\n\tleader = false\r\n\tleader_addr = 192.168.2.35:8300\r\n\tserver = true\r\nraft:\r\n\tapplied_index = 12488\r\n\tcommit_index = 12488\r\n\tfsm_pending = 0\r\n\tlast_contact = 38.772958ms\r\n\tlast_log_index = 12488\r\n\tlast_log_term = 2\r\n\tlast_snapshot_index = 8218\r\n\tlast_snapshot_term = 2\r\n\tlatest_configuration = [{Suffrage:Voter ID:192.168.2.35:8300 Address:192.168.2.35:8300} {Suffrage:Voter ID:192.168.2.34:8300 Address:192.168.2.34:8300} {Suffrage:Voter ID:192.168.2.33:8300 Address:192.168.2.33:8300}]\r\n\tlatest_configuration_index = 1\r\n\tnum_peers = 2\r\n\tprotocol_version = 1\r\n\tprotocol_version_max = 3\r\n\tprotocol_version_min = 0\r\n\tsnapshot_version_max = 1\r\n\tsnapshot_version_min = 0\r\n\tstate = Follower\r\n\tterm = 2\r\nruntime:\r\n\tarch = amd64\r\n\tcpu_count = 2\r\n\tgoroutines = 73\r\n\tmax_procs = 2\r\n\tos = linux\r\n\tversion = go1.7.3\r\nserf_lan:\r\n\tencrypted = true\r\n\tevent_queue = 0\r\n\tevent_time = 14\r\n\tfailed = 0\r\n\thealth_score = 0\r\n\tintent_queue = 0\r\n\tleft = 0\r\n\tmember_time = 9\r\n\tmembers = 5\r\n\tquery_queue = 0\r\n\tquery_time = 1\r\nserf_wan:\r\n\tencrypted = true\r\n\tevent_queue = 0\r\n\tevent_time = 1\r\n\tfailed = 0\r\n\thealth_score = 0\r\n\tintent_queue = 0\r\n\tleft = 0\r\n\tmember_time = 1\r\n\tmembers = 1\r\n\tquery_queue = 0\r\n\tquery_time = 1\r\n\r\n```\r\n\r\n### Operating system and Environment details\r\n\r\nCentOS 6.8\r\n\r\n### Description of the Issue (and unexpected/desired result)\r\n\r\nconsul kv put <key> -1\r\nappears to read from stdin as if the value were \"-\"\r\nInstead consul should realize that the value is -1, not - and put the value in to the kv store\r\n\r\n### Reproduction steps\r\n\r\nconsul kv put foo -1\r\n\r\n### Log Fragments or Link to [gist](https://gist.github.com/)\r\n\r\nInclude appropriate Client or Server log fragments.  If the log is longer\r\nthan a few dozen lines, please include the URL to the\r\n[gist](https://gist.github.com/).\r\n\r\nTIP: Use `-log-level=TRACE` on the client and server to capture the maximum log detail.\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/262393035","html_url":"https://github.com/hashicorp/consul/issues/2526#issuecomment-262393035","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/2526","id":262393035,"user":{"login":"pheitman","id":17179523,"avatar_url":"https://avatars.githubusercontent.com/u/17179523?v=3","gravatar_id":"","url":"https://api.github.com/users/pheitman","html_url":"https://github.com/pheitman","followers_url":"https://api.github.com/users/pheitman/followers","following_url":"https://api.github.com/users/pheitman/following{/other_user}","gists_url":"https://api.github.com/users/pheitman/gists{/gist_id}","starred_url":"https://api.github.com/users/pheitman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pheitman/subscriptions","organizations_url":"https://api.github.com/users/pheitman/orgs","repos_url":"https://api.github.com/users/pheitman/repos","events_url":"https://api.github.com/users/pheitman/events{/privacy}","received_events_url":"https://api.github.com/users/pheitman/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T23:06:52Z","updated_at":"2016-11-22T23:06:52Z","body":"Yes, I am pretty sure that consul is treating the negative value as if it\nwas a minus sign which tells consul to read the value from stdin.\n\nOn Tue, Nov 22, 2016, 6:01 PM McKenna Jones <notifications@github.com>\nwrote:\n\n> @pheitman <https://github.com/pheitman> On my machine, when executing consul\n> kv put with any negative values the command hangs. Does this happen do\n> you too? I am running on Arch Linux.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/hashicorp/consul/issues/2526#issuecomment-262391841>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AQYjg5MgHo0a5ebY_kmxTyrzv_r4H98Dks5rA3QtgaJpZM4K5oPz>\n> .\n>\n"}}
{"actor":{"display_login":"pheitman"}}