Skip to content

Configure navigation fails to save: "Request body is not valid JSON" #456

Closed

Description

@VishwasShashidhar

Toggling any item on a workspace's Configure navigation page (/workspaces/:id/nav-config) fails when the workspace has saved board columns. The toast reads:

Could not save navigation settings: Request body is not valid JSON

The toggle does not save, so the navigation can't be changed from the UI.

Steps to reproduce

  1. Use a workspace whose board configuration has columns.
  2. Open Configure navigation from the gear next to Tools in the workspace sidebar.
  3. Turn any item on or off.

Cause

persistCurrent in frontend/src/lib/workspaces/NavigationConfigPage.svelte sends the columns back as GET returned them:

columns: config?.columns || [],

Those are BoardColumn objects, which include board_configuration_id, created_at and updated_at. The PUT decodes into BoardColumnRequest, which has none of those fields, and internal/restapi/v2/request.go decodes with DisallowUnknownFields(). Every decode failure there is reported as "Request body is not valid JSON", so the message doesn't point at the real problem.

Suggested fix

Map the columns to the request fields on that page, as buildBoardConfigurationPayload in frontend/src/lib/features/collections/boardConfigPayload.js already does:

columns: (config?.columns || []).map((column, index) => ({
  id: column.id ?? null,
  name: column.name,
  display_order: index,
  wip_limit: column.wip_limit ?? null,
  color: column.color ?? '',
  status_ids: column.status_ids || [],
})),

Separately, the decoder could return a clearer message for an unknown field. That would have made this easy to spot.

Evidence

Sending the same PUT to /api/v2/workspaces/:id/board-configuration from the browser console with the columns mapped as above returned success, and the navigation item appeared. We run v0.9.3 (1f796601). The code above is unchanged on main at 54eaef9.

Activity

  1. added a commit that references this issue on Nov 6, 2026
  2. added
    fixed-0.9.4
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed-0.9.4

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions