[PR #5596] [MERGED] Implemented DLNA exception handling #10570

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

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/5596
Author: @BaronGreenback
Created: 3/22/2021
Status: Merged
Merged: 3/25/2021
Merged by: @Bond-009

Base: masterHead: DLNA_Hardening


📝 Commits (1)

📊 Changes

4 files changed (+51 additions, -14 deletions)

View changed files

📝 Emby.Dlna/PlayTo/Device.cs (+33 -8)
📝 Emby.Dlna/PlayTo/PlayToManager.cs (+5 -0)
📝 Emby.Dlna/PlayTo/SsdpHttpClient.cs (+11 -4)
📝 tests/Jellyfin.Networking.Tests/NetworkParseTests.cs (+2 -2)

📄 Description

Badly formed XML responses from devices cause exceptions and crashing JF.

This fix wraps the http request in a try/catch handler, and returns null.
All methods down the line using this function have had addition null checks adding.

Fixes https://github.com/jellyfin/jellyfin/issues/5560


🔄 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/5596 **Author:** [@BaronGreenback](https://github.com/BaronGreenback) **Created:** 3/22/2021 **Status:** ✅ Merged **Merged:** 3/25/2021 **Merged by:** [@Bond-009](https://github.com/Bond-009) **Base:** `master` ← **Head:** `DLNA_Hardening` --- ### 📝 Commits (1) - [`4bd345f`](https://github.com/jellyfin/jellyfin/commit/4bd345fbabd7832bcb91a920ec81dc14a7420218) DLNA Exception catching ### 📊 Changes **4 files changed** (+51 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Dlna/PlayTo/Device.cs` (+33 -8) 📝 `Emby.Dlna/PlayTo/PlayToManager.cs` (+5 -0) 📝 `Emby.Dlna/PlayTo/SsdpHttpClient.cs` (+11 -4) 📝 `tests/Jellyfin.Networking.Tests/NetworkParseTests.cs` (+2 -2) </details> ### 📄 Description Badly formed XML responses from devices cause exceptions and crashing JF. This fix wraps the http request in a try/catch handler, and returns null. All methods down the line using this function have had addition null checks adding. Fixes https://github.com/jellyfin/jellyfin/issues/5560 --- <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:22:41 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#10570