[PR #3186] [MERGED] Don't send Exception message in Production Environment #9371

Closed
opened 2026-02-07 06:01:00 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/3186
Author: @daullmer
Created: 5/26/2020
Status: Merged
Merged: 6/4/2020
Merged by: @dkanada

Base: api-migrationHead: asp-api-exception


📝 Commits (2)

  • a5a3930 Don't send Exception message in Production Environment
  • 6d9f564 Remove duplicate code

📊 Changes

1 file changed (+12 additions, -2 deletions)

View changed files

📝 Jellyfin.Server/Middleware/ExceptionMiddleware.cs (+12 -2)

📄 Description

Changes
Because of security reasons, exception messages should no longer get sent to the Clients, unless the server is running in Development mode. This PR adds this change only to the new ASP API endpoint.

Issues
Fixes #2965 (in combination with #3185 )


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/3186 **Author:** [@daullmer](https://github.com/daullmer) **Created:** 5/26/2020 **Status:** ✅ Merged **Merged:** 6/4/2020 **Merged by:** [@dkanada](https://github.com/dkanada) **Base:** `api-migration` ← **Head:** `asp-api-exception` --- ### 📝 Commits (2) - [`a5a3930`](https://github.com/jellyfin/jellyfin/commit/a5a39300bc733ad7b1d3c683f5f290a742171661) Don't send Exception message in Production Environment - [`6d9f564`](https://github.com/jellyfin/jellyfin/commit/6d9f564a949e326e909cbcfd37d254195b40ba56) Remove duplicate code ### 📊 Changes **1 file changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Server/Middleware/ExceptionMiddleware.cs` (+12 -2) </details> ### 📄 Description **Changes** Because of security reasons, exception messages should no longer get sent to the Clients, unless the server is running in Development mode. This PR adds this change only to the new ASP API endpoint. **Issues** Fixes #2965 (in combination with #3185 ) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:01:00 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9371