Wiki API: sub-pages with path separators return 404 #606

Closed
opened 2026-06-11 21:42:31 +00:00 by jmiller · 0 comments
Owner

Summary

Wiki pages stored in subdirectories (e.g. mcp/fleet-overview.md) render correctly in the web UI but are inaccessible via the REST API.

Steps to Reproduce

  1. Create a wiki with folder-based structure (e.g. import pages into subdirectories like mcp/, infrastructure/)
  2. Pages render correctly at https://git.mokoconsulting.tech/MokoConsulting/.profile-private/wiki/mcp/fleet-overview
  3. Try to access via API:
    • GET /api/v1/repos/MokoConsulting/.profile-private/wiki/page/mcp%2Ffleet-overview → 404
    • GET /api/v1/repos/MokoConsulting/.profile-private/wiki/page/mcp-fleet-overview → 404
  4. GET /api/v1/repos/MokoConsulting/.profile-private/wiki/pages only returns Home — none of the sub-pages are listed

Expected Behavior

  • GET /wiki/pages should list all wiki pages including those in subdirectories
  • GET /wiki/page/{path} should resolve pages with path separators (URL-encoded slashes)

Actual Behavior

  • Only top-level pages (e.g. Home) appear in the page listing
  • Any page with a / in its path returns 404 regardless of encoding

Impact

Cannot programmatically read or update wiki pages in folder-based wikis via MCP or any API consumer. Workaround is cloning the wiki git repo directly.

## Summary Wiki pages stored in subdirectories (e.g. `mcp/fleet-overview.md`) render correctly in the web UI but are inaccessible via the REST API. ## Steps to Reproduce 1. Create a wiki with folder-based structure (e.g. import pages into subdirectories like `mcp/`, `infrastructure/`) 2. Pages render correctly at `https://git.mokoconsulting.tech/MokoConsulting/.profile-private/wiki/mcp/fleet-overview` 3. Try to access via API: - `GET /api/v1/repos/MokoConsulting/.profile-private/wiki/page/mcp%2Ffleet-overview` → 404 - `GET /api/v1/repos/MokoConsulting/.profile-private/wiki/page/mcp-fleet-overview` → 404 4. `GET /api/v1/repos/MokoConsulting/.profile-private/wiki/pages` only returns `Home` — none of the sub-pages are listed ## Expected Behavior - `GET /wiki/pages` should list all wiki pages including those in subdirectories - `GET /wiki/page/{path}` should resolve pages with path separators (URL-encoded slashes) ## Actual Behavior - Only top-level pages (e.g. `Home`) appear in the page listing - Any page with a `/` in its path returns 404 regardless of encoding ## Impact Cannot programmatically read or update wiki pages in folder-based wikis via MCP or any API consumer. Workaround is cloning the wiki git repo directly.
Sign in to join this conversation.