Bug: update_wiki_page renames page to "unnamed" when page_name contains special characters #160

Closed
opened 2026-01-26 14:55:42 +00:00 by lmiranda · 0 comments
Owner

Description

The update_wiki_page MCP tool incorrectly renames wiki pages to "unnamed" when the page_name parameter contains URL-encoded special characters like : (encoded as %3A).

Steps to Reproduce

  1. Create a wiki page with a title containing :, e.g., "Change V04.1.0: Proposal"
  2. Call update_wiki_page with page_name set to the URL-encoded version: Change-V04.1.0%3A-Proposal
  3. Observe that the page is renamed to "unnamed" instead of being updated in place

Expected Behavior

The page should be updated with the new content while preserving its original title.

Actual Behavior

The page is renamed to "unnamed" and the original page title is lost.

Impact

  • Data loss: Original page name is lost
  • Requires manual cleanup in Gitea UI to delete "unnamed" page
  • Breaks wiki page references/links

Suggested Fix

The update_wiki_page function in mcp-servers/gitea/ needs to:

  1. Properly decode the page_name parameter before using it
  2. Or explicitly preserve the original page title when updating

Affected Component

mcp-servers/gitea/ - wiki operations

## Description The `update_wiki_page` MCP tool incorrectly renames wiki pages to "unnamed" when the `page_name` parameter contains URL-encoded special characters like `:` (encoded as `%3A`). ## Steps to Reproduce 1. Create a wiki page with a title containing `:`, e.g., "Change V04.1.0: Proposal" 2. Call `update_wiki_page` with `page_name` set to the URL-encoded version: `Change-V04.1.0%3A-Proposal` 3. Observe that the page is renamed to "unnamed" instead of being updated in place ## Expected Behavior The page should be updated with the new content while preserving its original title. ## Actual Behavior The page is renamed to "unnamed" and the original page title is lost. ## Impact - Data loss: Original page name is lost - Requires manual cleanup in Gitea UI to delete "unnamed" page - Breaks wiki page references/links ## Suggested Fix The `update_wiki_page` function in `mcp-servers/gitea/` needs to: 1. Properly decode the `page_name` parameter before using it 2. Or explicitly preserve the original page title when updating ## Affected Component `mcp-servers/gitea/` - wiki operations
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#160