mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4473] [MERGED] Don't throw exception when converting values using binder or JsonConv… #10093
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4473
Author: @crobibero
Created: 11/12/2020
Status: ✅ Merged
Merged: 11/14/2020
Merged by: @cvium
Base:
master← Head:binder-no-throw📝 Commits (4)
0c23b8cDon't throw exception when converting values using binder or JsonConverter5c40ad0Remove conditional access.cfefcd9Updated based on review feedback450cd61Update Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinder.cs📊 Changes
3 files changed (+89 additions, -36 deletions)
View changed files
📝
Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinder.cs(+48 -17)📝
MediaBrowser.Common/Json/Converters/JsonCommaDelimitedArrayConverter.cs(+24 -3)📝
tests/Jellyfin.Api.Tests/ModelBinders/CommaDelimitedArrayModelBinderTests.cs(+17 -16)📄 Description
Activator.CreateInstance with an
IServiceProviderisn't available until .Net5, so silently ignore the invalid value for now.Note: Invalid values in a proper json array will still throw exceptions, this is just for backwards compatibility.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.