[PR #5631] [MERGED] Fix SessionController.SendMessageCommand Body Binding #10583

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

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/5631
Author: @BrianCArnold
Created: 3/26/2021
Status: Merged
Merged: 4/7/2021
Merged by: @cvium

Base: masterHead: FixMessageCommand


📝 Commits (9)

  • 81e3e5c Changed SessionController.SendMessageCommand
  • f114ba5 Fixed comment and code block runes to match coding
  • 998833e Removed null check for body object and user [Required] attribute in replacement.
  • ca25301 Added Required attribute to Text property of MessageCommand.
  • 54107ae Fix spacing requirement for MessageCommand.
  • 80fe48f Update SessionController.cs
  • af03b28 Update SessionController.cs
  • 4fa2a32 Apply suggestions from code review
  • 3820671 Merge remote-tracking branch 'main/master' into FixMessageCommand

📊 Changes

2 files changed (+8 additions, -11 deletions)

View changed files

📝 Jellyfin.Api/Controllers/SessionController.cs (+5 -11)
📝 MediaBrowser.Model/Session/MessageCommand.cs (+3 -0)

📄 Description

Changed SessionController.SendMessageCommand to bind information to composite object instead query string parameters.

Changes
Changes selected parameter binding of SendMessageCommand to a single composite object bound by [FromBody].

Issues
Resolves: #5628


🔄 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/5631 **Author:** [@BrianCArnold](https://github.com/BrianCArnold) **Created:** 3/26/2021 **Status:** ✅ Merged **Merged:** 4/7/2021 **Merged by:** [@cvium](https://github.com/cvium) **Base:** `master` ← **Head:** `FixMessageCommand` --- ### 📝 Commits (9) - [`81e3e5c`](https://github.com/jellyfin/jellyfin/commit/81e3e5ca4883309b38377729e0bbd1b9f163ec7c) Changed SessionController.SendMessageCommand - [`f114ba5`](https://github.com/jellyfin/jellyfin/commit/f114ba57dd24ed38786a478df7a641f81dd9d5c7) Fixed comment and code block runes to match coding - [`998833e`](https://github.com/jellyfin/jellyfin/commit/998833ea6e4c52f842949029b278008b276e3e6b) Removed null check for body object and user [Required] attribute in replacement. - [`ca25301`](https://github.com/jellyfin/jellyfin/commit/ca25301e649342ef5598822fdd9ffc6eb2cd5065) Added Required attribute to Text property of MessageCommand. - [`54107ae`](https://github.com/jellyfin/jellyfin/commit/54107ae88262d835cac2d5a6f335b0c10d050b1a) Fix spacing requirement for MessageCommand. - [`80fe48f`](https://github.com/jellyfin/jellyfin/commit/80fe48fda972eff0d6b58ac8a9e2f63d44a1b23e) Update SessionController.cs - [`af03b28`](https://github.com/jellyfin/jellyfin/commit/af03b280bc91f65712af2cc854e8bf1ad349748a) Update SessionController.cs - [`4fa2a32`](https://github.com/jellyfin/jellyfin/commit/4fa2a32d81e263ef51140e2ae8259a02fdfb0d7d) Apply suggestions from code review - [`3820671`](https://github.com/jellyfin/jellyfin/commit/38206717247440d716440f0634674e18f832f5b5) Merge remote-tracking branch 'main/master' into FixMessageCommand ### 📊 Changes **2 files changed** (+8 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Api/Controllers/SessionController.cs` (+5 -11) 📝 `MediaBrowser.Model/Session/MessageCommand.cs` (+3 -0) </details> ### 📄 Description Changed SessionController.SendMessageCommand to bind information to composite object instead query string parameters. **Changes** Changes selected parameter binding of SendMessageCommand to a single composite object bound by [FromBody]. **Issues** Resolves: #5628 --- <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:57 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#10583