Retry-After parser accepts invalid delay-seconds values
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- java
調査の方向性
RetryUtil.retryAfterNanos と io.opentelemetry.exporter.internal.RetryUtilTest にある既存のテストから始めてください。パーサーが +30、-0、٣٠ をどのように処理するか確認し、そのテストクラスを実行してください。不正な値がそれぞれ OptionalLong.empty() を返し、有効な ASCII の遅延秒数が引き続き解析されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The internal RetryUtil.retryAfterNanos parser accepts +30 as a 30-second delay and -0 as zero. Long.parseLong also accepts non-ASCII decimal digits. These values do not match the HTTP Retry-After delay-seconds grammar (1*DIGIT, ASCII 0–9).
The JDK and OkHttp HTTP senders use this parser. An accepted malformed value overrides their ordinary retry backoff instead of being ignored.
Steps to reproduce
In the existing io.opentelemetry.exporter.internal.RetryUtilTest, pass +30, -0, or ٣٠ to RetryUtil.retryAfterNanos(value, Instant.EPOCH).
What did you expect to see?
OptionalLong.empty(), as for other malformed values, so the ordinary retry policy applies.
What did you see instead?
OptionalLong.of(30000000000L) for +30; OptionalLong.of(0L) for -0; non-ASCII decimal digits are also parsed as a delay.
What version and what artifacts are you using?
Artifacts: exporters/common (used by the JDK and OkHttp senders)
Version: source checkout at f02bddc
How referenced: direct source checkout
Environment
Compiler: Temurin 25.0.5
OS: macOS 15.5
Additional context
The HTTP grammar is defined in RFC 9110 section 10.2.3.
- 主要言語
- Java
- スター
- 2.5k
- フォーク
- 1k
- 平均マージ
- 4日 3時間
- マージ済み PR(30日)
- 49
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
open-telemetry/opentelemetry-java のほかの issue
-
PrometheusComponentProvider promotes all resource attributes when resource_constant_labels is empty ({})対応中かも @rooks-ns が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
open-telemetry/opentelemetry-java#9014 ·
メンテナーはふだん 2 日以内に返信
-
MetricReusableDataMarshaler passes MetricData count instead of data point count to otel.sdk.exporter.metric_data_point.{inflight,exported}対応中かも @goutamadwant が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
open-telemetry/opentelemetry-java#9011 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Fix `otel.sdk.log.created` counting semantics対応中かも @anuraaga が 94 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
open-telemetry/opentelemetry-java#8688 ·
メンテナーはふだん 2 日以内に返信
-
Add experimental view_matching_mode (composable metric views) support対応中かも @rooks-ns が今日担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
open-telemetry/opentelemetry-java#9013 ·
メンテナーはふだん 2 日以内に返信
-
Span/log processors and PeriodicMetricReader use static ComponentId, causing all instances to share otel.component.name "<type>/0"対応中かも @goutamadwant が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
open-telemetry/opentelemetry-java#9012 ·
メンテナーはふだん 2 日以内に返信
open-telemetry/opentelemetry-java の issue をすべて見る
似ている issue
-
hermes-queue
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
chrisalunlloyd2-sudo/mindpalace#349 ·
メンテナーはふだん 1 日以内に返信
-
bug priority: medium Review effort [1-5]: 2 status: needs-triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
carlos-emr/carlos#5818 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue help wanted tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
appmonster007/kmip-adapter#100 ·
-
accepted good first issue java
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug main ui
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openhab/openhab-webui#4671 ·
メンテナーはふだん 1 日以内に返信