Creation of a new target succeeds despite empty name
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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"
- Lenguaje dominante
- Java
- Estrellas
- 601
- Forks
- 228
- Merge medio
- 18 h 20 min
- PR fusionados (30 d)
- 58
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de eclipse-hawkbit/hawkbit
-
hawkbit-dmf-server 1.1.0 does not start: NoClassDefFoundError jakarta/servlet/ServletResponseAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
eclipse-hawkbit/hawkbit#3429 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
eclipse-hawkbit/hawkbit#3266 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Configurable automatic retries for failed actions (policy, backoff, rollout and auto-assignment support)Quizá libre de nuevo @strailov la tomó hace 75 días y no hay ningún pull request abierto. Abiertofeature request
eclipse-hawkbit/hawkbit#3251 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
IN_SYNC and rollout success can be recorded while the device still runs the old imageQuizá libre de nuevo @denislavprinov la tomó hace 107 días y no hay ningún pull request abierto. Abierto
eclipse-hawkbit/hawkbit#3185 · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
doumentation: openapi.json is not updated after recent Hawkbit releasesQuizá libre de nuevo @denislavprinov la tomó hace 72 días y no hay ningún pull request abierto. Abierto
eclipse-hawkbit/hawkbit#3035 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de eclipse-hawkbit/hawkbit
Issues similares
-
human-required sync-failed
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Azure/osdu-spi-file#63 ·
Los mantenedores suelen responder en 1 día
-
frontend quick win
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
CodeForPhilly/benefit-decision-toolkit#571 ·
Los mantenedores suelen responder en 1 día
-
approved
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
checkstyle/checkstyle#22129 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Add Hardcharger JDBC driverPosiblemente ocupada @prmoore77 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día