[PR #3313] [MERGED] Update AuthorController to handle invalid image paths and log a warning #3932

Closed
opened 2026-04-25 00:17:37 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/3313
Author: @mikiher
Created: 8/20/2024
Status: Merged
Merged: 8/22/2024
Merged by: @advplyr

Base: masterHead: author-image-path


📝 Commits (1)

  • 20a3657 Update AuthorController to handle invalid image paths and log a warning

📊 Changes

1 file changed (+5 additions, -5 deletions)

View changed files

📝 server/controllers/AuthorController.js (+5 -5)

📄 Description

This fixes #3267 (at least partly)

Up until now, we only tested for !author.imagePath || !(await fs.pathExists(author.imagePath)) for raw author image requests.
The fix tests this for all author image requests.


🔄 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/advplyr/audiobookshelf/pull/3313 **Author:** [@mikiher](https://github.com/mikiher) **Created:** 8/20/2024 **Status:** ✅ Merged **Merged:** 8/22/2024 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `author-image-path` --- ### 📝 Commits (1) - [`20a3657`](https://github.com/advplyr/audiobookshelf/commit/20a365706313b2fe9f3e5f73bfef83a1deba135c) Update AuthorController to handle invalid image paths and log a warning ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `server/controllers/AuthorController.js` (+5 -5) </details> ### 📄 Description This fixes #3267 (at least partly) Up until now, we only tested for `!author.imagePath || !(await fs.pathExists(author.imagePath))` for raw author image requests. The fix tests this for all author image requests. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:17:37 +02:00
adam closed this issue 2026-04-25 00:17:37 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3932