Skip to content

fix(httpapi): empty import preview on paste/upload and stale-classification save warnings - #1529

Merged
Dumbris merged 2 commits into
mainfrom
fix/issues-w5b4-internal-httpapi-import-profil
Oct 6, 2026
Merged

Dumbris merged 2 commits into
mainfrom
fix/issues-w5b4-internal-httpapi-import-profil

Conversation

@Dumbris

@Dumbris Dumbris commented Oct 6, 2026

Copy link
Copy Markdown
Member

Summary

Fixes the empty-import preview on paste/upload and adds stale-classification warnings when saving a profile.

Skipped / deferred

  • /servers/import/path?preview=true with a bare {} and no format hint still returns 400 "unable to detect configuration format". Pre-existing behaviour on a sibling endpoint outside the named handlers.
  • An invalid format hint combined with {} content in preview mode now returns 200 empty instead of 400 (the early return runs before hint validation). Low impact.

Review Status

Clean after 2 round(s). Unresolved findings, both low and deferred:

  • glm:1.1 (low): {} with no format hint previews as 200-empty on upload and paste, but /servers/import/path still returns 400. Pre-existing path-handler behaviour; sibling-endpoint inconsistency only.
  • glm:1.2 (low): the isEmptyJSONObject early return runs before format-hint validation, so {"content":"{}","format":"bogus"} with preview=true returns 200 empty instead of 400.

Closes #1446
Refs #1466

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7389e77
Status: ✅  Deploy successful!
Preview URL: https://084165db.mcpproxy-docs.pages.dev
Branch Preview URL: https://fix-issues-w5b4-internal-htt.mcpproxy-docs.pages.dev

View logs

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 82.14286% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/httpapi/import.go 75.00% 3 Missing ⚠️
internal/runtime/profiles_service.go 87.50% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: fix/issues-w5b4-internal-httpapi-import-profil

Available Artifacts

  • archive-darwin-amd64 (31 MB)
  • archive-darwin-arm64 (28 MB)
  • archive-linux-amd64 (19 MB)
  • archive-linux-arm64 (17 MB)
  • archive-windows-amd64 (31 MB)
  • archive-windows-arm64 (27 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (27 MB)
  • installer-dmg-darwin-arm64 (24 MB)
  • smart-mcp-proxymcpproxy-goKS1Z3H.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 37444336139 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris
Dumbris enabled auto-merge (squash) October 6, 2026 13:27
@Dumbris
Dumbris merged commit 682e2af into main Oct 6, 2026
45 checks passed
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.

Follow-ups from Spec 108-i Web UI profiles review (#1444)

2 participants