Doesn't respond with SERVFAIL when throwing an error #2
Rótulos
Sem rótulo
Sem etapa
Sem encarregados
1 Participantes
Notificações
Data de vencimento
Sem data de vencimento definida.
Dependências
Não estão definidas dependências.
Referência: coolaj86/digd.js#2
Carregando…
Criar uma nova questão referindo esta
Nenhuma descrição fornecida.
Eliminar o ramo "%!s(<nil>)"
Eliminar um ramo é algo permanente. Embora o ramo eliminado possa continuar a existir por um breve período de tempo antes de ser realmente removido, a operação NÃO PODERÁ ser desfeita na maioria dos casos. Quer continuar?
When an error is thrown (such as malformed json data that cannot be written as binary), the server should respond with SERVFAIL
Here's how to observe this error:
Create a db file with bad data (the required field "exchange" is missing from the MX record):
fail.json
Installing and running the digd.js server:
In another terminal, while the server is running:
The server throws an error and nothing comes back. Instead a SERVFAIL should come back.
Note: we should also validate the date... but we should correct the server's handling of error cases before we correct the case that causes an error.