<feed xmlns='http://www.w3.org/2005/Atom'>
<title>jellyfin/tests/Jellyfin.Api.Tests/Controllers/ItemUpdateControllerTests.cs, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.b0n.dev/jellyfin/atom?h=master</id>
<link rel='self' href='https://git.b0n.dev/jellyfin/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/'/>
<updated>2026-07-21T06:51:30Z</updated>
<entry>
<title>Make ItemUpdateController.UpdateItem internal instead of reflection</title>
<updated>2026-07-21T06:51:30Z</updated>
<author>
<name>zerafachris</name>
<email>christopher.zerafa@blocklabs.io</email>
</author>
<published>2026-07-21T06:51:30Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=53e58d8b1b61c44405322bf91a8aa230f02b8323'/>
<id>urn:sha1:53e58d8b1b61c44405322bf91a8aa230f02b8323</id>
<content type='text'>
Addresses review feedback from @Bond-009 on PR #17370: the test helper
InvokeUpdateItem was invoking the private UpdateItem(BaseItemDto, BaseItem)
method via reflection. Jellyfin.Api.csproj already grants
InternalsVisibleTo("Jellyfin.Api.Tests"), so the method is changed to
internal and the test now calls it directly, removing the
GetMethod/Invoke boilerplate.

Co-Authored-By: Claude Sonnet 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>fix: don't throw ArgumentNullException on partial UpdateItem payloads (#17366)</title>
<updated>2026-07-17T15:20:30Z</updated>
<author>
<name>zerafachris</name>
<email>christopher.zerafa@blocklabs.io</email>
</author>
<published>2026-07-17T15:20:30Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=5cd3d7ebb7c8ce5b7cf68b0696543780215a6fff'/>
<id>urn:sha1:5cd3d7ebb7c8ce5b7cf68b0696543780215a6fff</id>
<content type='text'>
BaseItemDto.Genres, .Tags, and .ProviderIds are plain auto-properties with
no default initializer, so they deserialize to null when a client omits
them from a partial POST /Items/{itemId} body. The OpenAPI spec documents
every BaseItemDto field as optional, but ItemUpdateController.UpdateItem
fed these three properties straight into Distinct()/Select()/ToList()
without a null check, so a request that (for example) only sets Tags
throws ArgumentNullException("source") once it reaches the unguarded
Genres line, before Tags is even processed.

Guard all three assignments with the same "if (request.X is not null)"
pattern already used for the neighboring Studios/Taglines/ProductionLocations
fields in this method, so omitted fields are left unchanged instead of
crashing the request.

Adds ItemUpdateControllerTests covering the reported repro (only Tags
supplied) and a companion case asserting existing Genres/ProviderIds are
preserved when omitted from the payload.

Signed-off-by: zerafachris &lt;christopher.zerafa@blocklabs.io&gt;
</content>
</entry>
</feed>
