instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
seanmonstar__reqwest__1076 | seanmonstar/reqwest | 1,076 | defect | b1d498ffa8a8175752042f63a9e6a93c6c64bafc | d9faf7ff3821d36d1912f92b8a0ea87d28bdeadb | Update to tokio 1.0, bytes 1.0 | Blocked on
- [x] https://github.com/bluejekyll/trust-dns/issues/1329
- [x] https://github.com/hyperium/hyper-tls/pull/79
- [x] https://github.com/ctz/hyper-rustls/pull/135
- [x] https://github.com/Nemo157/async-compression/issues/110 | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index da54f47410..cc08078885 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -191,7 +191,7 @@ jobs:
strategy:
matrix:
- rust: [1.39.0]
+ rust: [1.45.2]
steps:
- name: Checkout
diff --git a/... | 5 | 3 | 2 | [{"id": "G0", "claim": "The unsafe block in send_future should be minimized and reviewed, because `let uninit = buf.bytes_mut();` is not itself unsafe and does not need to sit inside the `unsafe` block.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
seanmonstar__reqwest__1084 | seanmonstar/reqwest | 1,084 | defect | 045d7c7d2fc27a60700393521fc0bb814d67f276 | 261119fceb7d1ed03030ef5beb0ea83298bf4a5c | add ClientBuilder.default_headers() for wasm32 target | Added ClientBuilder.default_headers to wasm, with a couple unit tests.
To make the wasm32 unit tests not generate a barrage of errors for non-wasm code, I added some #cfg gates to some tests in the tests/ folder. Cargo doesn't support target-specific examples, so I had to disable default build of two of the examples t... | diff --git a/Cargo.toml b/Cargo.toml
index 8815e6861..7460a0b79 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -61,6 +61,12 @@ __tls = []
# When enabled, disable using the cached SYS_PROXIES.
__internal_proxy_sys_no_cache = []
+# feature to prevent building examples in wasm-builds
+# There will be a better way to do t... | 3 | 2 | 1 | [{"id": "G0", "claim": "Requiring users to remember to enable the __examples feature just to see the examples work is too big a speed bump; there should be another way to prevent building examples in wasm builds.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
seanmonstar__reqwest__1150 | seanmonstar/reqwest | 1,150 | defect | bd9ff9f371b756decf26fbbde1687433b0f63774 | 4e2f44777eb457401cc95b5d6e59f2ea3a40261b | Add a use_built_in_root_certificates option for Client | Allows not using built-in certificates, but only certificates provided with `add_root_certificate`. | diff --git a/src/async_impl/client.rs b/src/async_impl/client.rs
index b6adc6485..809f10673 100644
--- a/src/async_impl/client.rs
+++ b/src/async_impl/client.rs
@@ -94,6 +94,8 @@ struct Config {
#[cfg(feature = "__tls")]
root_certs: Vec<Certificate>,
#[cfg(feature = "__tls")]
+ use_built_in_root_certi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The option name `use_built_in_root_certificates` is too lengthy and should be renamed, suggested to `tls_built_in_root_certs(bool)`, to prefix related options with their piece.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
seanmonstar__reqwest__1250 | seanmonstar/reqwest | 1,250 | defect | 42b31600c30609cb8df90c799fbfbd0c305e422d | 83fe62a43c5a27f48349f8a88ea156309484d619 | Support Deflate decoding | Also adds `deflate()` and `no_deflate()` methods.
One thing I should mention is that I was able to confirm that this works with `http://example.org` with the header `accept-encoding: deflate`. The same cannot be said about `httpbin.org/deflate` which fails with `deflate decompression error`. | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3d463f76c..30f83a6e2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -66,6 +66,7 @@ jobs:
- "feat.: blocking"
- "feat.: gzip"
- "feat.: brotli"
+ - "feat.: deflate"
- "feat... | 3 | 2 | 1 | [{"id": "G0", "claim": "The three duplicated detect_* methods (gzip, brotli, and the deflate variant added by this pull request) should be collapsed into a single fn detect_encoding(headers, encoding_str).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
seanmonstar__reqwest__1277 | seanmonstar/reqwest | 1,277 | defect | bbeb1ede4e8098481c3de6f2cafb8ecca1db4ede | 920d721771be38967bff978774fb367c99692954 | Allow overriding of DNS resolution to specified IP addresses(#561) | This change allows users to bypass the selected DNS resolver for
specific domains. The allows, for example, to make calls to a local TLS
server by rerouting a given domain to 127.0.0.1.
The approach I've taken for the design is to wrap the resolver in an
outer service. This leads to a fair amount of boilerplate c... | diff --git a/Cargo.toml b/Cargo.toml
index c47ab7e1cf..7ac023cb33 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -80,6 +80,7 @@ url = "2.2"
bytes = "1.0"
serde = "1.0"
serde_urlencoded = "0.7"
+itertools = "0.10.0"
# Optional deps...
diff --git a/src/async_impl/client.rs b/src/async_impl/client.rs
index cf0e547f2d... | 4 | 4 | 2 | [{"id": "G0", "claim": "Avoid adding the new itertools dependency just for the Either type, since reqwest already uses an Either from futures.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The resolve argument should be a plain SocketAddr rather than im... | null |
seanmonstar__reqwest__1319 | seanmonstar/reqwest | 1,319 | defect | 66c1b48167c428ec2aadf03fdea71a7b5f089750 | 310846008e5bc4936ec3b9a5f79c6b17dcd375d3 | Add TryFrom<Request> for HttpRequest<Body> | See #1258.
I'm not sure this is the right solution as opposed to a generic impl like the reverse conversion, but it's the only thing that made *some* sense given the `reqwest::Request` has its body as an `Option`. Ideas for an alternative signature / implementation would be appreciated.
I wanted to do `Response` ... | diff --git a/src/async_impl/request.rs b/src/async_impl/request.rs
index 504fd56f43..38929218fa 100644
--- a/src/async_impl/request.rs
+++ b/src/async_impl/request.rs
@@ -570,6 +570,31 @@ where
}
}
+impl TryFrom<Request> for HttpRequest<Option<Body>> {
+ type Error = crate::Error;
+
+ fn try_from(req: Req... | 1 | 1 | 0 | [{"id": "G0", "claim": "When turning a Request into an http::Request, the impl should decide whether the absent body is surfaced as None or filled with an empty body; the Option<Body> target is a tricky choice that should be resolved (jplatte's reply settles it as falling back to Body::empty, dropping the Option).", "c... | null |
seanmonstar__reqwest__1376 | seanmonstar/reqwest | 1,376 | defect | ab49de875ec2326abf25f52f54b249a28e43b69c | 05202a2162c8808d08b35ab0cce5b5c5c600cda1 | Add HTTP Upgrade support to Response. | This adds a new method, `Response::upgrade`, which consumes the given Response and returns a future for a possible HTTP upgrade. On success the future will yield a new type, `Upgraded` (a thin wrapper around hyper's `Upgraded` type), which implements `AsyncRead`/`AsyncWrite` over the underlying connection.
As part o... | diff --git a/Cargo.toml b/Cargo.toml
index e50bf7a248..e0328708f7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -230,3 +230,7 @@ required-features = ["deflate"]
name = "multipart"
path = "tests/multipart.rs"
required-features = ["multipart"]
+
+# TODO: Remove once a new version w/ https://github.com/hyperium/hyper/pul... | 2 | 1 | 0 | [{"id": "G0", "claim": "Any reason the upgrade method shouldn't just be an async fn instead of returning an impl Future (i.e. make it an async fn).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Whether reqwest should define its own independent Upgraded ... | null |
seanmonstar__reqwest__1388 | seanmonstar/reqwest | 1,388 | defect | 161d731892b978916ec8647002d43f0dfe40e8ea | 75a05ba33fcdf36f5e68123c538b03cc388794a4 | Support to rustls 0.20 | *Yet another attempt to support rustls 0.20*
Fix: #1363
Thanks to @satyarohith for the cross check with the related work.
*Some* changes (due to interface change in rustls):
* Parse of pem certificate and keys are now outside rustls. Used `rustls-pemfile`.
* Removed dependency `webpki::DNSNameRef`. Now it... | diff --git a/Cargo.toml b/Cargo.toml
index 5431dd7aaf..e460eb1045 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -70,7 +70,7 @@ __tls = []
# Enables common rustls code.
# Equivalent to rustls-tls-manual-roots but shorter :)
-__rustls = ["hyper-rustls", "tokio-rustls", "rustls", "__tls"]
+__rustls = ["hyper-rustls", "t... | 1 | 1 | 0 | [{"id": "G0", "claim": "The proc-macro-hack dependency the PR adds unconditionally to Cargo.toml would be better made an optional dependency, imported only with the cookies feature.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
seanmonstar__reqwest__1760 | seanmonstar/reqwest | 1,760 | defect | bb8fec4782d764f67633bd414e6a513e2dffee25 | e063ad2c48b44918f4328dc49203ec1fa9e97ead | feat(wasm): support request timeout | Thanks for PR #1755, making wasm timeout support is super easy now.
fixes #1135 supersede #1274 | diff --git a/Cargo.toml b/Cargo.toml
index 6dd3f16390..9f1343a57c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -150,6 +150,7 @@ winreg = "0.10"
# wasm
[target.'cfg(target_arch = "wasm32")'.dependencies]
+gloo-timers = "0.2.6"
js-sys = "0.3.45"
serde_json = "1.0"
wasm-bindgen = "0.2.68"
diff --git a/src/wasm/clien... | 2 | 2 | 2 | [{"id": "G0", "claim": "Taking on the gloo-timers dependency is unnecessary (js-sys/wasm-bindgen already provide what is needed); the timeout should instead be implemented in reqwest itself, e.g. a Timeout over web-sys/wasm-bindgen timer calls that is cleared on drop.", "category": "design", "verdict": "supported", "pr... | null |
seanmonstar__reqwest__219 | seanmonstar/reqwest | 219 | defect | 99e7f7a1b05c952eef46372de70dfae2a732c374 | da7459a7691b0c1430df329fb2c315223dfc2bb7 | Add Response::text() | Close #86
### Remained question:
~Should `Response::text()` and `Response::copy_to` return `reqwest::Result` instead of `io::Result`?~ | diff --git a/src/response.rs b/src/response.rs
index a8f81e3149..d84de5ad56 100644
--- a/src/response.rs
+++ b/src/response.rs
@@ -165,6 +165,26 @@ impl Response {
serde_json::from_reader(self).map_err(::error::from)
}
+ /// Get the response text.
+ ///
+ /// # Example
+ ///
+ /// ```rust... | 2 | 1 | 1 | [{"id": "G0", "claim": "Response::text() should give the Content-Length header an upper bound before using it to pre-allocate the String, just to be a little defensive.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since text() and copy_to() are shor... | null |
seanmonstar__reqwest__2529 | seanmonstar/reqwest | 2,529 | defect | 3099f30f089854f8109c49e13898d2f88b9fc0f2 | 1272978ac1e48bd545e05b95ccf4934ad4a668f4 | tests: serialize tests that read/write the same environment variable | This avoids race conditions between tests that change the same environment variable, and fixes flaky test failures in multi-threaded environments present since since #2442.
Also updates the comment in Cargo.toml for the `__internal_proxy_sys_no_cache` feature, which is a noop since that PR landed, and is only presen... | diff --git a/Cargo.toml b/Cargo.toml
index e2fd14b9f..1f25b42c1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -95,7 +95,7 @@ __tls = ["dep:rustls-pemfile", "tokio/io-util"]
__rustls = ["dep:hyper-rustls", "dep:tokio-rustls", "dep:rustls", "__tls", "dep:rustls-pemfile", "dep:rustls-pki-types"]
__rustls-ring = ["hyper-ru... | 1 | 1 | 0 | [{"id": "G0", "claim": "The unused `__internal_proxy_sys_no_cache` feature should not be kept in Cargo.toml at all, since its double underscores and even the \"internal\" prefix should indicate it is not meant to be touched.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existi... | null |
seanmonstar__reqwest__256 | seanmonstar/reqwest | 256 | defect | f241fce38d0bf059badb9587ffbd6bc91d62df98 | 25378d61741190b9a45bb05a3840a0893f263b68 | Detect encoding and decode text response | Fixes #246 | diff --git a/Cargo.toml b/Cargo.toml
index fdcaa89ba..0dfad6bc2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,6 +11,7 @@ categories = ["web-programming::http-client"]
[dependencies]
bytes = "0.4"
+encoding_rs = "0.7"
futures = "0.1.15"
hyper = "0.11.9"
hyper-tls = "0.1.2"
@@ -27,6 +28,7 @@ tokio-tls = "0.1"
u... | 4 | 4 | 3 | [{"id": "G0", "claim": "The `uchardet` crate does not compile on the `x86_64-pc-windows-gnu` and `i686-pc-windows-gnu` targets, so it should be feature-gated or encoding detection removed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Decoding with... | null |
seanmonstar__reqwest__2673 | seanmonstar/reqwest | 2,673 | defect | 10ba9f370329a3abafa95090442915ea1c86bf55 | a40426c1d2c0d51e9e2cae8376e7852ff60594c0 | Support streaming request body in HTTP/3 | This PR replaces `.as_bytes()` with `.poll_frame()` to support both `Inner::Reusable` and `Inner::Streaming` body variants.
Resolves another item in https://github.com/seanmonstar/reqwest/issues/2303 | diff --git a/src/async_impl/h3_client/pool.rs b/src/async_impl/h3_client/pool.rs
index 0926fb3cf..e996daafd 100644
--- a/src/async_impl/h3_client/pool.rs
+++ b/src/async_impl/h3_client/pool.rs
@@ -209,7 +209,7 @@ impl PoolClient {
) -> Result<Response<ResponseBody>, BoxError> {
use hyper::body::Body as _;... | 1 | 1 | 1 | [{"id": "G0", "claim": "The request body should be sent on a separate task so that sending the full body does not block receiving the response and the streams can be fully duplex.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
seanmonstar__reqwest__2697 | seanmonstar/reqwest | 2,697 | defect | 99259cb8b5ad3f5c727cf4025e633c6b1402f2e5 | 92e296c537272c1cb257146b0d79c4e1a58760a9 | feat: report custom reason phrase in error message | Closes #2565. Add an extra variant `Kind::StatusReason` to hold reason phrase. But it's only checked in `async_impl` and not `blocking` and `wasm` because I'd like to receive comment on this before doing the chores. Not sure if it breaks HTTP2/HTTP3. | diff --git a/src/async_impl/response.rs b/src/async_impl/response.rs
index a93a4d231..b2c8d8567 100644
--- a/src/async_impl/response.rs
+++ b/src/async_impl/response.rs
@@ -386,7 +386,15 @@ impl Response {
pub fn error_for_status(self) -> crate::Result<Self> {
let status = self.status();
if statu... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new Kind::StatusReason(StatusCode, String) variant should be dropped in favour of a single Status variant that stores an optional hyper::ext::ReasonPhrase and prints it only when present.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
seanmonstar__reqwest__2716 | seanmonstar/reqwest | 2,716 | defect | f94c5cd55634779f481c2441e75219225e3d455d | 79c16cb5e9b3647eacff08aef6424179152eff0f | Remove some unused dependencies | Remove an unused dependency, and make others optional to only the feature they're needed for.
This is achieved through enabling the `unused_crate_dependencies` lint (only for non-dev-deps), and checking with `cargo hack check --each-feature`.
Towards https://github.com/seanmonstar/reqwest/issues/2712.
See indi... | diff --git a/Cargo.toml b/Cargo.toml
index d24365d42..9d906ddc9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -53,7 +53,7 @@ rustls-tls-native-roots = ["rustls-tls-native-roots-no-provider", "__rustls-ring
blocking = ["dep:futures-channel", "futures-channel?/sink", "dep:futures-util", "futures-util?/io", "futures-util... | 3 | 1 | 0 | [{"id": "G0", "claim": "Switching tests/proxy.rs to std::sync::LazyLock breaks reqwest's stated MSRV of 1.64, since LazyLock requires a newer Rust.", "category": "correctness", "verdict": "opposed", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "If the multipart tests passed before, the newly added `u... | null |
seanmonstar__reqwest__2858 | seanmonstar/reqwest | 2,858 | defect | a97e1956dd14a79b0207082e327098331519bf2b | 4d000242f7748b54253c5b7beb002a32e62e2ae5 | Make `serde` optional by introducing `query`, `form` features, and re-working WASM header parsing | Resolves #2823
These changes allow using reqwest without `serde` (and even `syn` for a good number of features).
First commit wraps the `RequestBuilder::query()` and `RequestBuilder::form()` methods in new feature flags: `query`, `form`.
Second commit removes the use of `serde_json` for WASM header parsing, in... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e8890c836a..f5d1a92127 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -83,6 +83,8 @@ jobs:
- "feat.: gzip"
- "feat.: brotli"
- "feat.: deflate"
+ - "feat.: query"
+ - "feat.... | 1 | 1 | 1 | [{"id": "G0", "claim": "query and form should not be enabled by default, like JSON, unless they are common enough for most users.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
seanmonstar__reqwest__2908 | seanmonstar/reqwest | 2,908 | defect | 9a9daa7921dc875b90dd1798d2edbd86e476a30a | f536c6c67c4a6978c887e8d34a991cb669d2e19b | fix(json): custom content-type overidden by json method for wasm | Addressing this issue https://github.com/seanmonstar/reqwest/issues/1827 for wasm.
In WASM, calling `.json(payload)` currently overwrites any existing Content-Type header with `application/json`. This PR prevents that override, preserving a user-defined Content-Type while still defaulting to `application/json` when ... | diff --git a/src/wasm/request.rs b/src/wasm/request.rs
index 5de3ddbb3..e3ad53b00 100644
--- a/src/wasm/request.rs
+++ b/src/wasm/request.rs
@@ -235,8 +235,10 @@ impl RequestBuilder {
if let Ok(ref mut req) = self.request {
match serde_json::to_vec(json) {
Ok(body) => {
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use the headers entry() API instead of a contains_key lookup followed by insert, so the CONTENT_TYPE header is not looked up twice in the wasm json method.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
seanmonstar__reqwest__390 | seanmonstar/reqwest | 390 | defect | 4aa34bb5916a70e8216e5198cea278d42967d74b | 70778f380aa009d95bc0db4ae71351de75eb7a12 | Add rustls support | close #378 | diff --git a/Cargo.toml b/Cargo.toml
index 65af02a68..b817d53ac 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,15 +30,23 @@ tokio = "0.1.7"
tokio-io = "0.1"
url = "1.2"
uuid = { version = "0.7", features = ["v4"] }
+hyper-rustls = { version = "*", optional = true }
+tokio-rustls = { version = "*", optional = true }... | 2 | 2 | 2 | [{"id": "G0", "claim": "Split the error `Kind::Tls` variant into separate `NativeTls` and `Rustls` variants so the crate works when both `default-tls` and `rustls-tls` features are enabled, since crate features are additive.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"... | null |
seanmonstar__reqwest__545 | seanmonstar/reqwest | 545 | defect | 9f256405e57966de82a24f466d75604d2d2fafe2 | f937f1c76bac76f19aa982c22952ccbf2b83f934 | Added support for sending requests with streaming Body | This PR fixes #543
I tried to make it minimal, could you please review?
I need it also for #541 and #542 because there is no way to upload a large file from within the executor. | diff --git a/Cargo.toml b/Cargo.toml
index 67c199043..203073138 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -27,7 +27,7 @@ mime_guess = "2.0.0-alpha.6"
serde = "1.0"
serde_json = "1.0"
serde_urlencoded = "0.5"
-tokio = { version = "0.1.7", default-features = false, features = ["rt-full", "tcp"] }
+tokio = { version ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The tokio \"fs\" feature should be enabled only as a dev-dependency, since reqwest does not otherwise need the extra code inside the library.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
seanmonstar__reqwest__552 | seanmonstar/reqwest | 552 | defect | e16aed5e3c90cfc8d8b58d00ed30f814c6d159a6 | b25786297591dca39147e42818bf646188060495 | Sync Response::text() & Response::json() call their async version | Based on #551, closes #550
I am not sure this is the right approach. | diff --git a/src/async_impl/decoder.rs b/src/async_impl/decoder.rs
index 1ec034e5bd..7aa684887c 100644
--- a/src/async_impl/decoder.rs
+++ b/src/async_impl/decoder.rs
@@ -142,14 +142,6 @@ impl Decoder {
Decoder::plain_text(body)
}
}
-
-
- pub(crate) fn content_length(&self) -> Option<u64> ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new Text future struct in src/async_impl/response.rs does not need to be public.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In sync Response::json it would be better to use the helper from the wait module instead ... | null |
seanmonstar__reqwest__791 | seanmonstar/reqwest | 791 | defect | 76ca042faf5cf91322ddde9c65a3faec37875a24 | 7a5c2cd2dbbdfacc2d0c314926d66b1c127093b3 | Brotli support | closes #772 | diff --git a/Cargo.toml b/Cargo.toml
index d6f63b06bd..a0792df361 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,6 +41,8 @@ cookies = ["cookie_crate", "cookie_store"]
gzip = ["async-compression"]
+brotli = ["async-compression"]
+
json = ["serde_json"]
#trust-dns = ["trust-dns-resolver"]
@@ -103,7 +105,7 @@ co... | 4 | 4 | 2 | [{"id": "G0", "claim": "Adding both \"gzip\" and \"brotli\" to the async-compression dependency's features means brotli and gzip are both enabled even if only one is desired; the reqwest features should instead each enable only their own async-compression subfeature (gzip = [\"async-compression\", \"async-compression/g... | null |
seanmonstar__warp__1149 | seanmonstar/warp | 1,149 | defect | 3449d3d9816ea3898059e62b5325716c1cc27c8b | ae123e849463c5b807a14421e38a0629f0c46215 | feat: reimplement `warp::addr::remote()` filter | Reimplements `warp::addr::remote()` filter and enables the `warp::addr` module, which was disabled during the upgrade to hyper v1.
Let me know if there's something missing, or you prefer a different implementation.
Closes https://github.com/seanmonstar/warp/issues/1127. | diff --git a/Cargo.toml b/Cargo.toml
index 163b11525..1acc960d4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -163,6 +163,10 @@ required-features = ["websocket", "server"]
name = "websockets_chat"
required-features = ["websocket", "server"]
+[[test]]
+name = "addr"
+required-features = ["test"]
+
[[test]]
name = "b... | 1 | 1 | 1 | [{"id": "G0", "claim": "The remote address should be stored as a separate newtype, `pub(crate) struct RemoteAddr(SocketAddr)`, so the extension does not conflict with anyone else setting a plain `SocketAddr` extension and other named extensions for socket addresses remain possible.", "category": "design", "verdict": "s... | null |
seanmonstar__warp__336 | seanmonstar/warp | 336 | defect | fb64f24b6126efc618ca04a29acf1a7d4737c33c | e0917287694545099b8ce84ced6ce2b05bcf8046 | Update to hyper 0.13/tokio 0.2 | - [x] [headers](https://github.com/hyperium/headers) released with http 0.2
I got rid of a few `'static` bounds from server.rs to get the `unix_socket` example builduing, but it seems like most of the others are unnecessary as well? | diff --git a/Cargo.toml b/Cargo.toml
index 394d09269..bdc4ca22d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,12 +19,12 @@ publish = false # while in pre-0.2.x alpha dev
features = ["tls"]
[dependencies]
-bytes = "0.4.8"
-futures-preview = "0.3.0-alpha.19"
-futures-util-preview = "0.3.0-alpha.19"
-headers = "0.2"... | 4 | 3 | 1 | [{"id": "G0", "claim": "The `.expect(\"FIXME\")` on the spawn_blocking result should instead get its own rejection.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "jxs asks for the rationale behind switching the websocket test channels from tokio's mpsc/o... | null |
seanmonstar__warp__430 | seanmonstar/warp | 430 | defect | 01725e93e1fc1c47a5c76229e7745f32b200f03a | 1609b288a3c305610692cb48d0ad0fe4e60f4055 | Websocket filter with tokio-tungstenite | I tried to add support for `tokio-tungstenite` in the websocket filter. The only difference in the internal api is that `WebSocket::from_raw_websocket` now returns a Future.
The main problem right now is that the `tokio-tungstenite` dependency is from the github repository because the version on crates.io uses futu... | diff --git a/Cargo.toml b/Cargo.toml
index 2aa00e0e9..7293f62f6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -34,7 +34,7 @@ tokio = { version = "0.2", features = ["blocking", "fs", "stream", "sync", "time
tower-service = "0.3"
rustls = { version = "0.16", optional = true }
# tls is enabled by default, we don't want t... | 5 | 5 | 0 | [{"id": "G0", "claim": "The with_context helper is no longer needed since it was only used to pass the Context to Read and Write; the code can just call Pin::new(&mut self) directly instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The i... | null |
seanmonstar__warp__60 | seanmonstar/warp | 60 | defect | fbbbd4602485fb75aaa2bb13f93e439af122fa2a | bd1f0e05f0147b1df75916b3b2d09549212304c8 | Add cause to Rejection (WIP) | Discussions: #37, #33
It doesn't break anything, I've just added an error cause to a Rejection
- [x] Add an error cause to Rejection
- [x] Serialize Rejection into JSON
- [x] Combine rejections with causes
- [x] Use an rejection's error inside filters | diff --git a/src/filters/body.rs b/src/filters/body.rs
index 3809207c4..19868a720 100644
--- a/src/filters/body.rs
+++ b/src/filters/body.rs
@@ -25,8 +25,9 @@ pub(crate) fn body() -> impl Filter<Extract=(Body,), Error=Rejection> + Copy {
.take_body()
.map(Ok)
.unwrap_or_else(|| {
... | 3 | 3 | 3 | [{"id": "G0", "claim": "Requiring `T::Err: Into<::reject::Cause>` on `path::param` is a breaking change for existing users.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Ordering (PartialOrd/Ord) should not be part of the public API of `Rejection`; the ... | null |
seanmonstar__warp__656 | seanmonstar/warp | 656 | defect | 3e7ed49ad290fc315c99213db4af3dd949a1a6c5 | c7c1828c089a86878c9d237d2b30d65276167a02 | Add filters for emitting Tracing diagnostics | The `tracing` crate and related libraries provide an interface for Rust
libraries and applications to emit and consume structured, contextual,
and async-aware diagnostic information. `tracing` is maintained by the
Tokio project and is becoming widely adopted by other libraries in the
stack Warp uses, such as [`hype... | diff --git a/Cargo.toml b/Cargo.toml
index 02409fce6..f4273f024 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,6 +32,8 @@ serde = "1.0"
serde_json = "1.0"
serde_urlencoded = "0.6"
tokio = { version = "0.2", features = ["fs", "stream", "sync", "time"] }
+tracing = { version = "0.1", default-features = false, feature... | 4 | 3 | 0 | [{"id": "G0", "claim": "The doc example calls `.with(warp::trace::request)` without parentheses; it should be `warp::trace::request()`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `Spans` intra-doc link in the module docs is malformed - the... | null |
seanmonstar__warp__676 | seanmonstar/warp | 676 | defect | 9ca48a213aba961dce7f53200e7b07e2167de993 | 602c36e7d3f3d51771bbd6c36b3045a61ee6bbde | Add host filters | Resolves issue https://github.com/seanmonstar/warp/issues/432.
Obsoletes PR https://github.com/seanmonstar/warp/pull/489 (better logic, added tests and documentation).
cc @dmeijboom
@jxs, I'd appreciate a review. | diff --git a/src/filters/authority.rs b/src/filters/authority.rs
new file mode 100644
index 000000000..86b517ec3
--- /dev/null
+++ b/src/filters/authority.rs
@@ -0,0 +1,92 @@
+//! Authority (aka `Host` header) filter
+//!
+use crate::filter::{filter_fn_one, Filter, One};
+use crate::reject::{self, Rejection};
+use futu... | 3 | 2 | 0 | [{"id": "G0", "claim": "Since this filter requires a match, its name should indicate that, e.g. `required`, `guard`, or `exact` (as used in `warp::header::exact`).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Because checking the headers requires a has... | null |
seanmonstar__warp__697 | seanmonstar/warp | 697 | defect | 75a466d9a2426831a0573e9a6f035c58dba9a5ed | 3216d9d1403c8d4fd9ac0b20250bf1eed361ce16 | Fix #568 | This is difficult to reproduce, the provided code snippet in the issue did not run (mismatched parens etc)
The full code snippet that I believe the issue author was trying to provide would look more like:
```
use warp::Filter;
#[tokio::main]
async fn main() {
let static_server = warp::get()
.an... | diff --git a/src/route.rs b/src/route.rs
index 8eed7d79f..214a499d7 100644
--- a/src/route.rs
+++ b/src/route.rs
@@ -95,14 +95,13 @@ impl Route {
pub(crate) fn set_unmatched_path(&mut self, index: usize) {
let index = self.segments_index + index;
-
let path = self.req.uri().path();
-
- i... | 2 | 2 | 0 | [{"id": "G0", "claim": "A request URI path without a leading slash (the #568 'todos.rs' case and the related #460 'localhost' case) reaches set_unmatched_path with an empty path and produces an out-of-bounds panic on the debug_assert_eq!(path.as_bytes()[index], b'/') check, so the fix should perhaps be located in tail.... | null |
seanmonstar__warp__753 | seanmonstar/warp | 753 | defect | cca5b54a48bd846ae0fcff91eafd6681f1cd9f7d | fc71e963c6cb88bc5e85802febbec343e93e606a | Upgrade to Tokio 1.0 | Similar to @Urhengulas' PR #741, although more complete, this PR aims to upgrade to Tokio v1.0.
I can successfully run all tests with all features enabled: `cargo test --all-features`.
This is my first time trying to contribute to warp, and I'm not super familiar with the internals, so please consider it a best e... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 246bbd0ec..e5f1ac581 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -45,8 +45,8 @@ jobs:
benches: true
- build: tls
features: "--features tls"
- - build: uds
- feature... | 10 | 7 | 2 | [{"id": "G0", "claim": "The async-compression dependency should not be pinned to a git revision of a fork (the rev was just tracking master); it can be switched to the official released version (0.3.7).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
seanmonstar__warp__775 | seanmonstar/warp | 775 | defect | c8964b1d3a0a14ca8e167fedc5d6df7a3bbafdb5 | 3bae3ecdad654e3c3145674a6387f2f1214e2ebe | Add `close_frame` function to `ws::Message` | (Partially) resolves #774 | diff --git a/src/filters/ws.rs b/src/filters/ws.rs
index bbd1836d2..d80cc1e26 100644
--- a/src/filters/ws.rs
+++ b/src/filters/ws.rs
@@ -324,6 +324,21 @@ impl Message {
self.inner.is_pong()
}
+ /// Try to get the close frame (close code and reason)
+ pub fn close_frame(&self) -> Result<Option<(u16... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new close_frame should return a plain Option<(u16, &str)> instead of Result<Option<(u16, &str)>, ()> because the () error type carries no meaning, and possibly to_str should return Option as well for consistency.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "int... | null |
seanmonstar__warp__919 | seanmonstar/warp | 919 | defect | d73dc543019448ef589d1cfd4a547d22a1a7cf8a | d605a8967d6094841d787ac1d9b15fc4e38c9535 | Add option to ignore content-length with multipart body | The current implementation of `multipart::form` requires that the `Content-Length` header exists. However, there are valid situations where this is not the case, for example when `Transfer-Encoding` header is present. See e.g. [RFC2616, section 4.4](https://datatracker.ietf.org/doc/html/rfc2616#section-4.4).
This PR... | diff --git a/src/filters/multipart.rs b/src/filters/multipart.rs
index 00948cb22..a89c40c80 100644
--- a/src/filters/multipart.rs
+++ b/src/filters/multipart.rs
@@ -27,7 +27,7 @@ const DEFAULT_FORM_DATA_MAX_LENGTH: u64 = 1024 * 1024 * 2;
/// Create with the `warp::multipart::form()` function.
#[derive(Debug, Clone)]
... | 3 | 3 | 0 | [{"id": "G0", "claim": "This change should rather be implemented as part of PR #846 instead of as a separate pull request.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The API should use `max_length(impl Into<Option<u64>>)` instead of a separate `no_ma... | null |
searchkit__searchkit__1256 | searchkit/searchkit | 1,256 | defect | 26a3995dc383e2622d3d986c8af4b25773ef50bb | 072133146654b329f3e043f14f32bc8641be3354 | feat: add support for negative numbers and numeric ranges | Fixes an issue in `transformNumericFilters` where negative values were rejected - e.g. `discount<-10` and adds support for the numeric range format detailed here: https://www.algolia.com/doc/api-reference/api-parameters/numericFilters/#numeric-range | diff --git a/packages/searchkit/src/___tests___/filters.test.ts b/packages/searchkit/src/___tests___/filters.test.ts
index 1fe151511..496140f80 100644
--- a/packages/searchkit/src/___tests___/filters.test.ts
+++ b/packages/searchkit/src/___tests___/filters.test.ts
@@ -1,4 +1,4 @@
-import { transformBaseFilters } from '... | 2 | 2 | 1 | [{"id": "G0", "claim": "Malformed numeric filter strings are silently ignored instead of raising an error, and they should throw an exception.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The bare `value` expression statement inside the `if (group... | null |
searchkit__searchkit__854 | searchkit/searchkit | 854 | defect | 938636cc615bbab2c2d40363aaa4c45a92b5e8e0 | fd49658b44cedbabeee8a38e390c7b7a801cd7cb | breaking: full es query control from Query interfaces | Fixes #851 | diff --git a/packages/searchkit-schema/src/core/FacetsFns.ts b/packages/searchkit-schema/src/core/FacetsFns.ts
index fcf434fce..7c477b44a 100644
--- a/packages/searchkit-schema/src/core/FacetsFns.ts
+++ b/packages/searchkit-schema/src/core/FacetsFns.ts
@@ -15,11 +15,7 @@ export const filterTransform = (
return sub... | 1 | 1 | 1 | [{"id": "G0", "claim": "Empty `query`/`post_filter` objects must be omitted from the ES request body — filterTransform and getFilter should return null instead of `{}` when there is nothing to filter — because an empty object is an invalid ES query.", "category": "correctness", "verdict": "supported", "priority": "P0",... | null |
searchkit__searchkit__880 | searchkit/searchkit | 880 | defect | 958ed263855f548efc1c5a246c7804ea75c76527 | d02ea144dafc2bd2b8fd1b212067b5092088379d | feat: Add highlight support for matched words | Implements feature discussed in https://github.com/searchkit/searchkit/issues/879
Setting highlightedFields in Searchkit config plus a customized ResultHit
graphql type and custom resolver one can request ElasticSearch to generate
highlights for matched words and expose it via graphql to the searchkit
clients.
... | diff --git a/packages/searchkit-cli/src/lib.ts b/packages/searchkit-cli/src/lib.ts
index 3335e5ab7..7894bd887 100644
--- a/packages/searchkit-cli/src/lib.ts
+++ b/packages/searchkit-cli/src/lib.ts
@@ -231,7 +231,7 @@ export const getSKQuickStartText = ({
mapping
}) => {
const mappingCall = {
- properties: m... | 1 | 1 | 0 | [{"id": "G0", "claim": "The highlight documentation the PR added to the README should also be added to the docs guides and mentioned in the API docs, with the README cut down to a link to the guide.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
searx__searx__1591 | searx/searx | 1,591 | defect | 45f58a4a2a0b89f4b416c28ea769139b16f6436d | fe256e004de8c6d79b0f6e7223ff9b37a7289202 | Feature/standalone searx update | - add standalone_searx to docs using autodoc
- test for module
- example on module docstring include how to run from cli or python console
- split the script to several group: argument parser, dict converter, search query getter
what is not on the pr:
setting SEARX_DEBUG to pass check from #2256 will break pti... | diff --git a/docs/conf.py b/docs/conf.py
index 66c20594dc..4b348ae0e1 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -87,6 +87,7 @@
# HTML -----------------------------------------------------------------
sys.path.append(os.path.abspath('_themes'))
+sys.path.insert(0, os.path.abspath("../utils/"))
html_theme_path... | 5 | 4 | 0 | [{"id": "G0", "claim": "The newly pinned mypy==0.790 dev dependency is not currently used, so it should not be added to requirements-dev.txt.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The module docstring should handle the SEARX_DEBUG error... | null |
searx__searx__1602 | searx/searx | 1,602 | defect | cbd1ebdce8f75730bee96fcfae8739e11023f9a9 | 2d925562833f7ae07472812f5e795f0e2227463e | Feature/fix new hmac | fix #1600 | diff --git a/searx/utils.py b/searx/utils.py
index dfa22c5fc0..bb8c0427f4 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -384,10 +384,14 @@ def load_module(filename, module_dir):
def new_hmac(secret_key, url):
+ try:
+ secret_key_bytes = bytes(secret_key, 'utf-8')
+ except TypeError:
+ sec... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the `except TypeError` branch of `new_hmac`, add a check that `secret_key` is indeed of `bytes` type before using it as the key bytes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
searx__searx__1640 | searx/searx | 1,640 | defect | 554a21e1d07f3b434b5097b4e3d49e1403be7527 | 4d7b98e6fb695bcb5b17a2cb8e7bb2157a2e4e69 | [enh] Add timeout limit per request | The new url parameter "timeout_limit" set timeout limit defined in second.
Example ```"timeout_limit=1.5"``` means the timeout limit is 1.5 seconds
In addition, the query can start with <[number] to set the timeout limit.
For number between 0 and 9, the number unit is the second :
Example: ```"<3 searx"``` mean... | diff --git a/searx/query.py b/searx/query.py
index 5265ac9146..0e15a417df 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -43,6 +43,7 @@ def __init__(self, query, disabled_engines):
self.query_parts = []
self.engines = []
self.languages = []
+ self.timeout_limit = None
sel... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment in searx/query.py documenting the units used by the <[num] timeout syntax (seconds vs centiseconds) so future readers are not misled.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
searx__searx__2189 | searx/searx | 2,189 | defect | 21dbc7e852a5c48097c0067e78f0600972e54823 | 485a502b886bc7fb8a806ffc576b0eec99990a5c | Architecture clean up | ## What does this PR do?
Architecture clean up.
### Overview
Some notes:
* There is no functional changes.
* Add ```__slots__``` to some classes to make clear the list of the attributes.
#### web
* searx.query
* searx.webadapter
* searx.webapp
* searx.autocomplete
* searx.preferences
#### core
* ... | diff --git a/searx/query.py b/searx/query.py
index 7c2b0a2493..2d5a72bcbb 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -20,9 +20,8 @@
import re
from searx.languages import language_codes
-from searx.engines import (
- categories, engines, engine_shortcuts
-)
+from searx.engines import categories, engines,... | 2 | 1 | 0 | [{"id": "G0", "claim": "asciimoo questions what the benefit is of moving SearchQuery from query.py to search.py, asking the author to justify the PR's reorganization.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The parameter-parsing functionality of t... | null |
searx__searx__2291 | searx/searx | 2,291 | defect | c03e4c86bc49d6ef4664c038066d9f1c16e7dafc | f09bd8fab9426211f04f21df08381816e36100a9 | [enh] user settings can relied on the default settings | ## What does this PR do?
This PR is backward compatible with the existing configurations.
It add a new option in settings.yml:
```
use_default_settings: true
```
This new option works only when settings.yml path is loaded from `/etc/searx/settings.yml` or the path defined by the SEARX_SETTINGS_PATH environm... | diff --git a/Makefile b/Makefile
index 2eeff85352..0b95fea8d1 100644
--- a/Makefile
+++ b/Makefile
@@ -265,4 +265,19 @@ test.clean:
travis.codecov:
$(Q)$(PY_ENV_BIN)/python -m pip install codecov
-.PHONY: $(PHONY)
+
+# user-settings
+# -------------
+
+PHONY += user-settings.create user-settings.update
+
+user-set... | 2 | 2 | 0 | [{"id": "G0", "claim": "The reviewer asks whether it would make sense to add `ruamel.yaml` to `requirements-dev.txt` instead of pip-installing it inline in the `user-settings.update` Makefile target.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
searx__searx__2319 | searx/searx | 2,319 | defect | 963b93b5433da09d00904fa231cbef209cbfbc45 | a07e5c53c392030253338f58751f038bc00c6d73 | [enh] Add multiple outgoing proxies | ## What does this PR do?
credits go to @bauruine see https://github.com/searx/searx/pull/1958
Add support for multiple outgoing proxies.
## Why is this change important?
Public instances require often use multi proxies.
Without this PR, an additional proxy / dispatch layer is required.
Moreover it provi... | diff --git a/docs/admin/settings.rst b/docs/admin/settings.rst
index 17dee4da8d..58bce35416 100644
--- a/docs/admin/settings.rst
+++ b/docs/admin/settings.rst
@@ -36,18 +36,26 @@ Global Settings
image_proxy : False # proxying image results through searx
default_locale : "" # default ... | 4 | 3 | 2 | [{"id": "G0", "claim": "The `if param_name == 'engine': pass` branch in load_engine should simply be removed instead of using `pass`, since nothing has to happen for the `engine` key.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The bare `#` l... | null |
searx__searx__2992 | searx/searx | 2,992 | defect | 53c4031f962b23bbaedce2498e0cf1c3f31a7bfe | 837028eca985c9920b71a5642c90d6ab0a5d1b8f | healthcheck endpoint | ## What does this PR do?
This PR adds a `/health` endpoint which does nothing more than returning plaintext `OK` response.
## Why is this change important?
It is useful for service discovery tools (consul/kubernetes etc.), to quickly say, that service is alive and running.
## How to test this PR locally?
... | diff --git a/searx/webapp.py b/searx/webapp.py
index 7edf21f8ad..681ee030be 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -584,6 +584,11 @@ def index():
)
+@app.route('/health', methods=['GET'])
+def health():
+ return Response('OK', mimetype='text/plain')
+
+
@app.route('/search', methods=['GET', ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the healthcheck endpoint from /health to /healthz, following the endpoint-naming convention.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
searxng__searxng__1306 | searxng/searxng | 1,306 | defect | 59ef9b9287f1beda12f7b9a20b93cbc378a22bac | 0e62dfacf787bd8d71516029ec4e3c7ac9ab4da6 | [fix] move locale code from webapp.py to locales.py and fix #1303 | To improve modularization this patch:
- moves *locale* related implementation from the webapp.py (application code) to the locale.py module.
- The initialization of the locales is now done in the application (webapp) and is no longer done while importing searx.locales.
In the searx.locales module a new dic... | diff --git a/searx/locales.py b/searx/locales.py
index 677b133349cf..1855ca950b12 100644
--- a/searx/locales.py
+++ b/searx/locales.py
@@ -9,61 +9,139 @@
import pathlib
from babel import Locale
+from babel.support import Translations
+import flask_babel
+import flask
+from flask.ctx import has_request_context
+from... | 3 | 3 | 1 | [{"id": "G0", "claim": "Move the locale initialization call from the top of webapp.py down into the initialization block at the bottom so all the initialization calls are grouped in one place.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the fun... | null |
searxng__searxng__2027 | searxng/searxng | 2,027 | defect | 0d4896170f5ea16d23c7acfa271d989c1ce53a8d | 7996c2e51ba49539550b69c8ee18c4d588bd9be0 | Add "auto" as a language. | ## What does this PR do?
Add a language choice "auto":

When selected, the choice remains "auto", however the result page displays which language was detected:
, and the reviewer asks whether min_probability is needed at all since threshold already covers it.", "category": "documentation", "verdict": "supported", "p... | null |
searxng__searxng__3871 | searxng/searxng | 3,871 | defect | f07ab6deb0f43a2d08f4f12335481825c6aa77ac | 2f17a40047abbbd98cfc67a819478a3fa6dfeae6 | [enh] engine: mojeek - add language support | ## What does this PR do?
Add language support to the Mojeek engines through the language restriction (`lr`) parameter. The parameter is marked as beta in the API specification (https://www.mojeek.com/support/api/search/request_parameters.html). However, in my experience the feature is working fine even for less comm... | diff --git a/searx/data/engine_traits.json b/searx/data/engine_traits.json
index c843161c1624..510c6e8ca2aa 100644
--- a/searx/data/engine_traits.json
+++ b/searx/data/engine_traits.json
@@ -5894,6 +5894,171 @@
"zu-ZA": "ZA"
}
},
+ "mojeek": {
+ "all_locale": null,
+ "custom": {},
+ "data_type"... | 5 | 4 | 0 | [{"id": "G0", "claim": "The engine should set the send_accept_language_header property to True so Mojeek receives an Accept-Language header.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fetch_traits request to the preferences page should carry the ... | null |
searxng__searxng__3932 | searxng/searxng | 3,932 | defect | cf7627557ab29e31efbf4a0719d1083592e22242 | 8bdbe613982614bb88be37bf462609e536da2ca8 | [enh] use longest title and fix get_ordered_results() | ## What does this PR do?
<!-- MANDATORY -->
<!-- explain the changes in your PR, algorithms, design, architecture -->
Make sure that when multiple engines get the same result, the longest title will be used.
This was already done for 'description'.
## Why is this change important?
Some engines might retur... | diff --git a/searx/results.py b/searx/results.py
index 7c973ca8f79a..82879ea85e14 100644
--- a/searx/results.py
+++ b/searx/results.py
@@ -10,8 +10,7 @@
from searx import logger
from searx.engines import engines
-from searx.metrics import histogram_observe, counter_add, count_error
-
+from searx.metrics import hist... | 1 | 1 | 0 | [{"id": "G0", "claim": "The metrics_initialize() call in ResultContainer.__init__ is unnecessary; metrics should be initialized by the initialize call in the searx.search package.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
searxng__searxng__3948 | searxng/searxng | 3,948 | defect | 3e87354f0ea62d5e2cf22bba136f0e5fdf71cb81 | 9e7823df67f2f5bef9400b9adf0408467d469729 | [feat] rss: add xsl style to view rss in browser | ## What does this PR do?

## Why is this change important?
- this allows viewing the rss in the browser without downloading it (to test it for example)
- see #897
## How to test this PR locally?
- enable the rss output forma... | diff --git a/searx/static/themes/simple/xsl/rss.xsl b/searx/static/themes/simple/xsl/rss.xsl
new file mode 100644
index 000000000000..7de7f8037be8
--- /dev/null
+++ b/searx/static/themes/simple/xsl/rss.xsl
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Trans... | 3 | 3 | 0 | [{"id": "G0", "claim": "The inline <style> block in the generated rss.xsl HTML is unnecessary and the styling should instead be implemented in the theme's LESS workflow.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The opensearch RSS feed emit... | null |
searxng__searxng__5074 | searxng/searxng | 5,074 | defect | f32e91e51aeda37cdb0dbfe2af15db27e10c06a7 | d8c5cf9b9b273b02ecc122411d128f901cdd710b | [feat] engines: add Github Code Search engine | ## What does this PR do?
Adds an engine to query Github repositories using the [Github Code Search API](https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28#search-code). For motivation see `Why is this change important?`.
Since the security is important for the project I tried to make sure to ad... | diff --git a/AUTHORS.rst b/AUTHORS.rst
index ef0800bb0672..23d8d6db6cf5 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -178,3 +178,4 @@ features or generally made SearXNG better:
- `Bearz314 <https://github.com/bearz314>`_
- Tommaso Colella `<https://github.com/gioleppe>`
- @AgentScrubbles
+- Filip Mikina `<https://g... | 2 | 1 | 1 | [{"id": "G0", "claim": "Switching code_highlighter to implicit filename-based lexer selection is problematic: callers should stay explicit about the language, and when no language can be detected the code should fall back silently instead of emitting a pygments 'no lexer for filename' warning for files like settings.ym... | null |
searxng__searxng__5131 | searxng/searxng | 5,131 | defect | 6b57705e50875d9348c855700994395ce8a55b43 | cfb6a7d61cfe3a485591852d55600263274f1126 | [mod] typification of SearXNG: add new result type Code | This patch adds a new result type: Code
- Python class: searx/result_types/code.py
- Jinja template: searx/templates/simple/result_templates/code.html
- CSS (less) client/simple/src/less/result_types/code.less
----
This PR is based on https://github.com/searxng/searxng/pull/5074
| diff --git a/docs/conf.py b/docs/conf.py
index a7221e48b583..2d730f58c309 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -150,6 +150,7 @@ def source_read(app, docname, source):
"linuxdoc" : ("https://return42.github.io/linuxdoc/", None),
"sphinx" : ("https://www.sphinx-doc.org/en/master/", None),
"valke... | 5 | 5 | 0 | [{"id": "G0", "claim": "The HTML rendering should always set Pygments' `wrapcode` to True so the highlighted block is semantically declared as a code element (better accessibility), even though it does not change the visible formatting.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
seatgeek__thefuzz__10 | seatgeek/thefuzz | 10 | defect | 9623bda89742344c7738790f32d05672911afc0e | 48f58dce2a959db668a2469008d5f65b4161e824 | replace python-Levenshtein with rapidfuzz | The pull request replaces python-Levenshtein with rapidfuzz, while still keeping the pure python fallback. This change has the following reasons:
- Python-Levenshtein / StringMatcher.py are the only parts of the library which require the GPL license. Over the years there have been multiple requests for a more open lic... | diff --git a/setup.py b/setup.py
index 32b567d..6a69028 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ def open_file(fname):
author='Adam Cohen',
author_email='adam@seatgeek.com',
packages=['thefuzz'],
- extras_require={'speedup': ['python-levenshtein>=0.12']},
+ extras_require={'speedup': ... | 2 | 2 | 1 | [{"id": "G2", "claim": "The license could perhaps already be updated in this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G3", "claim": "The new process code breaks because rapidfuzz does not yet support generators in process.extract.", "category": "co... | null |
seaweedfs__seaweedfs-operator__216 | seaweedfs/seaweedfs-operator | 216 | defect | 9bac6c0c8cec92e6d0ed6fd1659bf0b5390df4e3 | 4b660b5341038c5fae35dd1772de216747f1ad60 | fix(admin): forward credentialsSecret to weed admin env variables | ## Summary
- Resolves #215 — `spec.admin.credentialsSecret` was mounted at `/etc/sw/admin` but its keys were never passed to `weed admin`, so the UI always booted with `Authentication: Disabled`.
- `buildAdminStartupScript` now prepends a POSIX-sh loop that reads each well-known key (`adminUser`, `adminPassword`, `read... | diff --git a/internal/controller/controller_admin_statefulset.go b/internal/controller/controller_admin_statefulset.go
index 47e38126..3dd06b88 100644
--- a/internal/controller/controller_admin_statefulset.go
+++ b/internal/controller/controller_admin_statefulset.go
@@ -12,6 +12,16 @@ import (
seaweedv1 "github.com/s... | 4 | 2 | 1 | [{"id": "G0", "claim": "When no credentials secret is configured, buildAdminStartupScript returns the command without an `exec` prefix, so weed is not exec'd as PID 1 and may not receive SIGTERM directly from the kubelet; the reviewer asks that `exec` always be used for proper signal handling.", "category": "correctnes... | null |
seaweedfs__seaweedfs-operator__222 | seaweedfs/seaweedfs-operator | 222 | defect | 97040411e2ed63eaf321b9d3bd4b1a3bfa83c5fd | ec816d115f16981a53c9c1bf5cc10c464a177cfd | Add periodic Bucket usage stats refresh | ## Summary
Adds a leader-elected background loop that periodically refreshes
\`status.usage\` (object count, total bytes, last-updated timestamp) on
every \`Bucket\`. Off the main reconcile path so high filer load and the
stat-refresh cadence are decoupled — the spec reconciler stays fast and
usage stats become eventu... | diff --git a/README.md b/README.md
index 99c80cac..d30efd6e 100644
--- a/README.md
+++ b/README.md
@@ -285,11 +285,21 @@ enabled, and the "no return to Off" versioning transition rule.
See the `config/samples/seaweed_v1_bucket*.yaml` files for end-to-end
examples (minimal, full-featured, object lock, cross-namespace)... | 2 | 2 | 2 | [{"id": "G0", "claim": "The collectionListLine regex is too strict about field order and adjacency, so a future field inserted between volumeCount and size in `collection.list` output would make it fail to match and skip the bucket's usage stats; consider a more flexible regex allowing arbitrary characters between the ... | null |
seaweedfs__seaweedfs-operator__245 | seaweedfs/seaweedfs-operator | 245 | defect | f4c826a5ca36d7f83e9bbd69df26c072f0c7be18 | 90bd74cc2d241468866dbeafecccc9bcdec18392 | feat(crd): add per-component serviceAccountName (closes #244) | ## Summary
- Add optional `serviceAccountName` to `ComponentSpec` so master/volume/filer/admin/worker/S3/SFTP pods can each run under a dedicated ServiceAccount instead of the namespace's default SA.
- Wire the field through `ComponentAccessor.BuildPodSpec()` — unset preserves the prior behavior (empty pod-spec field, ... | diff --git a/api/v1/component_accessor.go b/api/v1/component_accessor.go
index 7d555d6f..f367169f 100644
--- a/api/v1/component_accessor.go
+++ b/api/v1/component_accessor.go
@@ -15,6 +15,7 @@ type ComponentAccessor interface {
HostNetwork() bool
Affinity() *corev1.Affinity
PriorityClassName() *string
+ ServiceAc... | 3 | 2 | 2 | [{"id": "G0", "claim": "buildTopologyPodSpec in internal/controller/controller_volume_statefulset.go manually constructs the PodSpec and does not propagate ServiceAccountName, so setting serviceAccountName on a volumeTopology entry has no effect; the field should be propagated to the rendered PodSpec.", "category": "co... | null |
seaweedfs__seaweedfs-operator__247 | seaweedfs/seaweedfs-operator | 247 | defect | f4c826a5ca36d7f83e9bbd69df26c072f0c7be18 | 203edbc97257e83b3e27ae3158274851d670bf3a | feat(api): add custom pod labels per component | ## Summary
- Adds `labels` to `SeaweedSpec` (cluster-wide) and `ComponentSpec` (per master/filer/volume/admin/worker/s3/sftp, plus volume topologies), mirroring the existing `annotations` shape.
- Operator-managed selector labels (`app.kubernetes.io/{name,instance,component,managed-by}`) always win on key collisions, s... | diff --git a/api/v1/component_accessor.go b/api/v1/component_accessor.go
index 7d555d6f..817c6ee0 100644
--- a/api/v1/component_accessor.go
+++ b/api/v1/component_accessor.go
@@ -17,6 +17,7 @@ type ComponentAccessor interface {
PriorityClassName() *string
NodeSelector() map[string]string
Annotations() map[string]... | 2 | 2 | 1 | [{"id": "G0", "claim": "The topology-specific volume server label merging should include the general volume-level labels (m.BaseVolumeSpec().Labels()) for a consistent 3-tier Cluster -> Volume -> Topology override, and should use a mergeLabels helper instead of the misleading mergeAnnotations for label maps.", "categor... | null |
seaweedfs__seaweedfs-operator__248 | seaweedfs/seaweedfs-operator | 248 | defect | 44289d0553fe9f89dbfbd17a9252bfe6f12bc7ae | d771119f6a223de5922796d0c6dc328a785b8418 | fix: register IAM gRPC service without requiring TLS | ## Why
Since SeaweedFS 4.24 the filer only registers the \`SeaweedIdentityAccessManagement\` gRPC service when \`jwt.filer_signing.key\` is present in \`security.toml\` (seaweedfs/seaweedfs#9442). The admin server needs the same key to sign Bearer tokens for that service (seaweedfs/seaweedfs#9498).
The operator gated... | diff --git a/internal/controller/controller_admin_statefulset_test.go b/internal/controller/controller_admin_statefulset_test.go
index 6011836e..fb839c21 100644
--- a/internal/controller/controller_admin_statefulset_test.go
+++ b/internal/controller/controller_admin_statefulset_test.go
@@ -57,7 +57,7 @@ func TestBuildA... | 2 | 2 | 0 | [{"id": "G0", "claim": "Accessing existing.Data without a nil check can lead to a panic if the ConfigMap exists but has no data, so the access should be guarded with a nil check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The comment in the ge... | null |
seaweedfs__seaweedfs__7147 | seaweedfs/seaweedfs | 7,147 | defect | 41aedaa6876d5ef200928aafaec7c9d0b8a8a764 | f98238253cda1429febe53c56393402c357c5c08 | Fix volume allocation with max=0 and minFreeSpace - prevent allocate-then-delete behavior | When using `max=0` with `minFreeSpace` configured, the volume server exhibited unexpected behavior where it would allocate volumes and then immediately delete them instead of skipping allocation entirely when disk space was low.
## Problem
The issue occurred because `hasFreeDiskLocation()` only checked if the volume c... | diff --git a/weed/storage/store.go b/weed/storage/store.go
index 2d97075717b..11f72d03517 100644
--- a/weed/storage/store.go
+++ b/weed/storage/store.go
@@ -202,6 +202,10 @@ func (s *Store) addVolume(vid needle.VolumeId, collection string, needleMapKind
// hasFreeDiskLocation checks if a disk location has free space... | 4 | 4 | 2 | [{"id": "G0", "claim": "TestHasFreeDiskLocationVolumeCount is incomplete: it checks only when the volume count is below the max and never tests the boundary condition where the volume count is equal to the max, which should also prevent allocation.", "category": "testing", "verdict": "supported", "priority": "P1", "sco... | null |
seaweedfs__seaweedfs__7277 | seaweedfs/seaweedfs | 7,277 | defect | f1f0856e503e4f56c0a435d3590da8369c15c33f | 6206a316f5bcf487cdd9b529cdd17b859bd1606c | s3: fix if-match error | # What problem are we solving?
fix #7274
# How are we solving the problem?
if entry has md5, use it as ETag
# How is the PR tested?
added a test
# Checks
- [x] I have added unit tests if possible.
- [ ] I will add related wiki document changes and link to this PR after merging.
<!-- This is an a... | diff --git a/.github/workflows/test-s3-over-https-using-awscli.yml b/.github/workflows/test-s3-over-https-using-awscli.yml
index f09d1c1aa44..18d576ddf90 100644
--- a/.github/workflows/test-s3-over-https-using-awscli.yml
+++ b/.github/workflows/test-s3-over-https-using-awscli.yml
@@ -77,3 +77,12 @@ jobs:
aws... | 2 | 2 | 1 | [{"id": "G0", "claim": "If entry.Attributes.Md5 is not nil but empty, the new branch still calls fmt.Sprintf and returns an empty ETag instead of falling back, so the condition should also require len(entry.Attributes.Md5) > 0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
seaweedfs__seaweedfs__7306 | seaweedfs/seaweedfs | 7,306 | defect | c5f15aaa25badfd577979ea32571887f0969f76c | 0fc0754ee95fbe783b275cfe236f42b93dca1005 | Fix #7305: Return 400 BadDigest instead of 500 InternalError for MD5 mismatch | ## Description
Fixes #7305
SeaweedFS was incorrectly returning a **500 Internal Server Error** when an S3 upload had a mismatched Content-MD5 header, instead of the proper **400 Bad Request** with error code `BadDigest` as specified in the [AWS S3 API documentation](https://docs.aws.amazon.com/AmazonS3/latest/API/Er... | diff --git a/weed/s3api/s3api_object_handlers_put.go b/weed/s3api/s3api_object_handlers_put.go
index 17fceb8d2408..3e555be748c6 100644
--- a/weed/s3api/s3api_object_handlers_put.go
+++ b/weed/s3api/s3api_object_handlers_put.go
@@ -384,6 +384,8 @@ func filerErrorToS3Error(errString string) s3err.ErrorCode {
return s3... | 3 | 2 | 0 | [{"id": "G0", "claim": "Move the exact-match ErrMsgBadDigest case to the first position of the switch in filerErrorToS3Error, ahead of the more general strings.HasSuffix cases, for maintainability and robustness against overlapping patterns.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc... | null |
seaweedfs__seaweedfs__7330 | seaweedfs/seaweedfs | 7,330 | defect | 81c96ec71b4df6ffdc333f23d659fe5d3b10d6f8 | ef1b91b06078b0d84a9e3145b70f4b4ffd8418e9 | s3: combine all signature verification checks into a single function | Combining the signature verification checks into a single method called in `chunked_reader_v4.go` and `auth_signature_v4.go` makes sure that any fixes done to authentication are applied on both sides. This is the case of `X-Forward-Prefix` now too.
Closes #7320
<!-- This is an auto-generated comment: release notes ... | diff --git a/weed/s3api/auth_signature_v4.go b/weed/s3api/auth_signature_v4.go
index 81612f7a8eb5..288b62799726 100644
--- a/weed/s3api/auth_signature_v4.go
+++ b/weed/s3api/auth_signature_v4.go
@@ -33,17 +33,20 @@ import (
"time"
"unicode/utf8"
+ "github.com/seaweedfs/seaweedfs/weed/glog"
+
"github.com/seaweed... | 22 | 18 | 8 | [{"id": "G0", "claim": "When signature verification succeeds via the X-Forwarded-Prefix path, verifyV4Signature returns nil for the credential instead of the fetched cred, which callers of streaming chunk signing expect and can panic on or skip chunk verification.", "category": "correctness", "verdict": "supported", "p... | null |
seaweedfs__seaweedfs__7358 | seaweedfs/seaweedfs | 7,358 | defect | ad46d80f490866d0ba6e0d079eeac36d624b22e4 | c5a49bf83bcbc18671af099e73487f63d9314aae | S3: Avoid in-memory map concurrent writes in SSE-S3 key manager | ## Description
This PR fixes issue #7352 where parallel uploads to SSE-S3 enabled buckets were causing `fatal error: concurrent map writes` crashes.
## Problem
The `SSES3KeyManager` struct contained an unsynchronized map (`keys map[string]*SSES3Key`) that was being accessed from multiple goroutines during concurrent... | diff --git a/weed/s3api/s3_sse_s3.go b/weed/s3api/s3_sse_s3.go
index 6471e04fdf1..e9c43fb2786 100644
--- a/weed/s3api/s3_sse_s3.go
+++ b/weed/s3api/s3_sse_s3.go
@@ -10,6 +10,7 @@ import (
"io"
mathrand "math/rand"
"net/http"
+ "sync"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs... | 1 | 1 | 0 | [{"id": "G0", "claim": "Key generation in GetOrCreateKey should be moved outside the write-lock's critical section to reduce lock contention and avoid blocking other goroutines on a potentially slow operation.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
seaweedfs__seaweedfs__7409 | seaweedfs/seaweedfs | 7,409 | defect | 8a032bf57db2e29cf636be954da8c0cbdf2f10b0 | 2c9243a8f804caf4136c5f7d915785ce177444d2 | Fix S3 bucket policy ARN validation to accept AWS ARNs and simplified formats | ## Description
Fixes #7252
The bucket policy validation was rejecting valid AWS-style ARNs and simplified resource formats, causing validation failures with the error `resource X does not match bucket X` even when they were identical strings.
## Problem
Users attempting to set bucket policies using standard AWS S3 ... | diff --git a/weed/s3api/s3_bucket_policy_simple_test.go b/weed/s3api/s3_bucket_policy_simple_test.go
index 025b44900d2..5188779ff3c 100644
--- a/weed/s3api/s3_bucket_policy_simple_test.go
+++ b/weed/s3api/s3_bucket_policy_simple_test.go
@@ -143,42 +143,106 @@ func TestBucketResourceValidation(t *testing.T) {
bucket ... | 1 | 1 | 0 | [{"id": "G0", "claim": "validateResourceForBucket is repetitive, writing the same checks three times for the accepted formats, and can be simplified by first stripping any supported ARN prefix and then validating the remaining path once, reducing duplication.", "category": "maintainability", "verdict": "supported", "pr... | null |
seaweedfs__seaweedfs__7546 | seaweedfs/seaweedfs | 7,546 | defect | 935c641f2557ce08c05e97ea4cac178e872d06d7 | 7ed9468095d87425da0df0b8e211d2e3d2e1a79b | S3: Fix encrypted file copy with multiple chunks (#7530) | ## Problem
When copying S3 objects stored on encrypted volumes (`-filer.encryptVolumeData`) with multiple chunks (files larger than the chunk size, typically >4MB), the copied files could not be read, returning an internal error.
This issue was introduced in version 3.94 when the copy mechanism was changed from downl... | diff --git a/weed/s3api/s3api_object_handlers_copy.go b/weed/s3api/s3api_object_handlers_copy.go
index 86a7bc74b8e2..007dc14589ed 100644
--- a/weed/s3api/s3api_object_handlers_copy.go
+++ b/weed/s3api/s3api_object_handlers_copy.go
@@ -817,7 +817,7 @@ func (s3a *S3ApiServer) copySingleChunk(chunk *filer_pb.FileChunk, ds... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `cipherKey` parameter of `uploadChunkDataWithOptions` is unused (line 1153 hardcodes `Cipher: false`) and should be removed from the signature and its call sites to improve code clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
seaweedfs__seaweedfs__7568 | seaweedfs/seaweedfs | 7,568 | defect | 626954b76c33b5d3f62a84a44537324d569fa9dd | 686c3455688ffab4a054047a9547f8877c78c951 | fix: copy to bucket with default SSE-S3 encryption fails (#7562) | ## Summary
Fixes #7562 - Copying from bucket to encrypted bucket fails
## Problem
When copying an object from an encrypted bucket to a temporary unencrypted bucket, then to another bucket with default SSE-S3 encryption, the operation fails with an `Internal Error` (which wraps 'invalid SSE-S3 source key type').
Exa... | diff --git a/test/s3/sse/s3_sse_integration_test.go b/test/s3/sse/s3_sse_integration_test.go
index 0b3ff8f040d..7b939ea761f 100644
--- a/test/s3/sse/s3_sse_integration_test.go
+++ b/test/s3/sse/s3_sse_integration_test.go
@@ -1856,6 +1856,234 @@ func TestCrossSSECopy(t *testing.T) {
})
}
+// TestCopyToBucketDefault... | 4 | 1 | 0 | [{"id": "G0", "claim": "The context-cancellation changes in the upload/write handlers and http.NewRequestWithContext appear tangential to the SSE-S3 copy fix, and the author should clarify whether they are necessary or defer them to a separate PR.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope... | null |
seaweedfs__seaweedfs__7598 | seaweedfs/seaweedfs | 7,598 | defect | 5602f98c479f2f04e3b75deff4372f357168cc0a | f91479c79de52901f9a08e406414985f9c9832a7 | Fix SSE-S3 copy: preserve encryption metadata and set chunk SSE type | ## Summary
Fixes #7562: Copying objects between SSE-S3 encrypted buckets was failing.
## Root Causes Identified
1. **Metadata re-contamination via `processMetadataBytes`** - Even when SSE headers were filtered from `dstEntry.Extended`, the `processMetadataBytes` function would re-add SSE headers from the source entr... | diff --git a/.github/workflows/tus-tests.yml b/.github/workflows/tus-tests.yml
new file mode 100644
index 000000000000..7fa8818ce91a
--- /dev/null
+++ b/.github/workflows/tus-tests.yml
@@ -0,0 +1,114 @@
+name: "TUS Protocol Tests"
+
+on:
+ pull_request:
+ paths:
+ - 'weed/server/filer_server_tus*.go'
+ - ... | 10 | 7 | 6 | [{"id": "G0", "claim": "If SerializeSSES3Metadata fails while generating SSE-S3 destination metadata in executeEncryptCopy, the error is only logged and the copy proceeds, which can store the object without the encryption metadata needed to decrypt it later; the failure should be fatal for the copy.", "category": "corr... | null |
seaweedfs__seaweedfs__7627 | seaweedfs/seaweedfs | 7,627 | defect | f9b4a4c396d42b749f29c07d3c1dec0d2a18aaed | 01ac4af05a34dfa9799a806d71ec0302777ef622 | mount: improve read throughput with parallel chunk fetching | ## Summary
Fixes #7504
This PR addresses the issue where a single weed mount FUSE instance does not fully utilize node network bandwidth when reading large files (~40% utilization vs 100% with multiple instances).
## Root Causes Identified
1. **Lock contention**: `SingleChunkCacher` held a mutex during the entire H... | diff --git a/weed/filer/reader_at.go b/weed/filer/reader_at.go
index 93fa76a2e8e..6d091286d26 100644
--- a/weed/filer/reader_at.go
+++ b/weed/filer/reader_at.go
@@ -7,6 +7,8 @@ import (
"math/rand"
"sync"
+ "golang.org/x/sync/errgroup"
+
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweed... | 14 | 10 | 5 | [{"id": "G0", "claim": "The url.PathEscape call in retriedFetchChunkDataDirect is fundamentally flawed: applying it to a full URL corrupts scheme delimiters and slashes, and the strings.Contains(urlString, \"%\") check is backwards, so already-encoded URLs get double-encoded.", "category": "correctness", "verdict": "su... | null |
seaweedfs__seaweedfs__7648 | seaweedfs/seaweedfs | 7,648 | defect | 5d53edb93b8e955905209570d1132e06c8ccd6e0 | e9b1dcc7213b018d9c4053b13825693c651f86f8 | s3: fix ListBuckets not showing buckets created by authenticated users | ## Problem
Fixes #7647
Users with proper Admin permissions could create buckets via `aws s3 mb` but couldn't see them when running `aws s3api list-buckets`. The buckets list returned empty even though the buckets were successfully created.
## Root Cause
The issue occurred because `ListBucketsHandler` was not wrappe... | diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go
index 148839d3ee3..55fac8bd175 100644
--- a/weed/s3api/auth_credentials.go
+++ b/weed/s3api/auth_credentials.go
@@ -418,6 +418,19 @@ func (iam *IdentityAccessManagement) lookupAnonymous() (identity *Identity, foun
return nil, false
}
+fun... | 3 | 3 | 1 | [{"id": "G0", "claim": "lookupByIdentityName performs a linear scan over iam.identities (O(n)), which could become a performance bottleneck as identities grow, and a name-keyed map populated in loadS3ApiConfiguration should be used for O(1) lookups.", "category": "performance", "verdict": "supported", "priority": "P2",... | null |
seaweedfs__seaweedfs__7668 | seaweedfs/seaweedfs | 7,668 | defect | ca1ad9c4c243b598c231942734372100979c5b6c | b5f99198ca763c11b666dd64398fa09a73095101 | Fix webhook duplicate deliveries and POST to GET conversion | Fixes #7667
This PR addresses two critical issues with the webhook notification system reported in #7667:
## Issue 1: Multiple Webhook Deliveries Based on Worker Count
### Problem
The webhook queue was creating multiple handlers (one per worker) that all subscribed to the same topic. With Watermill's gochannel, each... | diff --git a/weed/notification/webhook/http.go b/weed/notification/webhook/http.go
index 6b1a0e26dc9..1b20fde717a 100644
--- a/weed/notification/webhook/http.go
+++ b/weed/notification/webhook/http.go
@@ -8,16 +8,18 @@ import (
"fmt"
"io"
"net/http"
+ "sync"
"time"
"github.com/seaweedfs/seaweedfs/weed/glog"... | 12 | 9 | 2 | [{"id": "G0", "claim": "The originalCallCount/finalCallCount assertions in TestHttpClientInvalidatesCacheOnError seem not to align with the execution flow for the third and fourth requests (the reviewer derives originalCallCount=2 and finalCallCount=4 where the test expects 3 and 3), so the reviewer asks that the expec... | null |
seaweedfs__seaweedfs__7677 | seaweedfs/seaweedfs | 7,677 | defect | d5f21fd8ba6ee20c2504455093a9ceeaa178b826 | d32c77619bef076d0a131fc227c5ed7cbaabc2bc | s3: add s3:ExistingObjectTag condition support for bucket policies | ## Summary
Add support for `s3:ExistingObjectTag/<tag-key>` condition keys in bucket policies, allowing access control based on object tags.
Fixes #7447
## Changes
### Core Implementation
- Add `ObjectEntry` field to `PolicyEvaluationArgs` for passing object metadata
- Update `EvaluateConditions` to handle `s3:Exis... | diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go
index b5824f2d16fe..ec9edb6a0530 100644
--- a/weed/s3api/auth_credentials.go
+++ b/weed/s3api/auth_credentials.go
@@ -582,8 +582,10 @@ func (iam *IdentityAccessManagement) authRequest(r *http.Request, action Action)
// - No policy or indete... | 12 | 10 | 4 | [{"id": "G0", "claim": "The context-value resolution logic for s3:ExistingObjectTag and regular keys is duplicated between EvaluateConditions and EvaluateConditionsLegacy and handles missing keys inconsistently (nil vs empty slice); extract it into a shared helper function.", "category": "maintainability", "verdict": "... | null |
seaweedfs__seaweedfs__7714 | seaweedfs/seaweedfs | 7,714 | defect | 1ee03b6411735b9a485d2655389cdabfff713cd7 | f4ccc210399932c79eb4a19d4078a71b3f5308a0 | s3: fix presigned POST upload missing slash between bucket and key | ## Problem
When uploading a file using presigned POST (e.g., `boto3.generate_presigned_post`), the file was saved with the bucket name and object key concatenated without a slash (e.g., `my-bucketfilename` instead of `my-bucket/filename`).
## Root Cause
In `PostPolicyBucketHandler`, the object key from form values w... | diff --git a/weed/s3api/s3api_object_handlers_postpolicy.go b/weed/s3api/s3api_object_handlers_postpolicy.go
index 3ec6147f53c..92d8f488611 100644
--- a/weed/s3api/s3api_object_handlers_postpolicy.go
+++ b/weed/s3api/s3api_object_handlers_postpolicy.go
@@ -57,6 +57,9 @@ func (s3a *S3ApiServer) PostPolicyBucketHandler(w... | 1 | 1 | 0 | [{"id": "G0", "claim": "The POST policy handler should also remove duplicate slashes from the object key (e.g. via removeDuplicateSlashes, as other S3 handlers do) so keys like 'a//b' are normalized.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
seaweedfs__seaweedfs__7750 | seaweedfs/seaweedfs | 7,750 | defect | 8bdc4390a04604af79f91c7dce94e3b2b58442f7 | 25c9d5f3b1a366292871df12304d656f0d808f31 | feat(iam): add SetUserStatus and UpdateAccessKey actions | ## Summary
Add ability to enable/disable users and access keys without deleting them.
Fixes #7745
## Proposed Actions
| Action | Description |
| --------------- | ------------------------------------------ |
| SetUserStatus | Enable or disable a user |
| U... | diff --git a/weed/iam/constants.go b/weed/iam/constants.go
index 206132201b4..7dea524e816 100644
--- a/weed/iam/constants.go
+++ b/weed/iam/constants.go
@@ -29,3 +29,9 @@ const (
AccessKeyIdLength = 21
SecretAccessKeyLength = 42
)
+
+// Access key status values (AWS IAM compatible)
+const (
+ AccessKeyStatusAc... | 12 | 10 | 5 | [{"id": "G0", "claim": "A user explicitly disabled via SetUserStatus but having no credentials is incorrectly re-enabled on configuration reload, because the backward-compatibility heuristic treats absence of credential status as an old config; the reviewer asks to switch the protobuf field to `bool disabled` and drop ... | null |
seaweedfs__seaweedfs__7755 | seaweedfs/seaweedfs | 7,755 | defect | f64ce759e03052c1a87c5cc8a15dbe7bfb189dec | e4b08050f47fca95a9211fe30ef5e8412e83bac6 | fix: sync EC volume files before copying to fix deleted needles not being marked when decoding | ## Summary
Fixes #7751
When a file is deleted from an EC-encoded volume, the deletion is written to both the `.ecx` and `.ecj` files. However, these writes were not synced to disk before the files were copied during `ec.decode`. This caused the copied files to miss the deletion markers, resulting in 'leaked' space wh... | diff --git a/weed/server/volume_grpc_copy.go b/weed/server/volume_grpc_copy.go
index 2e20941adbf..a2b5acd8186 100644
--- a/weed/server/volume_grpc_copy.go
+++ b/weed/server/volume_grpc_copy.go
@@ -343,6 +343,13 @@ func (vs *VolumeServer) CopyFile(req *volume_server_pb.CopyFileRequest, stream v
v.SyncToDisk()
file... | 1 | 1 | 1 | [{"id": "G0", "claim": "EcVolume.Sync() silently discards sync errors (_ = ev.ecjFile.Sync() / _ = ev.ecxFile.Sync()); consider logging sync failures instead, as sync errors could leave deletions unflushed and reintroduce the bug this PR fixes.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco... | null |
seaweedfs__seaweedfs__7793 | seaweedfs/seaweedfs | 7,793 | defect | 697b56003dde030fd46cc8a85cdeca417947ab8a | 97d926dee519a0c1b35ede1066783889721cde30 | Fix volume repeatedly toggling between crowded and uncrowded | ## Summary
Fixes #6712
## Problem
The volume was repeatedly toggling between "crowded" and "uncrowded" states because:
1. `removeFromCrowded()` was called in `removeFromWritable()` - Every time a volume temporarily became unwritable (due to replica count fluctuations, heartbeat issues, or read-only state changes), ... | diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go
index 7c6fd71f360..3200879e58e 100644
--- a/weed/topology/volume_layout.go
+++ b/weed/topology/volume_layout.go
@@ -206,6 +206,7 @@ func (vl *VolumeLayout) UnRegisterVolume(v *storage.VolumeInfo, dn *DataNode) {
if location.Length() == 0 ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test TestVolumeLayoutCrowdedState should be restructured to use subtests with t.Run for each verification step, to make the test's intent clearer and better separate actions from assertions.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
seaweedfs__seaweedfs__7798 | seaweedfs/seaweedfs | 7,798 | defect | 9c4a2e1b1a0c21ddb13e0a986121aca594fe723d | 0b0e515b1dccc1344f2b71b9cf408deef410c083 | fix: sync replica entries before ec.encode and volume.tier.move | ## Summary
This addresses the data inconsistency risk in multi-replica volumes raised in #7797.
## Problem
When `ec.encode` or `volume.tier.move` operates on a multi-replica volume, one replica is selected and the others are deleted. If replicas are inconsistent (due to partial writes, disk corruption, or network is... | diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go
index 2d62aff3fa9..0e23d53f107 100644
--- a/weed/shell/command_ec_encode.go
+++ b/weed/shell/command_ec_encode.go
@@ -162,7 +162,7 @@ func (c *commandEcEncode) Do(args []string, commandEnv *CommandEnv, writer io.Wr
}
// encode all requ... | 8 | 5 | 4 | [{"id": "G0", "claim": "The function readNeedleMeta called in command_volume_replica_check.go is not defined in the file or package, which will cause a compilation error; a helper making the ReadNeedleMeta gRPC call should be added.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introd... | null |
seaweedfs__seaweedfs__7799 | seaweedfs/seaweedfs | 7,799 | defect | 9e9c97ec61876a81376e7fd73d1c10cf1c9d7e5f | 2ae8a0903d39901e4c270bba8ad806dfb3add9c2 | fix: ListBuckets returns empty for users with bucket-specific permissions | ## Summary
Fixes #7796
## Problem
When a user like "geoserver" had bucket-specific permissions (`List:geoserver`, `Read:geoserver`, etc.), they couldn't see the buckets in `ListBuckets` because the ownership check was happening **before** the permission check. If the bucket wasn't owned by the user (missing `AmzIdenti... | diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.go
index 5ff155890b9..3e712d9acac 100644
--- a/weed/s3api/s3api_bucket_handlers.go
+++ b/weed/s3api/s3api_bucket_handlers.go
@@ -73,28 +73,33 @@ func (s3a *S3ApiServer) ListBucketsHandler(w http.ResponseWriter, r *http.Reques
var list... | 3 | 3 | 2 | [{"id": "G0", "claim": "ListBucketsHandler performs a permission check for every bucket even when the user is already the owner, and the check should be skipped when isOwner is true to avoid potentially expensive authorization calls on every bucket.", "category": "performance", "verdict": "supported", "priority": "P2",... | null |
seaweedfs__seaweedfs__7895 | seaweedfs/seaweedfs | 7,895 | defect | 6de6061ce9aaa5637d001453e07f079f3aaaf05b | 41a6b4b6c51f0d6ebbec18189c79084e08ae4365 | S3: Fix Content-Encoding header not preserved (#7894) | ## Problem
The header was not being returned in S3 GET/HEAD responses, even though it should be stored in metadata during PUT operations. This is a regression that affects applications like Sentry that rely on this header for decompression.
## Root Cause
In `weed/s3api/s3api_object_handlers_put.go`, the `putToFiler... | diff --git a/weed/s3api/s3_content_encoding_test.go b/weed/s3api/s3_content_encoding_test.go
new file mode 100644
index 000000000000..fbcb80ea121a
--- /dev/null
+++ b/weed/s3api/s3_content_encoding_test.go
@@ -0,0 +1,201 @@
+package s3api
+
+import (
+ "bytes"
+ "net/http/httptest"
+ "testing"
+
+ "github.com/seaweedfs... | 2 | 2 | 0 | [{"id": "G0", "claim": "The two GET-simulation tests should create a mock GET request and pass it to setResponseHeaders instead of reusing putReq, for semantic clarity.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "For readability and maintainability a... | null |
seaweedfs__seaweedfs__7913 | seaweedfs/seaweedfs | 7,913 | defect | b6d99f1c9e88a9e4f6ba0a819243a8e3b7275a7f | ef5d9de0438947f33d887cbfab29b28b70594656 | s3: implement Bucket Owner Enforced for object ownership | Objects uploaded by service accounts (or any user) are now owned by the bucket owner when the bucket has `BucketOwnerEnforced` ownership policy (the modern AWS default since April 2023).
## Problem
Previously, objects uploaded by service accounts were owned by the service account's own account ID. This was confusing b... | diff --git a/weed/s3api/s3api_object_handlers_put.go b/weed/s3api/s3api_object_handlers_put.go
index 9e325801d44..58ba3fb81e6 100644
--- a/weed/s3api/s3api_object_handlers_put.go
+++ b/weed/s3api/s3api_object_handlers_put.go
@@ -141,7 +141,7 @@ func (s3a *S3ApiServer) PutObjectHandler(w http.ResponseWriter, r *http.Req... | 4 | 2 | 2 | [{"id": "G0", "claim": "Add a nil check before calling s3a.bucketRegistry.GetBucketMetadata(bucket), since bucketRegistry is assumed but not verified to be initialized, and accessing it while nil would panic.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
seaweedfs__seaweedfs__7920 | seaweedfs/seaweedfs | 7,920 | defect | b034cf188e5cef98789eb2935d382cda58f80422 | 52c1fd53d701444a1ebc4115f23d7701139af76e | Fix: Route unauthenticated specific STS requests to STS handler correctly | Fixes #7917
## Description
This PR addresses an issue where STS `AssumeRoleWithWebIdentity` requests with parameters in the request body (and thus no query parameters in the URL) were being incorrectly routed to the Embedded IAM handler if they lacked an Authorization header. The IAM handler requires authentication, c... | diff --git a/weed/s3api/s3api_server.go b/weed/s3api/s3api_server.go
index 5917b519521..33754ad28c6 100644
--- a/weed/s3api/s3api_server.go
+++ b/weed/s3api/s3api_server.go
@@ -618,22 +618,38 @@ func (s3a *S3ApiServer) registerRouter(router *mux.Router) {
// STS API endpoint for AssumeRoleWithWebIdentity
// POST ... | 5 | 4 | 2 | [{"id": "G0", "claim": "The `else if` block is a logging regression: when `s3a.stsHandlers` is enabled the embedded-IAM-enabled log is never printed even if IAM is also enabled, so it should be a separate `if` statement.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
seaweedfs__seaweedfs__7944 | seaweedfs/seaweedfs | 7,944 | defect | 4d4b2e2d4aaefb95004a83c113e80bdae15fe598 | 49377501a25fe80f8d4d88901be53c303d296143 | Fix AWS SDK Signature V4 with STS credentials (issue #7941) | ## Problem
AWS SDK clients were failing with `InvalidAccessKeyId` when using temporary credentials obtained from `AssumeRoleWithWebIdentity`.
The issue occurred because:
1. SeaweedFS STS service correctly returns temporary credentials (AccessKeyId, SecretAccessKey, SessionToken)
2. AWS SDKs send requests with ... | diff --git a/FIX_ISSUE_7941.md b/FIX_ISSUE_7941.md
new file mode 100644
index 000000000000..3dc91540432f
--- /dev/null
+++ b/FIX_ISSUE_7941.md
@@ -0,0 +1,96 @@
+# Fix for GitHub Issue #7941: AWS SDK Signature V4 with STS Credentials
+
+## Problem
+
+AWS SDK clients were failing with `InvalidAccessKeyId` when using temp... | 27 | 18 | 6 | [{"id": "G0", "claim": "Granting ACTION_ADMIN to identities created from STS sessions lets the legacy canDo check always pass and bypasses the intended IAM policy authorization; the Actions slice for STS-derived identities should be empty.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "in... | null |
seaweedfs__seaweedfs__7948 | seaweedfs/seaweedfs | 7,948 | defect | 23fc3f262122155c301ef4dc221dc75be2d270c0 | c71fbb325de7b8490b832ad71dddfc34b7695786 | Support AWS standard IAM role ARN formats (issue #7946) | ## Summary
This PR adds support for both AWS standard and legacy IAM role ARN formats in SeaweedFS, resolving issue #7946. This fixes compatibility with EKS pod identity webhook which expects the standard format.
## Issue Fixed
- **#7946**: EKS pod identity webhook incompatibility with IAM role ARN format validation
... | diff --git a/weed/iam/sts/sts_service.go b/weed/iam/sts/sts_service.go
index fc7285a37e4..7164b08a8ea 100644
--- a/weed/iam/sts/sts_service.go
+++ b/weed/iam/sts/sts_service.go
@@ -699,13 +699,8 @@ func (s *STSService) validateRoleAssumptionForWebIdentity(ctx context.Context, r
return fmt.Errorf("web identity token ... | 5 | 5 | 1 | [{"id": "G0", "claim": "The error message returned when the role ARN is invalid is too generic, and both validation functions should show the expected format(s) again, as the previous implementation did.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
seaweedfs__seaweedfs__7957 | seaweedfs/seaweedfs | 7,957 | defect | 63b2fe0d76f094aad9c501b01168a1659168ff3b | c204770fc9f00eec8099680bb2521c0581648190 | Fix: prevent panic when swap file creation fails | # What problem are we solving?
In long-running `weed mount` processes, the OS (e.g., `systemd-tmpfiles`) may clean up the temporary directory used for swap files. When this happens, `os.CreateTemp` fails, leading to a `nil` file handle. The current implementation does not handle this error, causing a panic (SIGSEGV) i... | diff --git a/weed/mount/page_writer/page_chunk_swapfile.go b/weed/mount/page_writer/page_chunk_swapfile.go
index dd9781b683e..09bc1cfbc23 100644
--- a/weed/mount/page_writer/page_chunk_swapfile.go
+++ b/weed/mount/page_writer/page_chunk_swapfile.go
@@ -52,6 +52,10 @@ func (sf *SwapFile) NewSwapFileChunk(logicChunkIndex... | 4 | 4 | 1 | [{"id": "G0", "claim": "The os.MkdirAll call's error is not checked before retrying os.CreateTemp, so if directory creation fails the retry fails too and the root cause is obscured; the MkdirAll error should be checked, logged and propagated (returning nil).", "category": "correctness", "verdict": "supported", "priorit... | null |
seaweedfs__seaweedfs__7986 | seaweedfs/seaweedfs | 7,986 | defect | e67973dc5314ad56833849298cdb017bede58a57 | 1c16519a0d554d2cb5eab819c28d0066155ee087 | Fix STS identity authorization by populating PolicyNames (#7985) | ## Summary
This PR fixes GitHub issue #7985 where STS-assumed identities received empty `identity.Actions`, causing all S3 operations to be denied even when the role had valid IAM policies attached.
## Root Cause
When STS identities were created in `validateSTSSessionToken`, the `PolicyNames` field was not populated... | diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go
index 57918fabe9f..f11499b4022 100644
--- a/weed/s3api/auth_credentials.go
+++ b/weed/s3api/auth_credentials.go
@@ -795,12 +795,12 @@ func (identity *Identity) canDo(action Action, bucket string, objectKey string)
}
}
if bucket == "" {
... | 7 | 7 | 1 | [{"id": "G0", "claim": "The new test file duplicates STS service setup and Identity construction across tests, and this repeated setup logic should be extracted into helper functions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The if/else ve... | null |
seaweedfs__seaweedfs__7988 | seaweedfs/seaweedfs | 7,988 | defect | 217d8b9e0e4f678d5b99884dfb49a8b14a1a60f9 | 615bdd7047de2a657c0a575d27f2a81f3d41719d | Fix STS authorization in streaming/chunked uploads | ## Problem
During streaming/chunked uploads (SigV4 streaming), authorization happens twice:
1. **Initial authorization** in `authRequestWithAuthType()` - ✅ Works correctly for STS identities
- Falls back to IAM when `identity.Actions` is empty
2. **Second authorization** in `verifyV4Signature()` with `shouldCh... | diff --git a/weed/s3api/auth_signature_v4.go b/weed/s3api/auth_signature_v4.go
index b4696bc175a..a91bf06c3bb 100644
--- a/weed/s3api/auth_signature_v4.go
+++ b/weed/s3api/auth_signature_v4.go
@@ -248,7 +248,18 @@ func (iam *IdentityAccessManagement) verifyV4Signature(r *http.Request, shouldCh
if r.Method != http.Me... | 1 | 1 | 0 | [{"id": "G0", "claim": "The authorization fallback logic newly added to verifyV4Signature is a direct copy of the logic in authRequestWithAuthType, so it should be extracted into a shared helper method on IdentityAccessManagement that both call sites use.", "category": "maintainability", "verdict": "supported", "priori... | null |
seaweedfs__seaweedfs__8191 | seaweedfs/seaweedfs | 8,191 | defect | 330bd92ddce763649d07e078d550cb03eda6a593 | 310c246de23c4d4079af7a92c1605fec8203f83f | Add a version token on RPCs to read/update volume server states. | # What problem are we solving?
https://github.com/seaweedfs/seaweedfs/issues/7977
# How are we solving the problem?
https://github.com/seaweedfs/seaweedfs/pull/8186 introduced the `GetState()` and `SetState()` RPCs to handle volume server state flags. The expected workflow to update individual flags is to call... | diff --git a/weed/pb/volume_server.proto b/weed/pb/volume_server.proto
index 32fc67816703..da05dfa02f44 100644
--- a/weed/pb/volume_server.proto
+++ b/weed/pb/volume_server.proto
@@ -284,15 +284,18 @@ message GetStateRequest {
}
message GetStateResponse {
VolumeServerState state = 1;
+ uint32 state_version = ... | 6 | 5 | 4 | [{"id": "G0", "claim": "GetState/SetState build their responses from State.Pb and Version without holding the lock that Update uses, so concurrent RPCs can race and return an inconsistent state/version pair.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
seaweedfs__seaweedfs__8268 | seaweedfs/seaweedfs | 8,268 | defect | 6a61037333117399508cecef00a2a0af07e412af | 07cf34702de77d18ce92af216c62714464017f3b | Update `cluster.status` to resolve file details on EC volumes. | # What problem are we solving?
Improve visibility into Seaweed cluster statuses.
# How are we solving the problem?
Also parallelizes queries for file metrics collections when the `--files` flag is specified, and improves the command's output for readability:
```
> cluster.status --files
collecting file st... | diff --git a/weed/shell/command_cluster_status.go b/weed/shell/command_cluster_status.go
index 7a31c34e5c29..1fe009fca124 100644
--- a/weed/shell/command_cluster_status.go
+++ b/weed/shell/command_cluster_status.go
@@ -33,7 +33,18 @@ type VolumeReplicaStats struct {
FilesDeleted uint64
TotalSize uint64
}
-type ... | 5 | 3 | 1 | [{"id": "G0", "claim": "Concurrent goroutines collecting EC shard stats race on the ecVolumesStats map: the lock is released after the lookup, so two goroutines for the same EC volume can both see it unprocessed, issue redundant VolumeEcShardsInfo RPCs and one overwrite the other's entry — the check-and-update should b... | null |
seaweedfs__seaweedfs__8283 | seaweedfs/seaweedfs | 8,283 | defect | d88f6ed0af9755d9796738bc8467c76b6e118f43 | b480982371ccc9008189420ef6b47fbaad97bc69 | Implement local scrubbing for EC volumes. | # What problem are we solving?
http://github.com/seaweedfs/seaweedfs/issues/8018
# How are we solving the problem?
Implement the `LOCAL` scrubbing algorithm for EC volumes, which validates the volume index, and all needle intervals
which can be read from local shards. It's intended to check EC consistency on ... | diff --git a/weed/server/volume_grpc_scrub.go b/weed/server/volume_grpc_scrub.go
index 43e33f2d4cd5..dfb317da13e3 100644
--- a/weed/server/volume_grpc_scrub.go
+++ b/weed/server/volume_grpc_scrub.go
@@ -99,9 +99,9 @@ func (vs *VolumeServer) ScrubEcVolume(ctx context.Context, req *volume_server_pb
switch m := req.Get... | 7 | 5 | 3 | [{"id": "G0", "claim": "The inner brokenShardsMap declared in the WalkIndexFile callback shadows the outer one, so detected broken shards are written to a map that is discarded and ScrubLocal never reports any broken shards.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, ... | null |
seaweedfs__seaweedfs__8337 | seaweedfs/seaweedfs | 8,337 | defect | 8b5d31e5ebfe84808722411db957973ff60e7ec5 | e71bd2712acab3cb9020c5bd3fc6c5dce8cd5f55 | Rework volume compaction (a.k.a vacuuming) logic to cleanly support new parameters. | # What problem are we solving?
https://github.com/seaweedfs/seaweedfs/issues/7442
# How are we solving the problem?
Rework the compaction/vacuuming implementation to cleanly support new options. There're way too many parameters being shuffled around between functions as it is :disappointed:
The plan is to ... | diff --git a/weed/command/backup.go b/weed/command/backup.go
index 59499d789c4d..df5b106d2f6a 100644
--- a/weed/command/backup.go
+++ b/weed/command/backup.go
@@ -137,7 +137,7 @@ func backupFromLocation(volumeServer pb.ServerAddress, grpcDialOption grpc.DialO
// Handle compaction if needed
if v.SuperBlock.Compact... | 7 | 2 | 0 | [{"id": "G0", "claim": "The compact command's help text has a typo: 'ompacts' should be 'compacts' in the line describing the index method.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CompactByVolumeData does not check for a nil DataBackend bef... | null |
seaweedfs__seaweedfs__8968 | seaweedfs/seaweedfs | 8,968 | defect | 0fed72d95acdb7bcc0fe0359a20b5dead8f555a9 | cf20715cc6493878be7640671140b0de62dc62bb | fix(s3): s3:PutObject bucket policy now implicitly allows multipart uploads | ## Summary
- The `PolicyEngine.evaluateStatement()` method used raw regex matching for actions, bypassing the multipart-inherits-PutObject logic that only existed in the unused `CompiledStatement.MatchesAction()` code path
- When a bucket policy granted only `s3:PutObject`, multipart upload operations (`CreateMultipart... | diff --git a/weed/s3api/policy_engine/engine.go b/weed/s3api/policy_engine/engine.go
index d39b4b2cebf..a8d37c5ab21 100644
--- a/weed/s3api/policy_engine/engine.go
+++ b/weed/s3api/policy_engine/engine.go
@@ -162,6 +162,16 @@ func (engine *PolicyEngine) evaluateStatement(stmt *CompiledStatement, args *Pol
if !matched... | 3 | 2 | 1 | [{"id": "G0", "claim": "s3:UploadPartCopy is missing from the multipartActionSet (and the test list), so UploadPartCopy requests will still be denied when the policy grants only s3:PutObject.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test s... | null |
seaweedfs__seaweedfs__8971 | seaweedfs/seaweedfs | 8,971 | defect | 733517df307e0b65916de77432ce429ff189da7b | ba330eff3a5594e3781461b9717731da590149c0 | fix(s3): populate s3:prefix from query param for ListObjects policy conditions | ## Summary
Fixes #8969
- `s3:prefix` is now extracted from the `prefix` query parameter in `AuthorizeAction`, so STS session policies with `StringLike` conditions on `s3:prefix` correctly evaluate for `ListObjectsV1`/`V2` requests
- When the auth middleware propagates the prefix as `objectKey`, the resource ARN is re... | diff --git a/weed/s3api/s3_end_to_end_test.go b/weed/s3api/s3_end_to_end_test.go
index 3fa20194de1..15f1c33d5cb 100644
--- a/weed/s3api/s3_end_to_end_test.go
+++ b/weed/s3api/s3_end_to_end_test.go
@@ -214,6 +214,153 @@ func TestS3MultipartUploadWithJWT(t *testing.T) {
}
}
+// TestS3ListObjectsV2PrefixCondition tes... | 5 | 2 | 1 | [{"id": "G0", "claim": "The comparison between objectKey and listPrefix is brittle because objectKey may contain a leading slash while listPrefix typically does not, and both values should be normalized by trimming leading slashes before the comparison and before populating the s3:prefix request context.", "category": ... | null |
seaweedfs__seaweedfs__8972 | seaweedfs/seaweedfs | 8,972 | defect | 83a632669acb5cda9912046063152de0fcea3b05 | cced37d1ceb57bf58d1de66b4f168d938ce805c1 | fix(ec): generate .ecx before EC shards to prevent data inconsistency | ## Summary
Fixes a race condition in EC encoding that causes data loss.
When EC shards are generated, any write between shard generation and `.ecx` index generation causes the `.ecx` to reference data not present in the shards. After the original volume replicas are deleted, those needles are permanently lost. Th... | diff --git a/weed/server/volume_grpc_erasure_coding.go b/weed/server/volume_grpc_erasure_coding.go
index dbca04587147..b3f10efd3561 100644
--- a/weed/server/volume_grpc_erasure_coding.go
+++ b/weed/server/volume_grpc_erasure_coding.go
@@ -86,16 +86,30 @@ func (vs *VolumeServer) VolumeEcShardsGenerate(ctx context.Contex... | 7 | 7 | 1 | [{"id": "G0", "claim": "Passing 0 instead of offset.ToActualOffset() to ReadBytes degrades the returned error string and makes ReadBytes pick the wrong error counter, so the actual volume offset should be passed to keep error context and metrics accurate.", "category": "correctness", "verdict": "supported", "priority":... | null |
seaweedfs__seaweedfs__8991 | seaweedfs/seaweedfs | 8,991 | defect | ac12a735c7bd47cf5402c18a8d9c3132c05258ce | 59349ea58bc04e0c477949e8527157025a92c11c | feat(iam): implement ListUserPolicies API action | ## Summary
Closes #8987
- Implement `ListUserPolicies` IAM action in both the embedded S3/IAM server and the standalone IAM server
- Add `ListUserPoliciesResponse` type to the shared IAM response library
- Add unit tests for the embedded IAM and integration tests for the AWS SDK client
- Update wiki documentation (`A... | diff --git a/test/s3/iam/s3_iam_admin_test.go b/test/s3/iam/s3_iam_admin_test.go
index d9ce1a3d415..d41e9ce74f9 100644
--- a/test/s3/iam/s3_iam_admin_test.go
+++ b/test/s3/iam/s3_iam_admin_test.go
@@ -321,6 +321,13 @@ func TestIAMPolicyManagement(t *testing.T) {
require.NoError(t, err)
defer iamClient.DeleteUser(... | 3 | 3 | 1 | [{"id": "G0", "claim": "The ListUserPolicies test should assert that the actual synthetic policy name \"UserWithPolicy_policy\" appears in the response body.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nonexistent-user test should use require.Tru... | null |
seaweedfs__seaweedfs__8992 | seaweedfs/seaweedfs | 8,992 | defect | ac12a735c7bd47cf5402c18a8d9c3132c05258ce | 0880adaccd5d3b2f276ffca87b779e7c6c30f670 | feat(iam): implement group inline policy actions | ## Summary
Implements `PutGroupPolicy`, `GetGroupPolicy`, `DeleteGroupPolicy`, and `ListGroupPolicies` IAM actions in both the embedded and standalone IAM servers.
This completes the group policy surface — groups now support both managed policies (attach/detach) and inline policies (put/get/delete/list), matching the... | diff --git a/test/s3/iam/s3_iam_admin_test.go b/test/s3/iam/s3_iam_admin_test.go
index d9ce1a3d4154..75556b43f792 100644
--- a/test/s3/iam/s3_iam_admin_test.go
+++ b/test/s3/iam/s3_iam_admin_test.go
@@ -321,6 +321,13 @@ func TestIAMPolicyManagement(t *testing.T) {
require.NoError(t, err)
defer iamClient.DeleteUse... | 10 | 8 | 6 | [{"id": "G0", "claim": "PutGroupPolicy on the standalone IAM server never recomputes the aggregated actions of the group's members, so new group permissions are not enforced until another event triggers a refresh.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
seaweedfs__seaweedfs__9009 | seaweedfs/seaweedfs | 9,009 | defect | dd203769b1b59bc60e64b29164d0f24f4c5431c8 | fd4217e229bc456a0e6e5cbcb7f47e37483d3e6c | fix(iam): preserve actions/resources in GetUserPolicy fallback | ## Summary
Fixes #9008. When `GetUserPolicy` falls back to reconstructing a policy document from the aggregated `ident.Actions` (format `Verb:path`), the output was mangled:
- Paths that already contained `/` (e.g. `b-le*/*`) had another `/*` appended, producing nonsensical resources like `arn:aws:s3:::b-le*/*/*`.
- ... | diff --git a/weed/iamapi/iamapi_management_handlers.go b/weed/iamapi/iamapi_management_handlers.go
index 1e4b9c40402..4e7fc983092 100644
--- a/weed/iamapi/iamapi_management_handlers.go
+++ b/weed/iamapi/iamapi_management_handlers.go
@@ -458,17 +458,34 @@ func (iama *IamApiServer) GetUserPolicy(s3cfg *iam_pb.S3ApiConfig... | 2 | 2 | 2 | [{"id": "G0", "claim": "The TestPutGetUserPolicyIssue9008 regression test does not hit the fallback path it is intended to validate, because GetUserPolicy returns the persisted inline document first, so the test can pass without exercising the changed reconstruction logic.", "category": "testing", "verdict": "supported... | null |
seaweedfs__seaweedfs__9012 | seaweedfs/seaweedfs | 9,012 | defect | e4bcfb96d8d774a3e6ea353d90b5edea66a364f0 | 3afc2715c3e3bb235ff25c26268ef879c7ab6c25 | [filer] fix log buffer idle polling | ## Summary
Fixes #9007.
This changes the log buffer read loops so idle subscribers no longer wake every 10ms and emit continuous timeout logs in `weed mini`.
## What Changed
- replaced the 10ms timeout polling loops in `LoopProcessLogData` and `LoopProcessLogDataWithOffset` with notification-driven waiting plus a b... | diff --git a/weed/util/log_buffer/log_buffer.go b/weed/util/log_buffer/log_buffer.go
index 471d3e140e4..40ce3c59181 100644
--- a/weed/util/log_buffer/log_buffer.go
+++ b/weed/util/log_buffer/log_buffer.go
@@ -515,6 +515,12 @@ func (logBuffer *LogBuffer) loopFlush() {
logBuffer.lastFlushTsNs.Store(d.stopTime.UnixNa... | 3 | 2 | 0 | [{"id": "G0", "claim": "Consider wiring cancellation (a done channel or context) into waitForNotification() so a disconnect or shutdown happening just after the pre-wait check does not sit for the full 250ms interval before the loop notices.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "in... | null |
seaweedfs__seaweedfs__9017 | seaweedfs/seaweedfs | 9,017 | defect | 259e36510477172da86db7f584f08c2e99eb4c84 | cc9e03084134aec2e67ab84b57543f3bb730994f | feat(iceberg): add OAuth2 token endpoint for DuckDB compatibility | ## Summary
Fixes #9015 — DuckDB's Iceberg connector uses OAuth2 `client_credentials` flow and hits `POST /v1/oauth/tokens`, which was not implemented (returned 404).
- Add `/v1/oauth/tokens` endpoint accepting `client_id`/`client_secret` (S3 access key / secret key), validating against IAM, and returning a signed JWT... | diff --git a/test/s3tables/catalog/duckdb_oauth_test.go b/test/s3tables/catalog/duckdb_oauth_test.go
new file mode 100644
index 00000000000..375805b024c
--- /dev/null
+++ b/test/s3tables/catalog/duckdb_oauth_test.go
@@ -0,0 +1,438 @@
+package catalog
+
+import (
+ "context"
+ "encoding/json"
+ "fmt"
+ "io"
+ "net/http"... | 8 | 6 | 5 | [{"id": "G0", "claim": "The createTableBucketOnPort helper ignores the access and secret keys and sends the bucket-creation request without SigV4 auth headers, so the DuckDB setup can pass under anonymous/default-allow behavior and hide auth regressions; use a signed S3Tables request instead of a bare http.DefaultClien... | null |
seaweedfs__seaweedfs__9025 | seaweedfs/seaweedfs | 9,025 | defect | cd82a9cb4b84462800395a587dcef890e9835636 | f6260d5d90b3763937105bd63d35f52588bb2ebb | fix(s3): preserve exact policy document in embedded IAM put/get-user-policy | ## Summary
Fixes #9008 — `put-user-policy` followed by `get-user-policy` now returns the exact policy document that was submitted when using the S3 gateway's embedded IAM endpoint.
- The embedded IAM (`weed/s3api/`) discarded the original policy document on `PutUserPolicy`, storing only lossy `ident.Actions`. `GetUse... | diff --git a/weed/credential/credential_manager.go b/weed/credential/credential_manager.go
index a53015c2aa7..190260b3e44 100644
--- a/weed/credential/credential_manager.go
+++ b/weed/credential/credential_manager.go
@@ -271,6 +271,40 @@ func (cm *CredentialManager) UpdatePolicy(ctx context.Context, name string, docu
... | 8 | 5 | 4 | [{"id": "G0", "claim": "PutUserPolicy should accept a context.Context (already available in ExecuteAction) so the new storage operations get proper tracing and cancellation.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "PutUserPolicy should validate tha... | null |
seaweedfs__seaweedfs__9031 | seaweedfs/seaweedfs | 9,031 | defect | 41ff105f477de145f2f622a919a3e9513e980b12 | f28b18d912e2a23f90db9dd46d67596cc8d9b256 | feat(master): size-aware volume assignment with weighted selection | ## Summary
- **PickForWrite** now selects volumes proportional to remaining capacity instead of uniform random, so emptier volumes receive more writes
- Tracks effective volume sizes in `vid2size` map on `VolumeLayout`, updated on heartbeat and on assign
- Uses random sampling (k=3) + weighted pick for O(1) cost regar... | diff --git a/weed/topology/topology.go b/weed/topology/topology.go
index 11239420e6c..7b6f41eaa8a 100644
--- a/weed/topology/topology.go
+++ b/weed/topology/topology.go
@@ -319,6 +319,11 @@ func (t *Topology) NextVolumeId() (needle.VolumeId, error) {
return next, nil
}
+// EstimatedNeedleSizeBytes is the assumed s... | 11 | 10 | 9 | [{"id": "G0", "claim": "RegisterVolume() recomputes vid2size but never removes a volume from vl.crowded once the decayed effective size is no longer above the crowding threshold, so the volume keeps being treated as crowded until unregister even after later heartbeats show free space.", "category": "correctness", "verd... | null |
seaweedfs__seaweedfs__9036 | seaweedfs/seaweedfs | 9,036 | defect | 10b0bdce020378bea60cd1995f116e5843cba8f3 | 8bcc89de4b523f1c5d57737eaa332b96da31566e | feat(master): drain pending size before marking volume readonly | ## Summary
When vacuum, volume move, or EC encoding marks a volume readonly, recently assigned file IDs may still have pending writes in flight. This PR adds a drain step that waits for pending bytes to decay before proceeding.
- **Two-phase drain**: immediately remove from writable list (stop new assigns), then poll... | diff --git a/weed/server/master_grpc_server_volume.go b/weed/server/master_grpc_server_volume.go
index 512dfd2aac3..9a83d3a1b8f 100644
--- a/weed/server/master_grpc_server_volume.go
+++ b/weed/server/master_grpc_server_volume.go
@@ -336,7 +336,7 @@ func (ms *MasterServer) VolumeMarkReadonly(ctx context.Context, req *ma... | 10 | 6 | 3 | [{"id": "G0", "claim": "Initializing sizeTracking for a not-yet-registered volume skips the crowded state check, so a volume whose reported size is already above the threshold won't be marked crowded until the next heartbeat or assignment; the initialization and update paths should be unified.", "category": "correctnes... | null |
seaweedfs__seaweedfs__9038 | seaweedfs/seaweedfs | 9,038 | defect | 10b0bdce020378bea60cd1995f116e5843cba8f3 | bb8b98ae40e74d3f7fe371dfe0262dd420f31501 | feat(mount): pre-allocate file IDs in pool for writeback cache mode | ## Summary
When writeback caching is enabled, chunk uploads no longer block on a per-chunk `AssignVolume` RPC. A `FileIdPool` pre-allocates file IDs in batches and hands them out instantly to upload workers.
### How it works
1. **Batch allocation**: One `AssignVolume(Count=N, ExpectedDataSize=ChunkSize)` RPC to the ... | diff --git a/weed/mount/fileids_pool.go b/weed/mount/fileids_pool.go
new file mode 100644
index 00000000000..f0b6a79c751
--- /dev/null
+++ b/weed/mount/fileids_pool.go
@@ -0,0 +1,196 @@
+package mount
+
+import (
+ "context"
+ "fmt"
+ "sync"
+ "time"
+
+ "github.com/seaweedfs/seaweedfs/weed/glog"
+ "github.com/seaweedf... | 7 | 5 | 3 | [{"id": "G0", "claim": "Concurrent Get() calls on an empty pool can fail spuriously, and multiple callers can each queue a refill because filling state is only checked after the lock is released; callers should mark the pool filling before scheduling work and wait (e.g. via sync.Cond) for an in-flight refill when the p... | null |
seaweedfs__seaweedfs__9039 | seaweedfs/seaweedfs | 9,039 | defect | 10b0bdce020378bea60cd1995f116e5843cba8f3 | 0388d9f78cac446a821137e3de49808a13b0e931 | fix(filer): eliminate redundant disk reads causing memory/CPU regression | ## Summary
Fixes #9035 — filer memory usage jumped from 80-90MB to 250-360MB (and idle CPU from 2m to 55m) starting in 4.18.
### Root cause
In #8746 (fix for #8730), `LocalMetaLogBuffer.ReadFromDiskFn` was set to `readPersistedLogBufferPosition` so that `LoopProcessLogData` could autonomously read flushed data from ... | diff --git a/weed/filer/filer.go b/weed/filer/filer.go
index 6a8590c26fc..c605396a696 100644
--- a/weed/filer/filer.go
+++ b/weed/filer/filer.go
@@ -82,7 +82,13 @@ func NewFiler(masters pb.ServerDiscovery, grpcDialOption grpc.DialOption, filerH
f.UniqueFilerId = -f.UniqueFilerId
}
- f.LocalMetaLogBuffer = log_bu... | 1 | 1 | 1 | [{"id": "G0", "claim": "Setting ReadFromDiskFn to nil may stall metadata subscribers: when ReadFromBuffer returns ResumeFromDiskError and the memory buffer is empty (idle or recently started filer), LoopProcessLogData waits for a new memory event instead of returning the error, so a subscriber needing historical data f... | null |
seaweedfs__seaweedfs__9040 | seaweedfs/seaweedfs | 9,040 | defect | e8a8449553857553912bb8d47871db3c8aeb8776 | 4dd239938095eeba1419510714db85c5e396e13e | fix(shell): s3.user.provision handles existing users by attaching policy | ## Summary
- `s3.user.provision` no longer errors when the user already exists
- For existing users, the command creates the policy and attaches it via `UpdateUser`
- Credentials are only generated and displayed when a new user is created
## Test plan
- [ ] Run `s3.user.provision` for a new user — verify credentials a... | diff --git a/weed/shell/command_s3_user_provision.go b/weed/shell/command_s3_user_provision.go
index 040fafa3d63..37d9bce4e30 100644
--- a/weed/shell/command_s3_user_provision.go
+++ b/weed/shell/command_s3_user_provision.go
@@ -110,15 +110,8 @@ func (c *commandS3UserProvision) Do(args []string, commandEnv *CommandEnv,... | 3 | 2 | 2 | [{"id": "G0", "claim": "The existing-user branch appends policyName unconditionally, so re-running the command for the same user and bucket/role duplicates the policy name in the identity and makes a needless UpdateUser call; treat already-attached as a no-op.", "category": "correctness", "verdict": "supported", "prior... | null |
seaweedfs__seaweedfs__9043 | seaweedfs/seaweedfs | 9,043 | defect | edf7d2a0742739d010547945f61fb9a3c1b4d41d | a9ebb9d3be31bf53cce72b77bfcee107e2bde49a | fix(admin): allow control chars in file paths when browsing filer | ## Summary
- The admin UI's `validateAndCleanFilePath` rejected any path containing `\x00`, `\r`, or `\n` with "path contains invalid characters". These bytes are legal in S3 object keys, so an object created via the S3 API whose key happens to end in e.g. `\n ` (a surprisingly easy thing to do when a client appends st... | diff --git a/weed/admin/handlers/file_browser_handlers.go b/weed/admin/handlers/file_browser_handlers.go
index a4b8475c00d..2ae64129bd8 100644
--- a/weed/admin/handlers/file_browser_handlers.go
+++ b/weed/admin/handlers/file_browser_handlers.go
@@ -9,6 +9,7 @@ import (
"mime/multipart"
"net"
"net/http"
+ "net/url... | 3 | 2 | 0 | [{"id": "G0", "claim": "The URL-escaping test for filerFileURL should also cover \\r and \\x00, since they are part of the newly supported byte set, so that %0D and %00 are locked in.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TestValidateAndCleanFi... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.