read_integration options root_folders: name empty, path only in value #17

Closed
opened 2026-09-19 08:21:56 +01:00 by gronod · 0 comments
Owner

Summary

read_integration options root_folders emits items with empty name — the path is present only in value, so consumers cannot display a friendly folder name.

Environment

Reproduction

read_integration {"action":"options","service":"sonarr","resource":"root_folders"}
read_integration {"action":"options","service":"radarr","resource":"root_folders"}

Sample item: {"id":"21","name":"","value":"/mnt/zxpool/shared/media/tv","category":"root_folder"}

Expected

name carries the root-folder path (or a label), value the id — matching how profiles emits name/value.

Actual

name is "" for every root-folder entry on both Sonarr and Radarr. During the earlier request task this made it impossible to map "zxpool tv" → id 21 without guessing.

Cause

refsOrScalar/refOf extracts names from name|label|value — upstream root-folder records carry the path under path (no name field), so name stays empty while the fallback lands the path in value.

Correlation IDs

87c47c7c2dfa855cafcb8328 (radarr), earlier sonarr sweep

## Summary `read_integration` `options` `root_folders` emits items with empty `name` — the path is present only in `value`, so consumers cannot display a friendly folder name. ## Environment - Binary: deployed darwin-amd64 build from `develop` @ `d047d76` - Ombi: 4.53.10 (https://ombi.i3omb.com), JWT auth ## Reproduction ```json read_integration {"action":"options","service":"sonarr","resource":"root_folders"} read_integration {"action":"options","service":"radarr","resource":"root_folders"} ``` Sample item: `{"id":"21","name":"","value":"/mnt/zxpool/shared/media/tv","category":"root_folder"}` ## Expected `name` carries the root-folder path (or a label), `value` the id — matching how `profiles` emits `name`/`value`. ## Actual `name` is `""` for every root-folder entry on both Sonarr and Radarr. During the earlier request task this made it impossible to map "zxpool tv" → id 21 without guessing. ## Cause `refsOrScalar`/`refOf` extracts names from `name|label|value` — upstream root-folder records carry the path under `path` (no `name` field), so name stays empty while the fallback lands the path in `value`. ## Correlation IDs `87c47c7c2dfa855cafcb8328` (radarr), earlier sonarr sweep
gronod added this to the M6 — Integration options and server-id discovery milestone 2026-09-19 08:58:05 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Reference: gronod/ombi-mcp#17