puma 8.0.3-java → 8.0.4-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.
- checksums.yaml +4 -4
- data/History.md +8 -0
- data/ext/puma_http11/mini_ssl.c +2 -2
- data/ext/puma_http11/org/jruby/puma/EnvKey.java +13 -7
- data/lib/puma/const.rb +1 -1
- data/lib/puma/puma_http11.jar +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97c4b620121b7066f7f83b1be4dd8eb158d23ea2156665ac8fb8fb34810bcf5c
|
|
4
|
+
data.tar.gz: 3bf6b00091f221e8ea5df31a93b7b5eadfacf7445f907daccddf61b7e0105f3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99d1155e3faeb0f5d28273e32aaeac2c2e6a8c4901fdc67361a96cf7b6f371429a1286238b59938307c2c152480821708167042b88080cafcdbfc75261a11543
|
|
7
|
+
data.tar.gz: fd7470c0362f89908adf4ffb6be92a49614355c41927e1052c4bf7a6a7b25e8f2f6168d4c92f8a9cc76e7eaf40f252420a90d06169beae53f53e632e0ff1fa53
|
data/History.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 8.0.4 / 2026-11-17
|
|
2
|
+
|
|
3
|
+
* Security
|
|
4
|
+
* Close a TLS connection when OpenSSL reports a fatal error reading it, rather than buffering everything the client sends until `first_data_timeout`. ([GHSA-4v6q-hvv7-49h9](https://github.com/puma/puma/security/advisories/GHSA-4v6q-hvv7-49h9))
|
|
5
|
+
* On JRuby, stop request headers such as `Query-String` and `Request-Path` from changing `QUERY_STRING`, `PATH_INFO` and the other env keys that come from the request line. ([GHSA-rhww-p99c-hgj9](https://github.com/puma/puma/security/advisories/GHSA-rhww-p99c-hgj9))
|
|
6
|
+
|
|
7
|
+
CVE IDs have been requested for these advisories and will be added here once assigned.
|
|
8
|
+
|
|
1
9
|
## 8.0.3 / 2026-11-13
|
|
2
10
|
|
|
3
11
|
* Security
|
data/ext/puma_http11/mini_ssl.c
CHANGED
|
@@ -603,10 +603,10 @@ VALUE engine_read(VALUE self) {
|
|
|
603
603
|
return rb_str_new(buf, bytes);
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
-
if(SSL_want_read(conn->ssl)) return Qnil;
|
|
607
|
-
|
|
608
606
|
error = SSL_get_error(conn->ssl, bytes);
|
|
609
607
|
|
|
608
|
+
if(error == SSL_ERROR_WANT_READ) return Qnil;
|
|
609
|
+
|
|
610
610
|
if(error == SSL_ERROR_ZERO_RETURN) {
|
|
611
611
|
rb_eof_error();
|
|
612
612
|
} else {
|
|
@@ -36,7 +36,7 @@ public enum EnvKey {
|
|
|
36
36
|
ETAG,
|
|
37
37
|
EXPECT,
|
|
38
38
|
EXPIRES,
|
|
39
|
-
FRAGMENT(true),
|
|
39
|
+
FRAGMENT(true, false),
|
|
40
40
|
FROM,
|
|
41
41
|
HOST,
|
|
42
42
|
IF_MATCH,
|
|
@@ -51,15 +51,15 @@ public enum EnvKey {
|
|
|
51
51
|
PRAGMA,
|
|
52
52
|
PROXY_AUTHENTICATE,
|
|
53
53
|
PROXY_AUTHORIZATION,
|
|
54
|
-
QUERY_STRING(true),
|
|
54
|
+
QUERY_STRING(true, false),
|
|
55
55
|
RANGE,
|
|
56
56
|
REFERER,
|
|
57
|
-
REQUEST_METHOD(true),
|
|
58
|
-
REQUEST_PATH(true),
|
|
59
|
-
REQUEST_URI(true),
|
|
57
|
+
REQUEST_METHOD(true, false),
|
|
58
|
+
REQUEST_PATH(true, false),
|
|
59
|
+
REQUEST_URI(true, false),
|
|
60
60
|
RETRY_AFTER,
|
|
61
61
|
SERVER,
|
|
62
|
-
SERVER_PROTOCOL(true),
|
|
62
|
+
SERVER_PROTOCOL(true, false),
|
|
63
63
|
TE,
|
|
64
64
|
TRAILER,
|
|
65
65
|
TRANSFER_ENCODING,
|
|
@@ -73,14 +73,20 @@ public enum EnvKey {
|
|
|
73
73
|
WWW_AUTHENTICATE;
|
|
74
74
|
|
|
75
75
|
final ByteList httpName;
|
|
76
|
+
final boolean fieldKey;
|
|
76
77
|
|
|
77
78
|
EnvKey() {
|
|
78
79
|
this(false);
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
EnvKey(boolean raw) {
|
|
83
|
+
this(raw, true);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
EnvKey(boolean raw, boolean fieldKey) {
|
|
82
87
|
String httpName = raw ? name() : "HTTP_" + name();
|
|
83
88
|
this.httpName = new ByteList(ByteList.plain(httpName), false);
|
|
89
|
+
this.fieldKey = fieldKey;
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
/**
|
|
@@ -99,7 +105,7 @@ public enum EnvKey {
|
|
|
99
105
|
if (key <= MAX_HASH_VALUE) {
|
|
100
106
|
EnvKey match = keyList[key];
|
|
101
107
|
|
|
102
|
-
if (match != null && equalsIgnoreCase(buffer, start, len, match.name())) {
|
|
108
|
+
if (match != null && match.fieldKey && equalsIgnoreCase(buffer, start, len, match.name())) {
|
|
103
109
|
return match;
|
|
104
110
|
}
|
|
105
111
|
}
|
data/lib/puma/const.rb
CHANGED
|
@@ -100,7 +100,7 @@ module Puma
|
|
|
100
100
|
# too taxing on performance.
|
|
101
101
|
module Const
|
|
102
102
|
|
|
103
|
-
PUMA_VERSION = VERSION = "8.0.
|
|
103
|
+
PUMA_VERSION = VERSION = "8.0.4"
|
|
104
104
|
CODE_NAME = "Into the Arena"
|
|
105
105
|
|
|
106
106
|
PUMA_SERVER_STRING = ["puma", PUMA_VERSION, CODE_NAME].join(" ").freeze
|
data/lib/puma/puma_http11.jar
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: puma
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.0.
|
|
4
|
+
version: 8.0.4
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Evan Phoenix
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2026-11-16 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: nio4r
|