Sofarr displays 'Unknown' for requesting user despite valid Ombi user data #51
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?
Bug Description
Sofarr displays "Unknown" for the requesting user on requests, even when the Ombi database contains valid user information.
Root Cause Analysis
After examining the Ombi database and Sofarr codebase:
Database State: The
RequestedByAliasfield in Ombi's request tables (ChildRequests, MovieRequests, AlbumRequests) is NULL for all 569 requests in the database. This field was added around 2019 but has never been populated in this installation.Expected Behavior: Sofarr should extract user information from the Ombi API's
requestedUserobject, which contains full user details (alias, userName, normalizedUserName, etc.).Current Behavior: Sofarr's
extractRequestedUser()function in bothserver/utils/ombiHelpers.jsandclient/src/ui/requests.jshas the correct priority logic:The Issue: The Ombi API is likely not returning the expected
requestedUserobject structure, or Sofarr is not properly parsing it. SinceRequestedByAliasis NULL for all requests, Sofarr falls back to an empty string and displays "Unknown".Evidence
Expected Fix
Sofarr should ensure it's properly extracting user information from the Ombi API's
requestedUserobject response. The fix should be in the Ombi API integration layer, not in the database.The application should:
Steps to Reproduce
Resolved in commit
5390bbf(develop) and merged in6f6aa5b(release v1.7.20).