[Bug]: Refresh of "Audiobook File Management Tools" page results in library being reset to first library. #2693

Closed
opened 2026-04-25 00:09:39 +02:00 by adam · 2 comments
Owner

Originally created by @ZLoth on GitHub (Mar 30, 2025).

What happened?

When I refresh the "Audiobook File Management Tools" page, the library gets reset to the first library in the library pull-down menu. No other functionality is affected.

What did you expect to happen?

When I refresh the "Audiobook File Management Tools" page, the library does not reset to the first library in the library pull-down menu, but to the current-set library.

Steps to reproduce the issue

  1. Go to Library other than your first library.
  2. Edit a book.
  3. Go to Tools then the proper tool (doesn't matter which).
  4. Refresh the browser window.

Audiobookshelf version

2.20.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Chrome

Logs

2025-03-30 14:34:25.163

DEBUG

[ApiCacheManager] count: 2 size: 219494

2025-03-30 14:34:25.368

DEBUG

[ApiCacheManager] Cache miss: {"user":"Mark","url":"/libraries"}

2025-03-30 14:35:37.931

DEBUG

[ApiCacheManager] count: 3 size: 236551

2025-03-30 14:35:37.931

DEBUG

[ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101?include=filterdata"}

2025-03-30 14:35:37.944

DEBUG

[ApiCacheManager] count: 3 size: 236551

2025-03-30 14:35:37.945

DEBUG

[ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101?include=filterdata"}

2025-03-30 14:35:37.972

DEBUG

[ApiCacheManager] count: 3 size: 236551

2025-03-30 14:35:37.974

DEBUG

[ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101/personalized?include=rssfeed,numEpisodesIncomplete,share"}

2025-03-30 14:36:18.736

DEBUG

[SocketAuthority] User Offline Mark

2025-03-30 14:36:18.737

INFO

[SocketAuthority] Socket 2PCoCqo5WgS_trO4AAH3 disconnected from client "Mark" after 113599ms (Reason: transport error)

2025-03-30 14:36:20.372

INFO

[SocketAuthority] Socket Connected to /audiobookshelf/socket.io 0baxaXEgAeIpJsyYAAH5

2025-03-30 14:36:20.385

DEBUG

[SocketAuthority] User Online Mark

2025-03-30 14:36:20.397

DEBUG

[ApiCacheManager] count: 3 size: 236551

2025-03-30 14:36:20.397

DEBUG

[ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries"}

2025-03-30 14:39:38.350

DEBUG

[ApiCacheManager] count: 3 size: 236551

2025-03-30 14:39:39.050

DEBUG

Filter data for a210cdb5-cb8d-4ff1-bd87-34eaefffd218 has not changed, returning cached data and updating cache time after 0.69s

2025-03-30 14:39:39.059

DEBUG

[ApiCacheManager] Cache miss: {"user":"Mark","url":"/libraries/a210cdb5-cb8d-4ff1-bd87-34eaefffd218?include=filterdata"}

2025-03-30 14:39:39.124

DEBUG

[ApiCacheManager] count: 4 size: 354912

2025-03-30 14:39:39.232

DEBUG

Loaded 1 of 1 items for "Continue Listening/Reading" in 0.10s

2025-03-30 14:39:41.462

DEBUG

Loaded 2 of 2 items for "Continue Series" in 2.23s

2025-03-30 14:39:41.624

DEBUG

Loaded 10 of 33 items for "Recently Added" in 0.16s

2025-03-30 14:39:41.670

DEBUG

Loaded 2 of 2 series for "Recent Series" in 0.04s

2025-03-30 14:39:44.926

DEBUG

Loaded 10 of 996 items for "Discover" in 3.25s

2025-03-30 14:39:45.465

DEBUG

Loaded 10 of 110 items for "Listen/Read Again" in 0.54s

2025-03-30 14:39:45.661

DEBUG

Loaded 10 of 51 authors for "Newest Authors" in 0.20s

2025-03-30 14:39:45.661

DEBUG

Loaded 7 personalized shelves in 6.53s

2025-03-30 14:39:45.663

DEBUG

[ApiCacheManager] Cache miss: {"user":"Mark","url":"/libraries/a210cdb5-cb8d-4ff1-bd87-34eaefffd218/personalized?include=rssfeed,numEpisodesIncomplete,share"}

2025-03-30 14:39:45.664

DEBUG

[ApiCacheManager] Caching with 1800000 ms TTL

2025-03-30 14:39:48.072

DEBUG

[ApiCacheManager] count: 5 size: 463512

2025-03-30 14:39:48.072

DEBUG

[ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101?include=filterdata"}

2025-03-30 14:39:48.124

DEBUG

[ApiCacheManager] count: 5 size: 463512

2025-03-30 14:39:48.127

DEBUG

[ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101?include=filterdata"}

2025-03-30 14:39:48.162

DEBUG

[ApiCacheManager] count: 5 size: 463512

2025-03-30 14:39:48.163

DEBUG

[ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101/personalized?include=rssfeed,numEpisodesIncomplete,share"}

Additional Notes

https://github.com/user-attachments/assets/4343e9d5-ee30-4dd2-803e-b489c5dd8dc4

Originally created by @ZLoth on GitHub (Mar 30, 2025). ### What happened? When I refresh the "Audiobook File Management Tools" page, the library gets reset to the first library in the library pull-down menu. No other functionality is affected. ### What did you expect to happen? When I refresh the "Audiobook File Management Tools" page, the library does not reset to the first library in the library pull-down menu, but to the current-set library. ### Steps to reproduce the issue 1. Go to Library other than your first library. 2. Edit a book. 3. Go to Tools then the proper tool (doesn't matter which). 4. Refresh the browser window. ### Audiobookshelf version 2.20.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Chrome ### Logs ```shell 2025-03-30 14:34:25.163 DEBUG [ApiCacheManager] count: 2 size: 219494 2025-03-30 14:34:25.368 DEBUG [ApiCacheManager] Cache miss: {"user":"Mark","url":"/libraries"} 2025-03-30 14:35:37.931 DEBUG [ApiCacheManager] count: 3 size: 236551 2025-03-30 14:35:37.931 DEBUG [ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101?include=filterdata"} 2025-03-30 14:35:37.944 DEBUG [ApiCacheManager] count: 3 size: 236551 2025-03-30 14:35:37.945 DEBUG [ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101?include=filterdata"} 2025-03-30 14:35:37.972 DEBUG [ApiCacheManager] count: 3 size: 236551 2025-03-30 14:35:37.974 DEBUG [ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101/personalized?include=rssfeed,numEpisodesIncomplete,share"} 2025-03-30 14:36:18.736 DEBUG [SocketAuthority] User Offline Mark 2025-03-30 14:36:18.737 INFO [SocketAuthority] Socket 2PCoCqo5WgS_trO4AAH3 disconnected from client "Mark" after 113599ms (Reason: transport error) 2025-03-30 14:36:20.372 INFO [SocketAuthority] Socket Connected to /audiobookshelf/socket.io 0baxaXEgAeIpJsyYAAH5 2025-03-30 14:36:20.385 DEBUG [SocketAuthority] User Online Mark 2025-03-30 14:36:20.397 DEBUG [ApiCacheManager] count: 3 size: 236551 2025-03-30 14:36:20.397 DEBUG [ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries"} 2025-03-30 14:39:38.350 DEBUG [ApiCacheManager] count: 3 size: 236551 2025-03-30 14:39:39.050 DEBUG Filter data for a210cdb5-cb8d-4ff1-bd87-34eaefffd218 has not changed, returning cached data and updating cache time after 0.69s 2025-03-30 14:39:39.059 DEBUG [ApiCacheManager] Cache miss: {"user":"Mark","url":"/libraries/a210cdb5-cb8d-4ff1-bd87-34eaefffd218?include=filterdata"} 2025-03-30 14:39:39.124 DEBUG [ApiCacheManager] count: 4 size: 354912 2025-03-30 14:39:39.232 DEBUG Loaded 1 of 1 items for "Continue Listening/Reading" in 0.10s 2025-03-30 14:39:41.462 DEBUG Loaded 2 of 2 items for "Continue Series" in 2.23s 2025-03-30 14:39:41.624 DEBUG Loaded 10 of 33 items for "Recently Added" in 0.16s 2025-03-30 14:39:41.670 DEBUG Loaded 2 of 2 series for "Recent Series" in 0.04s 2025-03-30 14:39:44.926 DEBUG Loaded 10 of 996 items for "Discover" in 3.25s 2025-03-30 14:39:45.465 DEBUG Loaded 10 of 110 items for "Listen/Read Again" in 0.54s 2025-03-30 14:39:45.661 DEBUG Loaded 10 of 51 authors for "Newest Authors" in 0.20s 2025-03-30 14:39:45.661 DEBUG Loaded 7 personalized shelves in 6.53s 2025-03-30 14:39:45.663 DEBUG [ApiCacheManager] Cache miss: {"user":"Mark","url":"/libraries/a210cdb5-cb8d-4ff1-bd87-34eaefffd218/personalized?include=rssfeed,numEpisodesIncomplete,share"} 2025-03-30 14:39:45.664 DEBUG [ApiCacheManager] Caching with 1800000 ms TTL 2025-03-30 14:39:48.072 DEBUG [ApiCacheManager] count: 5 size: 463512 2025-03-30 14:39:48.072 DEBUG [ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101?include=filterdata"} 2025-03-30 14:39:48.124 DEBUG [ApiCacheManager] count: 5 size: 463512 2025-03-30 14:39:48.127 DEBUG [ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101?include=filterdata"} 2025-03-30 14:39:48.162 DEBUG [ApiCacheManager] count: 5 size: 463512 2025-03-30 14:39:48.163 DEBUG [ApiCacheManager] Cache hit: {"user":"Mark","url":"/libraries/e118dc80-c0f7-4ca4-8bcd-261c0aae0101/personalized?include=rssfeed,numEpisodesIncomplete,share"} ``` ### Additional Notes https://github.com/user-attachments/assets/4343e9d5-ee30-4dd2-803e-b489c5dd8dc4
adam added the bug label 2026-04-25 00:09:39 +02:00
adam closed this issue 2026-04-25 00:09:39 +02:00
Author
Owner

@ZLoth commented on GitHub (Mar 31, 2025):

Thank you @advplyr

@ZLoth commented on GitHub (Mar 31, 2025): Thank you @advplyr
Author
Owner

@github-actions[bot] commented on GitHub (Apr 27, 2025):

Fixed in v2.21.0.

@github-actions[bot] commented on GitHub (Apr 27, 2025): Fixed in [v2.21.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.21.0).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2693