Repository navigation
fix(plugins): fail marketplace installs on HTTP error responses - #279
Merged
Merged
Conversation
marketplace_install never checked the download's status, so a 404 or 500 body was written as plugin.zip, fell back to manifest.yaml and the install reported success, replacing an existing manifest with the error page. Check the status before reading the body, report only the status, and create the install directory only after the body and hash are accepted. Existing plugin-name validation still runs before any request. Surface unit 91 (manifest entry 90). Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
10 of 11 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Marketplace plugin installs now fail on an HTTP error instead of installing the error page. Before, a 404 or 500 body was saved as
plugin.zip, fell back tomanifest.yaml, and the install reported success. On an update this replaced the existing manifest.Context
surface-marketplace-download-status(fix/marketplace-download-status).marketplace_installincrates/plugins/src/marketplace.rs(+4 production lines) and the newcrates/plugins/tests/marketplace_http.rs.Changes
status().is_success()before reading the body. The error reports the status only, never the body.plugin_install_dirfallible and validates the plugin name before any request. That stays (plugin_install_dir(&entry.name)?); only thecreate_dir_allmoves.Validation
Okfor a new install, and a 404 body replaced an existing manifest (byte-checked against owned temp fixtures).cargo test --locked -p claurst-plugins --test marketplace_httpon this branch: pass.env_clear, an ownedCOVEN_CODE_HOME,no_proxyand a loopback listener, with bounded waits.cargo fmt --all -- --check,cargo check --workspace --locked,cargo clippy --workspace --all-targets --locked -- -D warnings: pass.git diff --check: clean.cargo test --workspaceon this branch: hosted CI.PR Readiness