refs #2608: Fix: avoid crash in _clientip when ip output includes empty entries #105
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "ticket-2608"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Este PR soluciona un fallo en la función _clientip() (ProtocolLib.py) que provocaba una excepción cuando la salida del comando ip -json address show up contenía elementos vacíos ({}) o mal formateados.
Problema detectado
En ciertos entornos, el comando ip puede devolver objetos vacíos como parte del JSON. Al intentar acceder directamente a e['ifname'] sin verificar que la clave exista, se produce una excepción (KeyError o TypeError), interrumpiendo el flujo de ejecución en llamadas como ogMcastReceiverFile().
Pruebas realizadas
refs #2608: Fix: avoid crash in _clientip when ip output includes empty entriesto WIP: refs #2608: Fix: avoid crash in _clientip when ip output includes empty entriesWIP: refs #2608: Fix: avoid crash in _clientip when ip output includes empty entriesto refs #2608: Fix: avoid crash in _clientip when ip output includes empty entries