logstash-input-http 4.1.11-java → 4.1.13-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/README.md +1 -1
  4. data/VERSION +1 -1
  5. data/docs/index.asciidoc +8 -0
  6. data/lib/logstash-input-http_jars.rb +9 -9
  7. data/spec/inputs/http_spec.rb +21 -0
  8. data/vendor/jar-dependencies/io/netty/netty-buffer/{4.1.135.Final/netty-buffer-4.1.135.Final.jar → 4.1.136.Final/netty-buffer-4.1.136.Final.jar} +0 -0
  9. data/vendor/jar-dependencies/io/netty/netty-codec/{4.1.135.Final/netty-codec-4.1.135.Final.jar → 4.1.136.Final/netty-codec-4.1.136.Final.jar} +0 -0
  10. data/vendor/jar-dependencies/io/netty/netty-codec-http/{4.1.135.Final/netty-codec-http-4.1.135.Final.jar → 4.1.136.Final/netty-codec-http-4.1.136.Final.jar} +0 -0
  11. data/vendor/jar-dependencies/io/netty/netty-common/{4.1.135.Final/netty-common-4.1.135.Final.jar → 4.1.136.Final/netty-common-4.1.136.Final.jar} +0 -0
  12. data/vendor/jar-dependencies/io/netty/netty-handler/{4.1.135.Final/netty-handler-4.1.135.Final.jar → 4.1.136.Final/netty-handler-4.1.136.Final.jar} +0 -0
  13. data/vendor/jar-dependencies/io/netty/netty-resolver/{4.1.135.Final/netty-resolver-4.1.135.Final.jar → 4.1.136.Final/netty-resolver-4.1.136.Final.jar} +0 -0
  14. data/vendor/jar-dependencies/io/netty/netty-transport/{4.1.135.Final/netty-transport-4.1.135.Final.jar → 4.1.136.Final/netty-transport-4.1.136.Final.jar} +0 -0
  15. data/vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/{4.1.135.Final/netty-transport-native-unix-common-4.1.135.Final.jar → 4.1.136.Final/netty-transport-native-unix-common-4.1.136.Final.jar} +0 -0
  16. data/vendor/jar-dependencies/org/logstash/plugins/input/http/logstash-input-http/{4.1.11/logstash-input-http-4.1.11.jar → 4.1.13/logstash-input-http-4.1.13.jar} +0 -0
  17. metadata +11 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4df9b987fe316cf2311ff5ac0ee4220624e8f1b0246a38e63724ee4fdc8ed25
4
- data.tar.gz: 78b96610ae94ef0ebf9c2a7f879176012bafd87e2e83e97f605afb927b3d288e
3
+ metadata.gz: 94247806a5d8c9a3b304a1d6e831f17571b1cb9f565f850d6b382b15cb8335ff
4
+ data.tar.gz: 2d2e6f55b502c2286a30f7e88f985de62a01dcfd3cfed884dac4cd1a24c7c07e
5
5
  SHA512:
6
- metadata.gz: 58badb2e603db83c166e6d36922de85c97f4521033ed93d5f8792eec94147342b10788bcd9c6f5402f0878543a1c641fad0a7f4efdfea8296cbb65bf0f05dcae
7
- data.tar.gz: 7c22e4ae98293c7d67122f67e7d8c8ba6ac5bccea7ed70232c4afa56bb8805f39db44f9dc814bd8cc489c6a1dd0db8a29e4860d6b54616e105012d1f1aab1fb4
6
+ metadata.gz: 1dbb8634f8329871af2cbfcff78190e1a59643ba0a9150c8397cf4c0560570bb5fd65075842eebf8ea3ca962c2c7f16ce6ecc9f2ac5fcfb1c61ff7d02f8b7707
7
+ data.tar.gz: b494b8b1e684bafa3be2d3f87c4c9d9a3c4e127debba8b659ca2d28a580e9a4fc7d1b4d0ff9f5af036732852ce0e7ccdf3cc1c5aacd3e51c8b5042beabd2ccf5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 4.1.13
2
+ - Fix to use the `Content-type` declared charset to decode the request body [#230](https://github.com/logstash-plugins/logstash-input-http/pull/230)
3
+
4
+ ## 4.1.12
5
+ - Update Netty dependency to 4.1.136.Final [#228](https://github.com/logstash-plugins/logstash-input-http/pull/228)
6
+
1
7
  ## 4.1.11
2
8
  - When configured to use a port that is already in use, the failure is now propagated to the pipeline [#221](https://github.com/logstash-plugins/logstash-input-http/pull/221)
3
9
  This fixes an issue where a misconfigured input could retry indefinitely while Logstash's health report continued to report the pipeline as healthy.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Logstash Plugin
2
2
 
3
- [![Travis Build Status](https://travis-ci.com/logstash-plugins/logstash-input-http.svg)](https://travis-ci.com/logstash-plugins/logstash-input-http)
3
+ [![Unit Tests](https://github.com/logstash-plugins/logstash-input-http/actions/workflows/unit-tests.yml/badge.svg?branch=main)](https://github.com/logstash-plugins/logstash-input-http/actions/workflows/unit-tests.yml)
4
4
 
5
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
6
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.1.11
1
+ 4.1.13
data/docs/index.asciidoc CHANGED
@@ -27,6 +27,14 @@ Logstash will convert it into an event for subsequent processing. Users
27
27
  can pass plain text, JSON, or any formatted data and use a corresponding codec with this
28
28
  input. For Content-Type `application/json` the `json` codec is used, but for all other
29
29
  data formats, `plain` codec is used.
30
+ If the `Content-type` header also defines a charset like in:
31
+
32
+ [source,text]
33
+ -----
34
+ curl -X POST -H 'Content-Type: application/json; charset=ISO-8859-1'
35
+ -----
36
+
37
+ then that charset is used to decode the request body. Else UTF-8 is applied.
30
38
 
31
39
  This input can also be used to receive webhook requests to integrate with other services
32
40
  and applications. By taking advantage of the vast plugin ecosystem available in Logstash
@@ -1,12 +1,12 @@
1
1
  # AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.
2
2
 
3
3
  require 'jar_dependencies'
4
- require_jar('io.netty', 'netty-codec-http', '4.1.135.Final')
5
- require_jar('io.netty', 'netty-handler', '4.1.135.Final')
6
- require_jar('io.netty', 'netty-codec', '4.1.135.Final')
7
- require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.135.Final')
8
- require_jar('io.netty', 'netty-transport', '4.1.135.Final')
9
- require_jar('io.netty', 'netty-buffer', '4.1.135.Final')
10
- require_jar('io.netty', 'netty-resolver', '4.1.135.Final')
11
- require_jar('io.netty', 'netty-common', '4.1.135.Final')
12
- require_jar('org.logstash.plugins.input.http', 'logstash-input-http', '4.1.11')
4
+ require_jar('io.netty', 'netty-codec-http', '4.1.136.Final')
5
+ require_jar('io.netty', 'netty-handler', '4.1.136.Final')
6
+ require_jar('io.netty', 'netty-codec', '4.1.136.Final')
7
+ require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.136.Final')
8
+ require_jar('io.netty', 'netty-transport', '4.1.136.Final')
9
+ require_jar('io.netty', 'netty-buffer', '4.1.136.Final')
10
+ require_jar('io.netty', 'netty-resolver', '4.1.136.Final')
11
+ require_jar('io.netty', 'netty-common', '4.1.136.Final')
12
+ require_jar('org.logstash.plugins.input.http', 'logstash-input-http', '4.1.13')
@@ -11,6 +11,17 @@ require 'inputs/helpers'
11
11
 
12
12
  java_import "io.netty.handler.ssl.util.SelfSignedCertificate"
13
13
 
14
+ shared_examples "decodes message with charset" do |charset|
15
+ let(:headers) { { "content-type" => "application/json; charset=#{charset}" } }
16
+ let(:body) { '{"msg":"A Coruña"}'.encode(charset) }
17
+
18
+ it "should decode the message accordingly" do
19
+ client.post("http://127.0.0.1:#{port}/meh.json", :headers => headers, :body => body).call
20
+ event = logstash_queue.pop
21
+ expect(event.get("msg")).to eq("A Coruña")
22
+ end
23
+ end
24
+
14
25
  describe LogStash::Inputs::Http do
15
26
 
16
27
  before do
@@ -223,6 +234,16 @@ describe LogStash::Inputs::Http do
223
234
  expect(event.get("message_body")).to eq("Hello")
224
235
  end
225
236
  end
237
+
238
+ context "when receiving a request with content-type specifying charset" do
239
+ context "ISO-8859-1" do
240
+ it_behaves_like "decodes message with charset", "ISO-8859-1"
241
+ end
242
+
243
+ context "UTF-8" do
244
+ it_behaves_like "decodes message with charset", "utf-8"
245
+ end
246
+ end
226
247
  end
227
248
 
228
249
  context "with json codec" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.11
4
+ version: 4.1.13
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-07-06 00:00:00.000000000 Z
10
+ date: 2026-07-29 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: logstash-core-plugin-api
@@ -168,15 +168,15 @@ files:
168
168
  - spec/fixtures/certs/openssl.cnf
169
169
  - spec/inputs/helpers.rb
170
170
  - spec/inputs/http_spec.rb
171
- - vendor/jar-dependencies/io/netty/netty-buffer/4.1.135.Final/netty-buffer-4.1.135.Final.jar
172
- - vendor/jar-dependencies/io/netty/netty-codec-http/4.1.135.Final/netty-codec-http-4.1.135.Final.jar
173
- - vendor/jar-dependencies/io/netty/netty-codec/4.1.135.Final/netty-codec-4.1.135.Final.jar
174
- - vendor/jar-dependencies/io/netty/netty-common/4.1.135.Final/netty-common-4.1.135.Final.jar
175
- - vendor/jar-dependencies/io/netty/netty-handler/4.1.135.Final/netty-handler-4.1.135.Final.jar
176
- - vendor/jar-dependencies/io/netty/netty-resolver/4.1.135.Final/netty-resolver-4.1.135.Final.jar
177
- - vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.135.Final/netty-transport-native-unix-common-4.1.135.Final.jar
178
- - vendor/jar-dependencies/io/netty/netty-transport/4.1.135.Final/netty-transport-4.1.135.Final.jar
179
- - vendor/jar-dependencies/org/logstash/plugins/input/http/logstash-input-http/4.1.11/logstash-input-http-4.1.11.jar
171
+ - vendor/jar-dependencies/io/netty/netty-buffer/4.1.136.Final/netty-buffer-4.1.136.Final.jar
172
+ - vendor/jar-dependencies/io/netty/netty-codec-http/4.1.136.Final/netty-codec-http-4.1.136.Final.jar
173
+ - vendor/jar-dependencies/io/netty/netty-codec/4.1.136.Final/netty-codec-4.1.136.Final.jar
174
+ - vendor/jar-dependencies/io/netty/netty-common/4.1.136.Final/netty-common-4.1.136.Final.jar
175
+ - vendor/jar-dependencies/io/netty/netty-handler/4.1.136.Final/netty-handler-4.1.136.Final.jar
176
+ - vendor/jar-dependencies/io/netty/netty-resolver/4.1.136.Final/netty-resolver-4.1.136.Final.jar
177
+ - vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.136.Final/netty-transport-native-unix-common-4.1.136.Final.jar
178
+ - vendor/jar-dependencies/io/netty/netty-transport/4.1.136.Final/netty-transport-4.1.136.Final.jar
179
+ - vendor/jar-dependencies/org/logstash/plugins/input/http/logstash-input-http/4.1.13/logstash-input-http-4.1.13.jar
180
180
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
181
181
  licenses:
182
182
  - Apache License (2.0)