Closed simonpasquier closed 9 years ago
Related to this, it appears this causes issues with environment variables as well:
2014-11-06_17:25:10.27896 2014/11/06 17:25:10 Initialization failed for 'logsearch': Unable to parse ElasticSearch server URL [http://logsearch-data.%ENV[ENV]:9200]: parse http://logsearch-data.%ENV[ENV]:9200: hexadecimal escape in host
Closed in #1190.
I see no reason why HttpListenInput calls url.QueryUnescape() on the received body [1]. As such if the data contains '+' characters, they will be transformed as ' '. And any data containing a '%' character not followed by two hexadecimal digits will be dropped.
[1] https://github.com/mozilla-services/heka/blob/dev/plugins/http/http_listen_input.go#L86