Creation of a new target succeeds despite empty name
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start at the POST /rest/v1/targets endpoint and trace how target creation handles the name field. Reproduce the request from the issue's shell example; done means an empty name is rejected instead of creating a target named after its controller ID.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm working on a library providing Go bindings for Eclipse Hawkbit. As a part of the process I created integration tests that interrogate a real Hawkbit installation to see how it behaves.
According to the documentation at https://www.eclipse.org/hawkbit/rest-api/targets-api-guide/#_create_list_of_targets the name fields is mandatory when creating a target. Providing an empty value unexpectedly succeeds, with the name being set to the controller ID.
See the sample shell test program I created.
# We should not be able to create a target with an empty name
# https://www.eclipse.org/hawkbit/rest-api/targets-api-guide/#_create_list_of_targets
curl \
--verbose \
--dump-header resp.head \
--output resp.body \
-H "$TEST_HAWKBIT_AUTH" \
-H 'Accept: application/hal+json' \
-H 'Content-Type: application/json;charset=UTF-8' \
"${TEST_HAWKBIT_URL}/rest/v1/targets" \
-d '[{"controllerId": "1001", "name": "", "description": "First test device", "securityToken": "9999", "address": "https://localhost:8001"}]'
# The request unexpected succeeds.
fromdos resp.head
GREP -qFx 'HTTP/1.1 201 Created' < resp.head
# The returned data is sane.
jq '.[0].controllerId' -r < resp.body | GREP -qFx 1001
# The name seems to default to the value of the controllerId.
jq '.[0].name' -r < resp.body | GREP -qFx "1001"
jq '.[0].description' -r < resp.body | GREP -qFx "First test device"
jq '.[0].createdBy' -r < resp.body | GREP -qFx admin
jq '.[0].lastModifiedBy' -r < resp.body | GREP -qFx admin
jq '.[0].updateStatus' -r < resp.body | GREP -qFx unknown
jq '.[0]._links.self.href' -r < resp.body | GREP -qFx "${TEST_HAWKBIT_URL}/rest/v1/targets/1001"
- Ngôn ngữ chính
- Java
- Star
- 601
- Fork
- 228
- Merge trung bình
- 18 giờ 20 phút
- Pull request đã merge (30 ngày)
- 58
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 eclipse-hawkbit/hawkbit
-
hawkbit-dmf-server 1.1.0 does not start: NoClassDefFoundError jakarta/servlet/ServletResponseĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
eclipse-hawkbit/hawkbit#3429 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
eclipse-hawkbit/hawkbit#3266 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Configurable automatic retries for failed actions (policy, backoff, rollout and auto-assignment support)Có thể làm lại được @strailov đã nhận 76 ngày trước và không có pull request nào đang mở. Đang mởfeature request
eclipse-hawkbit/hawkbit#3251 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
IN_SYNC and rollout success can be recorded while the device still runs the old imageCó thể làm lại được @denislavprinov đã nhận 108 ngày trước và không có pull request nào đang mở. Đang mở
eclipse-hawkbit/hawkbit#3185 · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
doumentation: openapi.json is not updated after recent Hawkbit releasesCó thể làm lại được @denislavprinov đã nhận 73 ngày trước và không có pull request nào đang mở. Đang mở
eclipse-hawkbit/hawkbit#3035 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-hawkbit/hawkbit
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ReChronoRain/HyperCeiler#1743 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Weaviate: bump test image to 1.39.13 (CVE-2026-111943) and identify solon-ai via integration headerĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
JabRef/jabref#17546 · 1 bình luận ·
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 86/100
hiero-ledger/hiero-sdk-java#3010 ·
Maintainer thường phản hồi trong vòng 1 ngày