Skip to content

fix(Server): add missing /Upgrade/Report route#72

Closed
JusterZhu wants to merge 2 commits into
mainfrom
fix/server-add-upgrade-report-route
Closed

fix(Server): add missing /Upgrade/Report route#72
JusterZhu wants to merge 2 commits into
mainfrom
fix/server-add-upgrade-report-route

Conversation

@JusterZhu

@JusterZhu JusterZhu commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

The server has two URL variants for Verification (/Upgrade/Verification and /Update/Verification) but only one for Report (/Update/Report). This causes 404 errors when clients using the /Upgrade/* convention attempt to report update status.

Fix

Add app.MapPost("/Upgrade/Report", handleReport) to mirror the Verification endpoint pattern.

Related

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

The server registers both /Upgrade/Verification and /Update/Verification
but only /Update/Report for status reporting. Add /Upgrade/Report so
clients using the /Upgrade/* URL variant can report update status.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 1, 2026 11:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a missing route alias in the sample server by adding the /Upgrade/Report endpoint to mirror the existing /Update/Report route, matching the already-supported dual-path pattern used for Verification. This prevents 404s for clients configured to use the /Upgrade/* URL convention when posting update status reports.

Changes:

  • Add POST /Upgrade/Report mapping to the existing handleReport handler to align with /Upgrade/Verification + /Update/Verification dual routing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Add Architecture.md: system architecture, update flow, component relationships
- Add Pipeline.md: middleware pipeline deep dive, BSDiff/HDiffPatch algorithms
- Add Security.md: TLS, auth (Bearer/API Key/HMAC), AES-256-CBC IPC encryption
- Add Configuration.md: complete config reference for all components
- Add FAQ.md: 24 frequently asked questions with code examples
- Enhance PacketTool.md: add Simulate Update and Config Generator documentation
- Enhance Packaging.md: expand from 2 links to comprehensive deployment guide
- All new docs include English translations (i18n/en/)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@JusterZhu

Copy link
Copy Markdown
Collaborator Author

Closing: the code fix (adding /Upgrade/Report route) is already in main, and the guide documentation has been merged via other PRs. The PacketTool.md changes conflict with PR #70's rewrite which has already been merged.

@JusterZhu JusterZhu closed this Jun 3, 2026
@JusterZhu JusterZhu deleted the fix/server-add-upgrade-report-route branch June 3, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants