PowerStore: E-mailadresse, der er ændret af en tom streng ved hjælp af REST API, bør mislykkes, men returnerer resultatet.

Resumen: Forsøg på at ændre e-mailadressen i et email_notify_destination objekt med en tom streng ved hjælp af REST API bør mislykkes, men returnerer succes.

Este artículo se aplica a Este artículo no se aplica a Este artículo no está vinculado a ningún producto específico. No se identifican todas las versiones del producto en este artículo.

Síntomas

Ændring af email_notify_destination til en tom streng returnerer resultatet. Brugeren antager, at e-mailadressen er blevet fjernet.

Eksempel vist nedenfor:
POST https://10.229.xx.xx:443/api/rest/email_notify_destination
{
  "email_address": "example@emc.com",
  "notify_critical": true,
  "notify_major": false,
  "notify_minor": true,
  "notify_info": true
}

GET https://10.229.xx.xx:443/api/rest/email_notify_destination/eb028fe4-6c75-42e2-9aff-3d65d8dfbb25?select=*
200
{
  "id": "eb028fe4-6c75-42e2-9aff-3d65d8dfbb25",
  "email_address": "example@emc.com",
  "notify_critical": true,
  "notify_major": false,
  "notify_minor": true,
  "notify_info": true
}

PATCH https://10.229.xx.xx:443/api/rest/email_notify_destination/eb028fe4-6c75-42e2-9aff-3d65d8dfbb25
{"email_address": ""}
==>
204
Her er "email_address" det samme som før patchen:
GET https://10.229.xx.xx:443/api/rest/email_notify_destination/eb028fe4-6c75-42e2-9aff-3d65d8dfbb25?select=*
200
{
  "id": "204b3978-0b3a-4c6e-a2bf-4b716502dd71",
  "email_address": "example@emc.com",
  "notify_critical": true,
  "notify_major": false,
  "notify_minor": true,
  "notify_info": true
}

Causa

PowerStore tillader ikke brugere at indstille en e-mailadresse til en streng med 0 længde.

Resolución

Hvis du vil fjerne en e-mailadresse, skal du slette objektet ved hjælp af handlingen SLET ved hjælp af PowerStore Manager.

Productos afectados

PowerStore
Propiedades del artículo
Número del artículo: 000198831
Tipo de artículo: Solution
Última modificación: 30 may 2022
Versión:  1
Encuentre respuestas a sus preguntas de otros usuarios de Dell
Servicios de soporte
Compruebe si el dispositivo está cubierto por los servicios de soporte.