Skip to content

Fix installer edit rejecting same-software new versions - #49353

Merged
cdcme merged 2 commits into
feat/28108-multiple-custom-packagesfrom
fix-49234-fix-installer-editing
Jul 15, 2026
Merged

Fix installer edit rejecting same-software new versions#49353
cdcme merged 2 commits into
feat/28108-multiple-custom-packagesfrom
fix-49234-fix-installer-editing

Conversation

@cdcme

@cdcme cdcme commented Jul 15, 2026

Copy link
Copy Markdown
Member

Related issue: Resolves #49234

Editing a software installer to a new version failed with "The selected package is for different software" when the title's stored (osquery-reported) name differed from the installer's extracted name. The edit now validates by software identity (bundle identifier / upgrade code / name) instead of an exact name match.

Checklist for submitter

  • Input data is properly validated, SELECT * is avoided, SQL injection is prevented (using placeholders for values in statements), JS inline code is prevented especially for url redirects, and untrusted data interpolated into shell scripts/commands is validated against shell metacharacters.

Testing

  • Added/updated automated tests
  • QA'd all new/changed functionality manually

@cdcme
cdcme marked this pull request as ready for review July 15, 2026 18:33
@cdcme
cdcme requested a review from a team as a code owner July 15, 2026 18:33
@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (feat/28108-multiple-custom-packages@f29ecfa). Learn more about missing BASE report.

Additional details and impacted files
@@                          Coverage Diff                           @@
##             feat/28108-multiple-custom-packages   #49353   +/-   ##
======================================================================
  Coverage                                       ?   68.12%           
======================================================================
  Files                                          ?     3768           
  Lines                                          ?   239487           
  Branches                                       ?    12552           
======================================================================
  Hits                                           ?   163139           
  Misses                                         ?    61655           
  Partials                                       ?    14693           
Flag Coverage Δ
backend 69.62% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread server/datastore/mysql/software_installers.go Outdated
Comment thread ee/server/service/software_installers.go Outdated

@jkatz01 jkatz01 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Appreciate another step in unifying how we choose software titles 🙏

@cdcme
cdcme merged commit b8ddf17 into feat/28108-multiple-custom-packages Jul 15, 2026
25 checks passed
@cdcme
cdcme deleted the fix-49234-fix-installer-editing branch July 15, 2026 21:16
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