Skip to content

fix: handle when invalid dhis2 version filter is passed#760

Merged
KaiVandivier merged 1 commit intomasterfrom
fix/issue-with-filtering
Jan 13, 2026
Merged

fix: handle when invalid dhis2 version filter is passed#760
KaiVandivier merged 1 commit intomasterfrom
fix/issue-with-filtering

Conversation

@kabaros
Copy link
Copy Markdown
Collaborator

@kabaros kabaros commented Dec 19, 2025

This fixes an issue we observed on production when an invalid dhis2 version is passed to a filter.

For example, when calling https://apps.dhis2.org/api/v2/apps?core=true&dhis_version=redirtest.acx&paging=false - this resulted in a 500 error. I am not sure why this dhis_version was passed (maybe part of security testing), but it should be handled gracefully.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@80c8b18). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #760   +/-   ##
=========================================
  Coverage          ?   66.07%           
=========================================
  Files             ?       29           
  Lines             ?      566           
  Branches          ?      134           
=========================================
  Hits              ?      374           
  Misses            ?      179           
  Partials          ?       13           

☔ View full report in Codecov by Sentry.
📢 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.

@KaiVandivier KaiVandivier merged commit 9a67fd7 into master Jan 13, 2026
6 checks passed
@KaiVandivier KaiVandivier deleted the fix/issue-with-filtering branch January 13, 2026 13:26
dhis2-bot added a commit that referenced this pull request Jan 13, 2026
## [2.37.4](v2.37.3...v2.37.4) (2026-01-13)

### Bug Fixes

* handle when invalid dhis2 version filter is passed ([#760](#760)) ([9a67fd7](9a67fd7))
@dhis2-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.37.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants