[ConfigCat] Evaluation errors are returned as a successful default with no error code
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- java
調査の方向性
Start with ConfigCatProvider's getEvaluation method, which the issue identifies as ignoring EvaluationDetails.getError(), and reproduce the cases using the module tests' local features.json override. Done means missing flags return FLAG_NOT_FOUND with reason ERROR, and other evaluation errors return GENERAL with the ConfigCat error message.
索引モデルが issue の本文から書いたものです。
説明
Observed behavior
When ConfigCat cannot evaluate a flag, ConfigCatProvider returns the caller's default value with no errorCode, no errorMessage and no reason. Error hooks do not run, and the evaluation looks successful.
This affects at least these cases:
- The flag key does not exist in the config.
- The flag type does not match the requested type, for example
getIntegerDetailson a string setting.
ConfigCat itself detects both errors and reports them in EvaluationDetails.getError(), but getEvaluation ignores that field.
Expected behavior
A missing flag resolves with errorCode=FLAG_NOT_FOUND and reason=ERROR. Other ConfigCat evaluation errors resolve with an error code (GENERAL) and the ConfigCat error message.
Steps to reproduce
Use the provider with the local features.json override from the module tests:
FlagEvaluationDetails<String> details = client.getStringDetails("non-existing", "fallback_str");
// value=fallback_str, reason=null, errorCode=null, errorMessage=null
ConfigCat logs [1001] Failed to evaluate setting 'non-existing' (the key was not found in config JSON), but the OpenFeature result reports no error.
Version: dev.openfeature.contrib.providers:configcat 0.2.1 (current main), configcat-java-client 9.4.4.
- 主要言語
- Java
- スター
- 49
- フォーク
- 85
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 55
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
open-feature/java-sdk-contrib のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
open-feature/java-sdk-contrib#1966 ·
メンテナーはふだん 1 日以内に返信
-
test(flagd): drop the per-scenario /stop in e2e teardown once the testbed includes flagd-testbed#396オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
open-feature/java-sdk-contrib#1891 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
open-feature/java-sdk-contrib#1861 ·
メンテナーはふだん 1 日以内に返信
-
fix!: opentelemetry-semconv-incubating bump renames feature_flag.provider_name attribute対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
open-feature/java-sdk-contrib#1843 ·
メンテナーはふだん 1 日以内に返信
-
[go-feature-flag] Should remote evaluation emit events and fail init on an unreachable relay proxy?対応中かも @thomaspoignant が 14 日前に担当しました。 オープン
open-feature/java-sdk-contrib#1948 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
open-feature/java-sdk-contrib の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
objectionary/lints#1640 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
openhab/openhab-addons#22168 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
wildfly/wildfly-channel#446 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信