[Bug]: host-rewrite policy documentation lists fewer allowed host characters than the policy accepts
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 91/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- documentation
Hướng nghiên cứu
Đọc phần "User Parameters (API Definition)" trong docs/host-rewrite/v1.1/docs/host-rewrite.md và so sánh mô tả về các ký tự được phép với mẫu trong policies/host-rewrite/policy-definition.yaml. Cập nhật tài liệu để bổ sung dấu hai chấm mà schema đã chấp nhận. Hoàn tất khi bảng tham số mô tả chính xác các ký tự được chấp nhận trong host, bao gồm các cổng như backend.example.com:8080.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Please select the area the issue is related to
Gateway
Please select the aspect the issue is related to
Aspect/Other (Anything else which does not match above categories)
Description
The parameter table in the host-rewrite policy documentation says the host value allows letters, digits, - and .. The policy's schema also allows :.
- Doc:
docs/host-rewrite/v1.1/docs/host-rewrite.mdin wso2/gateway-controllers, section "User Parameters (API Definition)": "Allowed characters: letters, digits,-and.." - Schema:
policies/host-rewrite/policy-definition.yaml,pattern: "^[a-zA-Z0-9.:-]+$".
The doc's own Notes section says a port may be included, for example backend.example.com:8080. That needs :. The integration tests confirm a host with a port is accepted and sent upstream unchanged.
Steps to Reproduce
- Read the parameter table in
docs/host-rewrite/v1.1/docs/host-rewrite.md. - Compare it with the
patterninpolicies/host-rewrite/policy-definition.yaml. - Deploy an API with host-rewrite
host: backend.example.com:8080andhostRewrite: manualon the upstream. - The API is accepted, and the upstream receives
Host: backend.example.com:8080.
Severity Level of the Issue
Severity/Trivial (Cosmetic issues. Can be fixed in future releases)
Environment Details (with versions)
- host-rewrite policy v1.1.0, built from wso2/gateway-controllers source (commit
4f1520a8). Doc v1.1. - Gateway 1.1.0, 1.2.0 and main (
main-a7e8774).
- Ngôn ngữ chính
- Go
- Star
- 85
- Fork
- 137
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 247
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không 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 wso2/api-platform
-
Area/DeveloperPortal Aspect/UI Severity/Minor Type/Bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
wso2/api-platform#4369 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area/Gateway Aspect/API Severity/Minor Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wso2/api-platform#4348 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Aspect/AI Aspect/API. Severity/Major
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
wso2/api-platform#4343 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: content-length-guardrail policy accepts a non-string streamingJsonPath at API creationĐang mởArea/Policies Aspect/Configuration Severity/Minor Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
wso2/api-platform#4330 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area/Policies Aspect/API Aspect/Configuration Severity/Minor Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
wso2/api-platform#4329 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của wso2/api-platform
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
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 73/100
keyxmakerx/Chronicle#2285 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vLLM metrics adapter tests start the adapter twice and race on its request countersCó thể đã có người làm @bhargavchintam đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
llm-d/llm-d-inference-sim#933 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
spellshift/realm#2509 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[数据源补充]111.55.160.167等Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
lionsoul2014/ip2region#552 ·
Maintainer thường phản hồi trong vòng 1 ngày