Updating a card on an incoming federated board without `done` returns 500
Los mantenedores suelen responder en 1 día
@AlirezaAghaee1996 ya está trabajando en esto.
Desde el 28/11/2026.
- #8823 de @AlirezaAghaee1996 — abierto
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
Línea de trabajo
El fallo está en ExternalBoardService::updateCardOnRemote() en lib/Service/ExternalBoardService.php, donde $done se desreferencia alrededor de la línea 175 sin comprobación de null. Lee ese método y los parámetros que reenvía a DeckFederationProxy::put(), y después añade pruebas unitarias para llamadas sin done, con un valor y con un null explícito. Se considera terminado cuando una actualización sin done se reenvía al propietario sin la clave done y devuelve 200 en lugar de 500.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
ExternalBoardService::updateCardOnRemote() calls $done->getValue(), but $done is null when the request has no done key:
https://github.com/nextcloud/deck/blob/bf65da22e13a366c70c72391beaee00ed2152810/lib/Service/ExternalBoardService.php#L175
Updating a card on an incoming federated board through the API then fails before anything is sent to the owner.
To Reproduce
- Share a board from instance B with a user on instance A.
- As that user on instance A, call
PUT /ocs/v2.php/apps/deck/api/v1.0/cards/{cardId}withid,boardId(the local board id),stackId,title,type,order,description,duedateanddeletedAt, but withoutdone. - Response 500. Log:
Call to a member function getValue() on null in …/lib/Service/ExternalBoardService.php line 175.
Expected behavior
The update is forwarded to the owner.
Suggested fix
Only forward done when the client sent it, so the owner handles the request the same way as a local update with the same parameters:
$params = [
// … all current keys except 'done' …
];
if ($done !== null) {
$params['done'] = $done->getValue();
}
Unit tests can call updateCardOnRemote() without done, with a value and with an explicit null, and check the parameters passed to DeckFederationProxy::put(). I tested this change with unit tests and on the two instances below: the update now returns 200 and arrives at the owner.
Server details
Two instances, both Docker, MariaDB 11.8 / MySQL, PHP 8.5.13:
- Instance A: Nextcloud 35.0.3, Deck 1.19.2
- Instance B: Nextcloud 34.0.6, Deck 1.18.7
The code paths are unchanged on main (bf65da22e).
This report was drafted with AI assistance (Claude Code) and reproduced on the two instances above.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.4k
- Forks
- 380
- Merge medio
- 1 d 17 h
- PR fusionados (30 d)
- 72
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 nextcloud/deck
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
2 small URL BugsAbierto1. to develop bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
nextcloud/deck#8834 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Updating a card without `done` clears its done statePosiblemente ocupada @whoalin1 la tomó hace 5 días. Abierto0. Needs triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Deck treats unset files_sharing server-to-server keys as disabledPosiblemente ocupada @whoalin1 la tomó hace 5 días. Abierto0. Needs triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de nextcloud/deck
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vecture-be/belgium-data-desk#181 ·
Los mantenedores suelen responder en 1 día
-
enhancement frontend reconciliation UX
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
humlab-sead/sead_shape_shifter#882 ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
erkamyaman/rust-anything#1381 ·
Los mantenedores suelen responder en 1 día
-
a11y accessibility area: i18n area: pages area: sites bug i18n priority: P2 seo tech: javascript tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
flisk-sh/chat#833 · 1 comentario ·
Los mantenedores suelen responder en 1 día