envoyproxy / envoyproxy/java-control-plane
the max value of 'max_request_bytes' is not match
- Ngôn ngữ chính
- Java
- Star
- 312
- Fork
- 149
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
We have a problem when load the file envoy.yaml to xds developing based on this project. The max value in envoy.yaml is 4294967295, but the max value in this project is 2147483647 (Java's Int type).
The content in envoy.yaml as follows:
```
http_filters:
- name: envoy.ext_authz
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz
http_service:
server_uri:
uri: 10.160.78.3:1001
cluster: ext-authz
timeout: 1s
failure_mode_allow: false
with_request_body:
max_request_bytes: **4294967295**
allow_partial_message: true
```
but when load the content to xds, the value exceeds the max value of Java's Int type.
---------
[api/src/main/proto/envoy/config/filter/http/ext_authz/v2/ext_authz.proto]
uint32 max_request_bytes ;
uint32 corresponds to int in Java and int32 in Go, so this will result in an error when load the envoy.yaml.
I
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với api/src/main/proto/envoy/config/filter/http/ext_authz/v2/ext_authz.proto và theo dõi cách giá trị uint32 max_request_bytes của nó được tải từ envoy.yaml vào control plane Java xDS. Tái hiện lỗi đã được báo cáo với 4294967295; hoàn thành khi cấu hình tải được giá trị đó mà không gặp lỗi Java về phạm vi Int hiện tại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- api
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100