[PR #6466] [CLOSED] Users/rmcn96/fix readonly image #10978

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

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/6466
Author: @AgentScrubbles
Created: 8/25/2021
Status: Closed

Base: masterHead: users/rmcn96/fix-readonly-image


📝 Commits (10+)

  • aff717a Opening up debugging, catching exception
  • 8edff53 Trying to get cicd up
  • 95b1514 Trying to get cicd up
  • 1806197 Trying to get cicd up
  • 856a38a Trying to enable debugging in the dockerfile
  • 690cb29 Fixing build
  • ac3cbf5 Do not throw if file is not allowed to be deleted
  • 76fd463 Cleaning up the method
  • cff3c14 Adding catch clause for read only
  • e5df947 Cleanup

📊 Changes

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

View changed files

📝 MediaBrowser.Providers/Manager/ImageSaver.cs (+4 -0)
📝 MediaBrowser.Providers/Manager/ItemImageProvider.cs (+4 -0)

📄 Description

Changes
To reproduce: Media is stored on a read-only medium, such as a readonly mount. Have a piece of media that has a cover art automatically read in by the media scanner. If you try to replace that cover art, the API would return a 500 error due to the underlying system being read only.

The issue is resolved by handling the read-only IO Exception in the same manner it handles files that are not found. It now ignores the error (because it is not allowed to delete the file), and continues with the metadata changes. In the internal DB it recognizes that the art has been changed, while the original file is untouched.


🔄 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/6466 **Author:** [@AgentScrubbles](https://github.com/AgentScrubbles) **Created:** 8/25/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `users/rmcn96/fix-readonly-image` --- ### 📝 Commits (10+) - [`aff717a`](https://github.com/jellyfin/jellyfin/commit/aff717a029bd6118edbebdf2b4389ae36bc5b64d) Opening up debugging, catching exception - [`8edff53`](https://github.com/jellyfin/jellyfin/commit/8edff530ad9be51d8be493a777f967b43f95ed25) Trying to get cicd up - [`95b1514`](https://github.com/jellyfin/jellyfin/commit/95b1514170a9df29b7691b91843744a23b9e531e) Trying to get cicd up - [`1806197`](https://github.com/jellyfin/jellyfin/commit/1806197ae11f29499a5905bd88ccc6a03c0473e1) Trying to get cicd up - [`856a38a`](https://github.com/jellyfin/jellyfin/commit/856a38aa55584dc14389d266e205faa888d65cea) Trying to enable debugging in the dockerfile - [`690cb29`](https://github.com/jellyfin/jellyfin/commit/690cb2933133463d79b57bd366ae82f7a72625bd) Fixing build - [`ac3cbf5`](https://github.com/jellyfin/jellyfin/commit/ac3cbf56083caa5fd89a68c8b851995e127f4ab5) Do not throw if file is not allowed to be deleted - [`76fd463`](https://github.com/jellyfin/jellyfin/commit/76fd463f6d378a9b58e7094235fd1fe9ff2f2304) Cleaning up the method - [`cff3c14`](https://github.com/jellyfin/jellyfin/commit/cff3c14434952dc5a89aee3967c44b9b192be034) Adding catch clause for read only - [`e5df947`](https://github.com/jellyfin/jellyfin/commit/e5df9474380c085065e16a0705845dd9dbfaed60) Cleanup ### 📊 Changes **2 files changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Providers/Manager/ImageSaver.cs` (+4 -0) 📝 `MediaBrowser.Providers/Manager/ItemImageProvider.cs` (+4 -0) </details> ### 📄 Description **Changes** To reproduce: Media is stored on a read-only medium, such as a readonly mount. Have a piece of media that has a cover art automatically read in by the media scanner. If you try to replace that cover art, the API would return a 500 error due to the underlying system being read only. The issue is resolved by handling the read-only IO Exception in the same manner it handles files that are not found. It now ignores the error (because it is not allowed to delete the file), and continues with the metadata changes. In the internal DB it recognizes that the art has been changed, while the original file is untouched. --- <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:30:14 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#10978