Skip to content

fix: if the cli download field is empty, use the falback url#1198

Merged
ShawkyZ merged 1 commit intomainfrom
fix/ide-1925_cli-download-should-use-fallback
Apr 10, 2026
Merged

fix: if the cli download field is empty, use the falback url#1198
ShawkyZ merged 1 commit intomainfrom
fix/ide-1925_cli-download-should-use-fallback

Conversation

@andrewrobinsonhodges-snyk
Copy link
Copy Markdown
Contributor

Description

Provide description of this PR and changes, if linked Jira ticket doesn't cover it in full.

Checklist

  • Tests added and all succeed
  • Regenerated mocks, etc. (make generate)
  • Linted (make lint-fix)
  • README.md updated, if user-facing
  • License file updated, if new 3rd-party dependency is introduced

@snyk-pr-review-bot

This comment has been minimized.

@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented Apr 9, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@snyk-pr-review-bot
Copy link
Copy Markdown

PR Reviewer Guide 🔍

🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Brittle Logic 🟡 [minor]

The collectData function uses the placeholder attribute of the cliBaseDownloadURL input as a functional fallback. Using UI/UX elements for application logic is brittle: if the placeholder is later updated to a descriptive string (e.g., 'https://your-mirror.com'), the form will persist that invalid string as a configuration setting. Furthermore, this prevents users from unsetting the URL to rely on dynamic backend defaults, as the current placeholder string will be explicitly saved in their configuration, potentially leading to stale settings if the official download URL changes in the future.

cliBaseDownloadURL: get('cliBaseDownloadURL').value || get('cliBaseDownloadURL').placeholder,
📚 Repository Context Analyzed

This review considered 6 relevant code sections from 2 files (average relevance: 0.45)

@ShawkyZ ShawkyZ merged commit d8c345b into main Apr 10, 2026
28 of 32 checks passed
@ShawkyZ ShawkyZ deleted the fix/ide-1925_cli-download-should-use-fallback branch April 10, 2026 09:17
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