fix(gitea-mcp): URL-encode wiki page names and include title in updates #168

Merged
lmiranda merged 1 commits from fix/160-wiki-page-unnamed-bug into development 2026-01-26 15:55:16 +00:00
Owner

Summary

Fixes #160: update_wiki_page was renaming pages to "unnamed"

Root Causes

  1. page_name was not URL-encoded, breaking pages with special characters like :
  2. PATCH request was missing title field, causing Gitea to use default name

Changes

  • Add URL encoding (urllib.parse.quote) to:
    • get_wiki_page
    • update_wiki_page
    • delete_wiki_page
  • Add title: page_name to update_wiki_page payload to preserve page name

Testing

After merging, wiki pages with special characters (e.g., Change V04.1.0: Proposal) can be updated without being renamed to "unnamed".


🤖 Generated with Claude Code

## Summary Fixes #160: `update_wiki_page` was renaming pages to "unnamed" ## Root Causes 1. `page_name` was not URL-encoded, breaking pages with special characters like `:` 2. PATCH request was missing `title` field, causing Gitea to use default name ## Changes - Add URL encoding (`urllib.parse.quote`) to: - `get_wiki_page` - `update_wiki_page` - `delete_wiki_page` - Add `title: page_name` to `update_wiki_page` payload to preserve page name ## Testing After merging, wiki pages with special characters (e.g., `Change V04.1.0: Proposal`) can be updated without being renamed to "unnamed". --- 🤖 Generated with [Claude Code](https://claude.ai/code)
lmiranda added 1 commit 2026-01-26 15:55:07 +00:00
Fixes #160: update_wiki_page was renaming pages to "unnamed"

Root causes:
1. page_name wasn't URL-encoded, breaking pages with special chars like ':'
2. PATCH request was missing 'title' field, causing Gitea to use default name

Changes:
- Add URL encoding (urllib.parse.quote) to get_wiki_page, update_wiki_page, delete_wiki_page
- Add 'title': page_name to update_wiki_page payload to preserve page name

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 4c262a7227 into development 2026-01-26 15:55:16 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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