[ConfigCat] Evaluation errors are returned as a successful default with no error code

オープン
#1,963 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@RaphaelFakhri がすでに取り組んでいます。

2026年11月3日 から。

  • #1964 @RaphaelFakhri による — オープン

評価

難易度
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 getIntegerDetails on 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

open-feature/java-sdk-contrib のほかの issue

open-feature/java-sdk-contrib の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。