تخطَّ إلى المحتوى

Stack Trace Exposure (ARCH8127)

هذا المحتوى غير متوفر بلغتك بعد.

Key kotlin.security.stack-trace-exposure · Severity warning · Category security · CWE CWE-209

Flags exception messages or stack traces written into an HTTP response body.

call.respond(HttpStatusCode.InternalServerError, e.stackTraceToString())
logger.error("request failed", e)
call.respond(HttpStatusCode.InternalServerError, ErrorDto("internal_error"))

Log the exception; answer with a generic message and a correlation id.