[ConfigCat] Evaluation errors are returned as a successful default with no error code
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 49
- Fork
- 85
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 53
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của open-feature/java-sdk-contrib
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
open-feature/java-sdk-contrib#1966 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
test(flagd): drop the per-scenario /stop in e2e teardown once the testbed includes flagd-testbed#396Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
open-feature/java-sdk-contrib#1891 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
open-feature/java-sdk-contrib#1861 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix!: opentelemetry-semconv-incubating bump renames feature_flag.provider_name attributeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
open-feature/java-sdk-contrib#1843 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[go-feature-flag] Should remote evaluation emit events and fail init on an unreachable relay proxy?Có thể đã có người làm @thomaspoignant đã nhận 15 ngày trước. Đang mở
open-feature/java-sdk-contrib#1948 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của open-feature/java-sdk-contrib
Issue tương tự
-
maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
apache/maven-resources-plugin#569 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Data Sources visit drilldown returns an empty visitDurationByType for Achilles 1.7+ results (query still reads analysis 211)Có thể đã có người làm @DG47 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
BUG
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
camel-tooling/camel-language-server#1482 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
micronaut-projects/micronaut-redis#844 ·
Maintainer thường phản hồi trong vòng 4 ngày