You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Posting a folder config without a path should always be rejected regardless of default folder path settting #10941
As noted in #10937, the result of posting a new folder config without a path depends on the value of the default folder:
Omitting path can expose other folders to a device they were never shared with. POST /rest/config/folders decodes over a copy of the folder defaults. With an empty default, a folder without a path is refused (folder has empty path - as a 500, though it's a client error). With a default set, it's accepted silently
I wrote a fix here that explicitly blanks the folder's path, unmarshals the request body, then checks if the folder is still empty (returning 400 if so).
This pattern shows up wherever adjustFolder and adjustConfig are called, so the affected API paths are:
PUT + POST on /rest/config/folders
PUT on /rest/config/folders/:id
PUT on /rest/config
POST on /rest/system/config
PATCH on /rest/config/folders/:id (when setting an empty path)
Happy to make any changes or open a PR if helpful.
Activity
fix(api): require explicit path when creating or replacing folders (f…
jonahcwest commentedon Nov 24, 2026
I wrote a fix here that explicitly blanks the folder's path, unmarshals the request body, then checks if the folder is still empty (returning 400 if so).
This pattern shows up wherever
adjustFolderandadjustConfigare called, so the affected API paths are:Happy to make any changes or open a PR if helpful.